Граф коммитов

761 Коммитов

Автор SHA1 Сообщение Дата
brettw d9f5b2a87d Remove transitional GN build variable.
The using_new_optimization_config existed to allow a multi-sided V8 build
update that is now complete.

TBR=dpranke

Review URL: https://codereview.chromium.org/1351623003

Cr-Original-Commit-Position: refs/heads/master@{#349212}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ae96775ac803adcc2a1ce95064ea46a6b75b95bf
2015-09-16 20:36:39 +00:00
agrieve 6457f677cf GN: Side-load dex files as well as native code in incremental installs
This also re-organizes a bit by moving all incremental install related
files into //build/android/incremental_install.

BUG=520082

Review URL: https://codereview.chromium.org/1338813003

Cr-Original-Commit-Position: refs/heads/master@{#349200}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 933f2593199c4f95678ddda884aa476ff1fe0c23
2015-09-16 19:57:38 +00:00
agrieve 0792fae518 GN: Fix ChromePublic crash on launch from misconfigured resource overrides
Turns out process_resources.py never actually correctly supported
resource overrides when using --extra-r-text-files, --extra-res-packages

BUG=531529

Review URL: https://codereview.chromium.org/1338393003

Cr-Original-Commit-Position: refs/heads/master@{#349116}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1db26ac88b5195d575f23fe6120ec1f643950300
2015-09-16 14:09:25 +00:00
Gordana.Cmiljanovic e644731094 [MIPS] GN: Disable NaCl for MIPS
Few more changes need to go in before enabling NaCl support for MIPS,
lets have it disabled until then.

TEST=Build Chromium using GN.
BUG=130022

Review URL: https://codereview.chromium.org/1344803002

Cr-Original-Commit-Position: refs/heads/master@{#349109}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d82b297171f8a108efd23929927009d4874548cf
2015-09-16 13:22:22 +00:00
mostynb d4f3865913 move zip template to a non-android-specific .gni file
The zip template really isn't android-specific, let's move it to its
own .gni file which doesn't assert(is_android).

Review URL: https://codereview.chromium.org/1345733002

Cr-Original-Commit-Position: refs/heads/master@{#349016}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3dba3175c9f137742ddb10dbe9a10a5417186402
2015-09-15 22:16:32 +00:00
thakis 7dd49461df clang: Disable new warning -Wbitfield-width on the ToT bots.
The warning fires quite a bit in Chromium. Disable it at least until the pinned
clang revision also understands the warning flag, to get the ToT bots back
green.

BUG=none
TBR=hans@chromium.org

Review URL: https://codereview.chromium.org/1339223002

Cr-Original-Commit-Position: refs/heads/master@{#348833}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8f597d66d3808b29d4e73fa4c6751bfbeecaf31c
2015-09-15 03:39:31 +00:00
mcgrathr be2bfa1e2d Refactor NaCl IRT toolchains, use arm-nacl-clang
This factors the irt_* toolchain definitions using a template to reduce
copied boilerplate.  It also switches the ARM build to use arm-nacl-clang
rather than arm-nacl-gcc, which matches what the GYP build does now.  Many
of the compilation flags are still not at all right, but this is enough
for the build of the IRT to complete successfully.

BUG=531702
R=dpranke@chromium.org

Review URL: https://codereview.chromium.org/1341143002

Cr-Original-Commit-Position: refs/heads/master@{#348781}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 916aafa6563eb600b60a683d52d0c121f2eaee92
2015-09-15 00:07:41 +00:00
sergeyu 74caa29a14 Compile remoting client plugin with GN
BUG=512899

Review URL: https://codereview.chromium.org/1312463005

Cr-Original-Commit-Position: refs/heads/master@{#348752}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 99d83f9b9121d659cdbf259ec9f71f8d1f090100
2015-09-14 23:04:22 +00:00
brettw b5bb956088 Move sanitizer and symbol flags out of BUILDCONFIG
TBR=mmoss@chromium.org (chrome/installer/linux)
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1324623005

Cr-Original-Commit-Position: refs/heads/master@{#348727}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4cab0f1c83325704d637168c43fabc894f97939d
2015-09-14 21:41:14 +00:00
brettw 55ab2d4620 Don't reference instrumented-libraryes with sanitizers disabled.
Previously //build/config/sanitizer:deps unconditionally depended on
//third_party/instrumented_libraries:deps. This dependency is only necessary
//when compiling with a sanitizer, and in standalone other projects like nacl,
//instrumented_libraries doesn't exist.

This patch makes all contents of sanitizer:deps conditional on using a
sanitizer, which matches what the documentation explicitly says.

BUG=

Review URL: https://codereview.chromium.org/1341043005

Cr-Original-Commit-Position: refs/heads/master@{#348719}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bc6f9a5b1858c70d852029f77020cabd3db879f6
2015-09-14 20:57:13 +00:00
dpranke cbeec6d690 Use gold for linking on both 32-bit and 64-bit linux GN builds.
R=brettw@chromium.org, thestig@chromium.org
BUG=432959

Review URL: https://codereview.chromium.org/1338893002

Cr-Original-Commit-Position: refs/heads/master@{#348703}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cc2490a2986d70a393c04b6f69e52e82514bc9b7
2015-09-14 20:19:29 +00:00
brettw fa27f4cab0 Fix nested config in GN.
This also moves the config out of the template. Otherwise this will generate an
error if there is more than one MIDL target in the same directory.

Use forward_variables_from in the MIDL template.

TBR=dpranke@chromium.org

Review URL: https://codereview.chromium.org/1335283002

Cr-Original-Commit-Position: refs/heads/master@{#348664}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7c0c67ed3859656cb869fb517527938f70ed0cc6
2015-09-14 18:39:47 +00:00
yfriedman b68cbe8352 Update OWNERS file now that Chris has left the project.
TBR=sgurun

Review URL: https://codereview.chromium.org/1315443013

Cr-Original-Commit-Position: refs/heads/master@{#348427}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 23eab49ca0ee6393cc4df084ed79201011a19749
2015-09-11 17:59:42 +00:00
pcc 1d304d9444 Port CFI build configuration to GN.
BUG=464797
R=brettw@chromium.org

Review URL: https://codereview.chromium.org/1326053003

Cr-Original-Commit-Position: refs/heads/master@{#348323}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 34ab19d59ff4a5bc098d90eb7c4fc76afec568ef
2015-09-11 03:08:53 +00:00
dpranke eab10283ef Enable nacl on 32-bit x86 linux GN builds.
It looks like the only thing missing at this point was to correct
the path to the host build of tls_edit when linking the IRT.

R=brettw@chromium.org, phosek@chromium.org
BUG=512882

Review URL: https://codereview.chromium.org/1338483002

Cr-Original-Commit-Position: refs/heads/master@{#348302}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a512a524d8541b52c0a0a264215d3499ec1bbb1d
2015-09-11 00:46:48 +00:00
dpranke 3247a8ec50 Make sure cflags is forwarded in the ios_app executable template.
R=brettw@chromium.org, kjellander@chromium.org

Review URL: https://codereview.chromium.org/1314413006

Cr-Original-Commit-Position: refs/heads/master@{#348264}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4bcc95b28ee924fa3ac5b488a9c2a954336533b5
2015-09-10 22:38:04 +00:00
brettw dbb2eca951 Add a new flag to assist in landing optimization update.
This is as described in the new comment to assist in updating V8 so https://codereview.chromium.org/1324623005/ can be landed.

TBR=dpranke

Review URL: https://codereview.chromium.org/1330423002

Cr-Original-Commit-Position: refs/heads/master@{#348193}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e6df1a1f0cdebf68c08e912c15f1575555e08392
2015-09-10 18:25:22 +00:00
andrewhayden f011842875 Add cld2_table_size variable to GN build.
This variable has been in common.gypi for some time, but was missing from GN.

BUG=528257

Review URL: https://codereview.chromium.org/1306053014

Cr-Original-Commit-Position: refs/heads/master@{#347576}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b32a1daf9763b66e7f12a3e88e4b526589dd8479
2015-09-05 20:59:10 +00:00
petermayo 9699cf1900 Don't use evdev except for target
libevdev-cros is not needed for the host tooling, and is not availale for
the host in a chroot chromeos building environment.

BUG=527996

Review URL: https://codereview.chromium.org/1322343002

Cr-Original-Commit-Position: refs/heads/master@{#347531}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 97739b5fcf32a746c38d8142bff56d0072953dbf
2015-09-04 23:38:41 +00:00
nyquist c1abb8cb8d Add support for overriding keystore for signing.
This CL adds support for overriding android_keystore_path,
android_keystore_name, android_keystore_password from other config
files.

It also adds documentation to these arguments and removes 'default'
from their name.

The chromium debug key is still used by default for all builds.

BUG=479253

Review URL: https://codereview.chromium.org/1311043014

Cr-Original-Commit-Position: refs/heads/master@{#347521}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fbc342116e60698aae09bf4175a30bf8ccc14704
2015-09-04 23:10:30 +00:00
brettw 65bd1dbdd2 Add a flag to BUILDCONFIG for updating some global configs.
This is part one of a multi-way landing, as described in the comment for the added flag.

The patch that this enables is https://codereview.chromium.org/1324623005/ which will be landed after ffmpeg and WebKit have been updated.

Review URL: https://codereview.chromium.org/1312363011

Cr-Original-Commit-Position: refs/heads/master@{#347495}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 96453de346274c747c13d89c2ffaf9a6ce0ba667
2015-09-04 21:53:33 +00:00
brettw c1b2bea949 Improve mini installer and official build GN flags
I went through and did some flag auditing to try to get GN's official build mini_installer target as small as GYP's. It's still 512 bytes too large.

Adds the custom mini_installer flags to the "lib" target as well as the main mini_installer target. This removes some imports around exception handling.

Sync some official build flags: LTCG should go on all optimized targets in official builds, not just "optimize max" ones. Doing this on optimize max has no effect because we only set optimize_max on individual libraries that need to be fast, rather than anything that gets linked.

Convert /OPT:REF to /OPT:ICF. GYP specifies both, but ICF seems to imply REF according to MSDN.

Added some missing release mode flags "/d2Zi+", "/Zc:inline", and "/cgthreads:8", which I found missing from GN.

Removed a dependency on "setup" from mini installer, this is captured by the dependency on ":archive" (which already includes the setup dependency).

Review URL: https://codereview.chromium.org/1329833002

Cr-Original-Commit-Position: refs/heads/master@{#347447}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7cb45ce734f09f358e62fd982c8fa288673b2ab5
2015-09-04 18:03:14 +00:00
andrewhayden e85fbd4398 Update Android to use Compact Language Detector v2.
Android is the last remaining platform that has not yet converted to CLDv2.
Sheriffs: expect to see APK size changes in the range of [-122K, +98K] bytes.
See the bug for more information.

As on iOS, use the smallest data tables to minimize the binary size impact.
This brings language detection on Android into parity with iOS (which also uses
the smallest data tables).

BUG=528257

Review URL: https://codereview.chromium.org/1327543003

Cr-Original-Commit-Position: refs/heads/master@{#347418}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9a70dc32d62dc1a0e9a8885f2258fe612aeb1f06
2015-09-04 16:18:25 +00:00
agrieve 50ac99d89e GN: Make the wrapper script generated for junit work without extra args
Still works with GYP, but for gyp you need the extra arg.

BUG=

Review URL: https://codereview.chromium.org/1317853006

Cr-Original-Commit-Position: refs/heads/master@{#347413}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 60d3387b05d03cccc8b2339a0541ef6972d2a307
2015-09-04 15:40:59 +00:00
agrieve 4f937822f1 GN: Use interface jars in the classpath to speed up compiling (a little)
Rebuilding chrome_java before change:
real    1m0.108s
user    7m44.609s
sys     0m27.630s

Rebuilding chrome_java after change:
real    0m57.893s
user    7m22.493s
sys     0m21.224s

BUG=527632

Review URL: https://codereview.chromium.org/1328823002

Cr-Original-Commit-Position: refs/heads/master@{#347405}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6d6c9ac82e8f06abb047501d37b95cae145a727c
2015-09-04 14:58:13 +00:00
agrieve 75f9f6521a GN: Stop setting android.jar in both -classpath and -bootclasspath
I don't think it's necessary.

BUG=

Review URL: https://codereview.chromium.org/1328793003

Cr-Original-Commit-Position: refs/heads/master@{#347330}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6c26dd145dffde7cc1a5d0025ed2b5fd35cc6bae
2015-09-04 03:09:10 +00:00
dpranke 5cf45f1207 Fix more aspects of the NaCl build configs.
As part of the un-forking of the NaCl GN build configs, we need
to be a little more careful about which NaCl toolchains are considered
to be "clang" or not and whether some of the clang-specific compiler
settings need to be applied in the NaCl contexts.

Also, remove more stray references to the old Nacl build configs.

R=brettw@chromium.org, mcgrathr@chromium.org, thakis@chromium.org
BUG=433528

Review URL: https://codereview.chromium.org/1307653008

Cr-Original-Commit-Position: refs/heads/master@{#347262}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b8c6bf7592cf6cb412f2d3f151bc29bd96ee7380
2015-09-03 22:18:39 +00:00
agrieve 34f0d1f390 Add ijar to third_party and use it for generating .jar.toc files in GN
It's much faster than using javap (what we currently do):

With javap, building chrome_java:
real    1m17.162s
user    7m46.230s
sys     0m42.836s

With ijar, building chrome_java:
real    0m56.446s
user    5m38.761s
sys     0m26.006s

BUG=527632

Review URL: https://codereview.chromium.org/1323053003

Cr-Original-Commit-Position: refs/heads/master@{#347208}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 77614d453e6324c9da3e12b93b4c19800cbe09a9
2015-09-03 19:12:57 +00:00
agrieve 1fa08085f1 GN: Put .jar files in lib.java rather than gen/
BUG=527501

Review URL: https://codereview.chromium.org/1325133003

Cr-Original-Commit-Position: refs/heads/master@{#347092}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d1621831ec5f9fc8a57a0d8c256f7cd0ee561eab
2015-09-03 01:54:17 +00:00
agrieve 08f57dd695 Build chromium_commands when building any _incremental apk
The file is needed by incremental_install.py (indirectly).

BUG=520082

Review URL: https://codereview.chromium.org/1328693003

Cr-Original-Commit-Position: refs/heads/master@{#347034}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e5e8fce1895ae9eac43a3d7a216f8e9b55cbcc1a
2015-09-02 21:53:07 +00:00
brettw f1ed6e0e59 Add ubsan bug reference to GN build.
ubsan is not supported.

TBR=dpranke

Review URL: https://codereview.chromium.org/1330523002

Cr-Original-Commit-Position: refs/heads/master@{#347003}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c0528e49adf32b5255c433bb135a2139e7c9ae7
2015-09-02 20:11:21 +00:00
brettw 6e701821bd Don't assert for debug asan builds.
I verified that Chrome seems to run decently well in this configuration.

Review URL: https://codereview.chromium.org/1322973003

Cr-Original-Commit-Position: refs/heads/master@{#346980}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b7b621a4fd840789beab4623879026a59014b9f2
2015-09-02 18:44:41 +00:00
brettw 0a100496b2 Add a assert for running a sanitizer in debug.
I found that msan doesn't link in debug builds. It fails linking with an
obscure error. To prevent other people from having this problem, this patch
adds an assert for this case.

Review URL: https://codereview.chromium.org/1326453003

Cr-Original-Commit-Position: refs/heads/master@{#346764}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1131f71c0604dfbe6e1f2d3ef6dcb8d288c7e4f6
2015-09-01 22:52:12 +00:00
erg 2c09162dbc Make gtk2/gtk3 compile time switchable.
This adds a "use_gtk3" gyp/gn flag, along with a separate gtk2/gtk3
targets in system.gyp and //build/config/linux/gtk[23] in gn.

BUG=132847

Review URL: https://codereview.chromium.org/1293073006

Cr-Original-Commit-Position: refs/heads/master@{#346742}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b8f8f682a82bce992edb35c3030214ede236d3ba
2015-09-01 21:39:48 +00:00
scheib 5a9a454592 Add missing Android GN build dep on md5sum.
Clean builds of APK targets on Android fail to deploy
without also building 'md5sum' target.

Review URL: https://codereview.chromium.org/1329583002

Cr-Original-Commit-Position: refs/heads/master@{#346720}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ed031efc0a6c59a550e7ae0d9a7a109c4ebda3c6
2015-09-01 20:11:05 +00:00
bajones ce6dccd696 Reland of Android WebVR implementation, Cardboard 0.5.5 SDK (patchset #1 id:1 of https://codereview.chromium.org/1321383002/ )
Reason for revert:
Reason for revert was a misunderstanding of issues that another piece of code was having interacting with the Cardboard SDK. This code was not exhibiting the same problems, so restoring it while we investigate the other code's issues further.

Original issue's description:
> Revert of Android WebVR implementation, Cardboard 0.5.5 SDK (patchset #12 id:220001 of https://codereview.chromium.org/1200303002/ )
>
> Reason for revert:
> Android team found an incompatibility with the 0.5.5 Cardboard SDK and non-ARM devices. Rolling back until the Cardboard team can address that.
>
> Original issue's description:
> > Android WebVR implementation, Cardboard 0.5.5 SDK
> >
> > Previously part of https://codereview.chromium.org/829803003/
> >
> > BUG=389343
> >
> > Committed: https://crrev.com/1d9c45547709e77d599c218d76317895389db129
> > Cr-Commit-Position: refs/heads/master@{#342496}
> >
> > Committed: https://crrev.com/d9be58be03170c7c82f9c55abc2d21f0f7447c7f
> > Cr-Commit-Position: refs/heads/master@{#345356}
>
> TBR=jochen@chromium.org,jdduke@chromium.org,sievers@chromium.org,tedchoc@chromium.org,thakis@chromium.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=389343
>
> Committed: https://crrev.com/9763eb99753dc90ae912ebfbee3ba240c37db427
> Cr-Commit-Position: refs/heads/master@{#346669}

TBR=jochen@chromium.org,jdduke@chromium.org,sievers@chromium.org,tedchoc@chromium.org,thakis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=389343

Review URL: https://codereview.chromium.org/1306883009

Cr-Original-Commit-Position: refs/heads/master@{#346716}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3fca9561b090d6e0bac68ebd6267b78cb39bbdf9
2015-09-01 20:00:44 +00:00
brucedawson 8d0edeb561 Add /Zc:sizedDealloc- to work around VS 2015 bug
VS 2015's support for VC++ 14 sized deallocs causes __global_delete
to be exported from many object files, causing obscure and hard to
track linker errors.

The best workaround, as suggested here:

https://connect.microsoft.com/VisualStudio/feedback/details/1379741/-global-delete-function-is-inconsistently-generated

Is to use /Zc:sizedDealloc- to disable the new C++14 feature support
that is triggering this behavior change.

R=scottmg@chromium.org
BUG=526851

Review URL: https://codereview.chromium.org/1309263004

Cr-Original-Commit-Position: refs/heads/master@{#346671}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 690f7eab5ea2a2a7abb33100a37e5526947b1f22
2015-09-01 16:46:59 +00:00
bajones ce0134e3c1 Revert of Android WebVR implementation, Cardboard 0.5.5 SDK (patchset #12 id:220001 of https://codereview.chromium.org/1200303002/ )
Reason for revert:
Android team found an incompatibility with the 0.5.5 Cardboard SDK and non-ARM devices. Rolling back until the Cardboard team can address that.

Original issue's description:
> Android WebVR implementation, Cardboard 0.5.5 SDK
>
> Previously part of https://codereview.chromium.org/829803003/
>
> BUG=389343
>
> Committed: https://crrev.com/1d9c45547709e77d599c218d76317895389db129
> Cr-Commit-Position: refs/heads/master@{#342496}
>
> Committed: https://crrev.com/d9be58be03170c7c82f9c55abc2d21f0f7447c7f
> Cr-Commit-Position: refs/heads/master@{#345356}

TBR=jochen@chromium.org,jdduke@chromium.org,sievers@chromium.org,tedchoc@chromium.org,thakis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=389343

Review URL: https://codereview.chromium.org/1321383002

Cr-Original-Commit-Position: refs/heads/master@{#346669}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9763eb99753dc90ae912ebfbee3ba240c37db427
2015-09-01 16:40:41 +00:00
agrieve 3fe1f2a21b GN(android): Add scripts & runtime logic for installing _incremental apks
Currently only .so files are side-loaded (no .dex side-loading yet).
Does not require a rooted device.

Usage:

    ninja -C out/Debug chrome_apk_incremental
    out/Debug/bin/install_incremental_chrome_app_apk

BUG=520082

Review URL: https://codereview.chromium.org/1291793007

Cr-Original-Commit-Position: refs/heads/master@{#346583}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ae65db8da9a27bea569869f4b5a86de4b4857260
2015-09-01 07:04:28 +00:00
dpranke 3d822fcafd Add nacl_toolchain to //build and flip to using it in the GN Build.
With this change, in the Chromium repo NaCl will now be built solely using Chromium's versions of the GN build files, rather than a mixture of chromium and NaCl files.

This will allow us to delete the NaCl versions in a subsequent NaCl-side CL and switch to pulling the chromium versions in via a DEPS entry, and thus "unfork" the build.

R=brettw@chromium.org, ncbray@chromium.org, mcgrathr@chromium.org
BUG=433528

Review URL: https://codereview.chromium.org/1312813003

Cr-Original-Commit-Position: refs/heads/master@{#346452}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fa6ffe2fb9f488ddb859555f5abc29de72407a62
2015-08-31 20:18:45 +00:00
hshi 8f3ff722f2 Always use ENABLE_PLUGINS to indicate plugins support.
We should rely on GYP_DEFINE "enable_plugins" in gyp files and C++ macro
"ENABLE_PLUGINS" in source code to indicate plugins support. This removes
hard-coded assumptions that certain OS does (or does not) support plugins.

Also add GYP_DEFINE "enable_pdf" and macro "ENABLE_PDF" to indicate
built-in PDF viewer plugin support.

BUG=490433
TEST=trybot
TBR=sievers@chromium.org

Review URL: https://codereview.chromium.org/1318143002

Cr-Original-Commit-Position: refs/heads/master@{#346284}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 11e9711134d075bef1580c56f189ae5e1ab3c034
2015-08-29 00:15:33 +00:00
brettw f6de3eb472 Add Linux build packaging targets to GN
Changes the version processing templates to not implicitly include the chrome version .rc file. This was something I've been meaning to do for a while which was forced by this patch, because it wants to call version.py with no sources or template file. I also had to remove some checks that either a template file or sources were defined (I wasn't aware this was valid to do when I wrote these checks).

The above-mentioned change necessitated referencing the version template file from a number of existing calls.

The version script now explicitly sets the output file with -o. Previously this was the implicit second argument, but this didn't work if there was no template file. -o is the same and it's better to be more explicit anyway.

Added copy rules for xdg-mime related scripts which are required by the installer.

Added a meta "installer" target which links to the Linux installers. This will also be a good place to hook up the Windows installer when we write it.

BUG=525839
TBR=thestig@chromium.org (linux installer), ddorwin@chromium.org (widevine)

Review URL: https://codereview.chromium.org/1311543003

Cr-Original-Commit-Position: refs/heads/master@{#346279}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a874dccb5c0b7ccfe803a798a585351ce5efccc7
2015-08-28 23:59:50 +00:00
dpranke dd67724fd2 Modify the gcc_toolchain definitions in GN for NaCl compatibility.
This CL adds a number of optional settings to GN's
gcc_toolchain() template so that NaCl can use it to
define toolchains, most importantly by adding the ability
to customize post-link steps and set the default
output extensions for executables.

R=brettw@chromium.org, ncbray@chromium.org, mcgrathr@chromium.org
BUG=433528

Review URL: https://codereview.chromium.org/1322523008

Cr-Original-Commit-Position: refs/heads/master@{#346262}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: caf3cee6fd23ffe493fe69ba08d3bd1f7d646334
2015-08-28 23:06:44 +00:00
dpranke bca6faaa9b Move loader stub libraries out of //build/config/linux
The //build/config/linux library defined a number of targets
built through the generate_library_loader target. All of these
are fairly chrome-specific, so having them defined in the
//build/config/linux file made it harder to reuse that file
in non-chrome GN builds (like native_client).

This CL moves the targets out to a new //build/linux directory
and updates the callers accordingly.

R=brettw@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1314163005

Cr-Original-Commit-Position: refs/heads/master@{#346242}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ad0c1f495eca0968601ea74254b86fb91d412eb0
2015-08-28 21:49:08 +00:00
hanxi bb113beaef Update usage of Proguard in clank after moving Proguard to third_party.
This is a follow up CL of https://codereview.chromium.org/1288393002/.

BUG=505932

Review URL: https://codereview.chromium.org/1292313004

Cr-Original-Commit-Position: refs/heads/master@{#346006}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fac74610cdba9a4d9190c21a5880b751d3324634
2015-08-27 22:23:44 +00:00
mikecase 3fc4388c87 Never run errorprone on non-Chromium code.
If errorprone finds an error in non-Chromium code the build will
fail. This shouldn't happen, so I am disabling errorprone on
non-Chromium code.

BUG=

Review URL: https://codereview.chromium.org/1314493010

Cr-Original-Commit-Position: refs/heads/master@{#345941}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bb9e4863c7dd58c17fd53cd025f7f0dad17a52a5
2015-08-27 19:15:44 +00:00
mikecase ffc33a260b Update errorprone to fix java 8 issues.
This updates errorprone from 1.1.2 to 2.0.1. Version 2.0.1 includes
some fixes that lets errorprone work if you have java 8. I also
deleted the ChromiumErrorProneCompiler to just use the default
ErrorProneCompiler instead. Currently, the ChromiumErrorProneCompiler
doesn't override any default behavior and would need to be
changed a good bit to be compatible with 2.0.1.

BUG=517259

Review URL: https://codereview.chromium.org/1286613002

Cr-Original-Commit-Position: refs/heads/master@{#345688}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 29d8817ee93db9e2ba9177a456a4992e3ad54d99
2015-08-26 21:48:08 +00:00
agrieve 5296f9e33c Create *_incremental targets for android_apk()s
These are not depended on by the main rule, but can be built explicitly.
They are meant to be used to decrease adb install times (see bug)

BUG=520082

Review URL: https://codereview.chromium.org/1288023003

Cr-Original-Commit-Position: refs/heads/master@{#345513}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fd28ec0ae16a28fba11d0e3b72870f286b990d46
2015-08-26 01:01:41 +00:00
newt e89a8867ac Remove arbitrary references to ChromeShell in comments.
Since ChromeShell is going away, we shouldn't reference it in examples
in comments. This updates those comments to use something else as an
example.

Also, removing these references makes it easier to grep for the real
remaining uses of ChromeShell in the codebase.

BUG=510220

Review URL: https://codereview.chromium.org/1310733002

Cr-Original-Commit-Position: refs/heads/master@{#345452}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 309af8fba631f827583b3c4f19acf7b3b50c6363
2015-08-25 22:10:57 +00:00
jbudorick 14c749c2cf [Android] Add gyp support for multidex. (RELAND)
Reland of https://codereview.chromium.org/1278573002

BUG=272790
TBR=thakis@chromium.org,mmenke@chromium.org

Review URL: https://codereview.chromium.org/1318513003

Cr-Original-Commit-Position: refs/heads/master@{#345443}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f091dcb5146ce071e183303bd316f06e92b6ee3e
2015-08-25 21:38:00 +00:00