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

590 Коммитов

Автор SHA1 Сообщение Дата
cstout 5e499f0d07 Enable cross compile to android from mac.
Useful for mojo developers.

BUG=486809

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

Cr-Original-Commit-Position: refs/heads/master@{#329939}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9629015f518ea1e27a0ea1e7f1eb7ec40e3fc3cf
2015-05-14 21:38:56 +00:00
agrieve 08176b703f Adds GN rule & script for generating AndroidManifest.xml for APK splits
Build rule is not hooked up to any targets yet, but will be used in a
future commit to create split APKs.

.gypi also forthcoming.

BUG=447152

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

Cr-Original-Commit-Position: refs/heads/master@{#329850}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 81cc62af7059b65fe7d4d6dfd420f7cacd03ddc9
2015-05-14 15:03:40 +00:00
qsr 900fab11f9 GN: Do not set rpath on android executable.
Android executable do not support rpath, and the executable is
displaying a warning on launch if it is present. The warning is :
unused DT entry: type 0xf arg 0xa35

R=dpranke@chromium.org,brettw@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#329663}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 90acb0f2b53bfa3ae632f9391a8f8f6e5dcde9eb
2015-05-13 17:18:20 +00:00
nparker b7b417cbf6 Split to SafeBrowsingDatabaseManager into Local* and Remote*.
SafeBrowsingDatabaseManager: Pure interface
  TestSafeBrowsingDatabaseManager: Dummy impl for tests
  LocalSafeBrowsingDatabaseManager: Existing full impl.
  RemoteSafeBrowsingDatabaseManager: New for Android

Wire up the safe_browsing=3 build-mode to switch Android to
use Remote*.  Move SafeBrowsingCheck into Local* and create
the Test* impl that can't accidentally call a real
implementation's methods.  Adjust tests to use either Test*
or Local*.

The initial implementation of Remote* does the bookeeping
of requests, but doesn't yet make calls to Java and isn't
tested.

BUG=474608

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

Cr-Original-Commit-Position: refs/heads/master@{#329551}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b2cd5eef530be7100274af882af3f5aff4d1c4be
2015-05-13 01:12:35 +00:00
brettw 5c57b5e393 Sync defines with the GYP build.
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#329357}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9f7a2cb43a231998f6aaedf7e808562e9a46caaf
2015-05-12 05:37:43 +00:00
brettw 2e022e3e15 GN: fixes for the official build.
The C++ define OFFICIAL_BUILD wasn't getting set, and the widevine version .rc files was getting linked twice.

CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

R=dpranke
TBR=ddorwin@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#329308}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 303920e6cd9d352e7a7b4e9bdcc2f28a30ac22fa
2015-05-12 02:01:29 +00:00
cullinan f2b9b229e1 Reland: Actually use --extra-r-text-files in process_resources.py
Originally landed in crrev.com/1104703003
Reverted in crrev.com/1129103002 due to breaking GN APKs with no
resouces. This now handles the case where aapt doesn't generate an
R.txt (no resources) by creating an empty R.txt.

Generate extra packages' R.java files only containing the resources
listed in their R.txt files. This significantly reduces the number of
DEX field IDs taken up by resources.

BUG=480036
R=cjhopman,yfriedman

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

Cr-Original-Commit-Position: refs/heads/master@{#329219}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4b5d0300e3fa2a382ac3c1c157247a82583d7ed0
2015-05-11 19:11:53 +00:00
dpranke 67072c1e3f Fix building NaCl in Linux component GN builds.
R=brettw@chromium.org, bbudge@chromium.org
BUG=482415

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

Cr-Original-Commit-Position: refs/heads/master@{#328882}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fc9e836200dfd6d40034783f25a26728219276ab
2015-05-07 23:52:46 +00:00
brettw 2af8a25993 Fix the build metadata definition in the GN build.
The default value of the dont_embed_build_metadata in GN is swapped from the GYP build.

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

Cr-Original-Commit-Position: refs/heads/master@{#328826}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: be21e6fe0627b27d32a99c073e23b733d410b8a1
2015-05-07 21:02:25 +00:00
Hans Wennborg c0632ab72e Use Clang's update.py --print-revision everywhere.
Since yesterday, it works on Windows. This allows us to not
completely clobber the build from update.py each time, since the
build system tracks the dependency instead.

It should also be possible to use this from gn, so we can delete the
posix-print-revision.py script. The only problem was that the
hack we use for fixing the output in gclient runhooks didn't work.
I've adjusted that to not fail when the hack doesn't work.

BUG=483065
R=scottmg@chromium.org, thakis@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#328699}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cd20b07ab7edf2a7bab8e34362cebe5f92b41a27
2015-05-07 03:49:47 +00:00
thakis 5afa16f1ca Revert of Use Clang's update.py --print-revision everywhere. (patchset #4 id:60001 of https://codereview.chromium.org/1127233002/)
Reason for revert:
Looks like this broke the world: http://build.chromium.org/p/chromium.fyi/console?category=win%20clang

Original issue's description:
> Use Clang's update.py --print-revision everywhere.
>
> Since yesterday, it works on Windows. This allows us to not
> completely clobber the build from update.py each time, since the
> build system tracks the dependency instead.
>
> It should also be possible to use this from gn, so we can delete the
> posix-print-revision.py script. The only problem was that the
> hack we use for fixing the output in gclient runhooks didn't work.
> I've adjusted that to not fail when the hack doesn't work.
>
> BUG=483065
>
> Committed: https://crrev.com/828bba82c5ed315cf073ad9599c0d5334a9a403d
> Cr-Commit-Position: refs/heads/master@{#328634}

TBR=scottmg@chromium.org,hans@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=483065

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

Cr-Original-Commit-Position: refs/heads/master@{#328672}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 05320c6a7b8695c843c6d4de10261e7a65fafcb3
2015-05-07 01:20:32 +00:00
cjhopman a7a14d8508 Revert of Actually use --extra-r-text-files in process_resources.py (patchset #6 id:90001 of https://codereview.chromium.org/1104703003/)
Reason for revert:
Breaks gn apks with no resources.

Original issue's description:
> Actually use --extra-r-text-files in process_resources.py
>
> Generate extra packages' R.java files only containing the resources
> listed in their R.txt files. This significantly reduces the number of
> DEX field IDs taken up by resources.
>
> BUG=480036
> R=cjhopman
>
> Committed: https://crrev.com/a92cf235709397c737d5d9fdbadfb62e497c0334
> Cr-Commit-Position: refs/heads/master@{#328565}

TBR=yfriedman@chromium.org,msw@chromium.org,cullinan@amazon.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=480036

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

Cr-Original-Commit-Position: refs/heads/master@{#328664}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 61ff577cdede4b1e04846ef4af71659d194219b0
2015-05-07 00:37:09 +00:00
hans e79e646f58 Use Clang's update.py --print-revision everywhere.
Since yesterday, it works on Windows. This allows us to not
completely clobber the build from update.py each time, since the
build system tracks the dependency instead.

It should also be possible to use this from gn, so we can delete the
posix-print-revision.py script. The only problem was that the
hack we use for fixing the output in gclient runhooks didn't work.
I've adjusted that to not fail when the hack doesn't work.

BUG=483065

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

Cr-Original-Commit-Position: refs/heads/master@{#328634}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 828bba82c5ed315cf073ad9599c0d5334a9a403d
2015-05-06 22:39:31 +00:00
cullinan 8a93ad9385 Actually use --extra-r-text-files in process_resources.py
Generate extra packages' R.java files only containing the resources
listed in their R.txt files. This significantly reduces the number of
DEX field IDs taken up by resources.

BUG=480036
R=cjhopman

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

Cr-Original-Commit-Position: refs/heads/master@{#328565}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a92cf235709397c737d5d9fdbadfb62e497c0334
2015-05-06 18:34:01 +00:00
jam a31aac44fe Fix ASAN build in GN.
Also add missing dependency in mandoline.

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

Cr-Original-Commit-Position: refs/heads/master@{#328396}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7080a81857e6a5be8eed11942ead222e98e5b34f
2015-05-05 20:40:33 +00:00
tmoniuszko 09fa9366dd Allow safe_browsing_mode overriding in gn build
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#328298}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c01623f93b4c741608cc607bfbf71c95a97a76e4
2015-05-05 08:05:46 +00:00
jdduke 373881249e Reland "Enable libc++ on Android"
Switch all Android builds to use libc++ instead of stlport.

This change originally landed in crrev.com/315085, but was reverted in
crrev.com/315174 due to CQ execution time regressions.

The root cause of the test time regression was determined to be an issue
with MD5 hash computation, where hashing failed to produce a consistent
result in turn preventing deployment optimizations. This was resolved in
crbug.com/456396, leaving libc++ test runs comparable with stlport runs.

BUG=456396,427718

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

Cr-Original-Commit-Position: refs/heads/master@{#328296}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9f355f21c4049c622c71fc66a50e0288c5211335
2015-05-05 07:34:51 +00:00
brettw 019fd79696 Enable the multi_dll build of Chrome in GN on Windows
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#328055}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5849f998f4d9fb93090163be9be28833f65a8115
2015-05-02 05:13:54 +00:00
brettw 6a9e7271f7 Add a GN flag for the Windows multi-dll build.
The first pass of moving the other Chrome-specific build flags out of the root build config file and into the new one. This requires both ffmpeg and Blink changes to finish landing.

Originally landed as https://codereview.chromium.org/1120803003/
TBR=scottmg@chromium.org
TBR=ddorwin@chromium.org (widevine)
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#327998}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2b2364bb2c6fbb88e6a4550abeb9141bc7cb949c
2015-05-01 22:36:58 +00:00
dpranke e858654bc3 Fix GN visibility for a few targets that are compiled by default in a GN build.
When we build 'all' in GN, we can end up building targets that are
defined in various build files even if they are not transitively referenced
from 'gn_all' or 'gn_only'. This is undesirable because it makes it harder
to tell when there might be discrepancies between the GN and GYP builds.

Some of these targets may actually be hidden (using the visibility tag)
and only intended to be depended on by other targets that don't work yet.
By making this targets also visible to a top-level "//:gn_visibility"
target we can ensure that we're tracking them properly without breaking
the normal encapsulation rules.

The two targets affected in this patch are
- //build/config/sanitizers:options_sources
- //ui/resources:repack_ui_test_mac_locale_pack

R=brettw@chromium.org
BUG=431177
CQ_EXTRA_TRYBOTS=tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#327922}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b6128d057b09ade62d23528b6f919d5007f9defc
2015-05-01 16:41:27 +00:00
jbudorick 59ad00d3f7 [Android] Rename ChromeNativeTest* to NativeTest*.
ChromeNativeTest* implies that these files can use and are designed for
//chrome, which is not the case.

BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#327876}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 575a2608e3843ded80d91e11c027fc464477cc5a
2015-05-01 04:08:58 +00:00
rickyz c06bc70a26 Revert of Add a GN flag for the Windows multi-dll build. (patchset #3 id:40001 of https://codereview.chromium.org/1120803003/)
Reason for revert:
May have caused some link errors on windows: https://build.chromium.org/p/chromium.win/builders/Win%20x64%20GN/builds/814

Original issue's description:
> Add a GN flag for the Windows multi-dll build.
>
> The first pass of moving the other Chrome-specific build flags out of the root build config file and into the new one. This requires both ffmpeg and Blink changes to finish landing.
>
> R=scottmg@chromium.org
> TBR=ddorwin@chromium.org (widevine)
>
> Committed: https://crrev.com/edff53a35780ba2f515c7e8d4f7131c91151e1a3
> Cr-Commit-Position: refs/heads/master@{#327854}

TBR=scottmg@chromium.org,brettw@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

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

Cr-Original-Commit-Position: refs/heads/master@{#327861}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e203954b33d80072a7c8d256ffdc69fa42262765
2015-05-01 01:45:41 +00:00
brettw 8b84afe088 Add a GN flag for the Windows multi-dll build.
The first pass of moving the other Chrome-specific build flags out of the root build config file and into the new one. This requires both ffmpeg and Blink changes to finish landing.

R=scottmg@chromium.org
TBR=ddorwin@chromium.org (widevine)

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

Cr-Original-Commit-Position: refs/heads/master@{#327854}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: edff53a35780ba2f515c7e8d4f7131c91151e1a3
2015-05-01 01:10:14 +00:00
hans 752e0a8901 Clang style plugin: add warn-only option and use it on Windows
This will allow us to flip a flag to enable warnings-as-errors once
the Windows code is cleaned up enough without building a new plugin
binary.

Also, try not to compute the diagnostic level in multiple places.

BUG=467287, 483065

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

Cr-Original-Commit-Position: refs/heads/master@{#327852}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a7ae971275f2aa0a7a6501c72b571939c44baa2b
2015-05-01 01:02:53 +00:00
dpranke 9d95761a24 Disable Nacl on Linux GN component builds.
This is a temporary workaround until the other fixes for bug
482415 can land. This shouldn't affect any of the bots, as
the only component GN Linux build we have is also a debug build,
so NaCl was already disabled.

TBR=brettw@chromium.org, bbudge@chromium.org
BUG=482415

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

Cr-Original-Commit-Position: refs/heads/master@{#327604}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1feead57e3a71bbdad4775899b19d0b173ffc7e7
2015-04-29 23:00:33 +00:00
jbudorick 3299d03bba [Android] Add an out-of-app instrumentation driver APK. (RELAND)
BUG=444049

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

Cr-Original-Commit-Position: refs/heads/master@{#327118}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4d64d862917d9cd9e045e95c68a3dd984d4eabcd
2015-04-27 21:14:11 +00:00
jdonnelly 122ac1fe54 Revert of [Android] Add an out-of-app instrumentation driver APK. (patchset #15 id:280001 of https://codereview.chromium.org/1034053002/)
Reason for revert:
Broke the "Android" bot:

http://build.chromium.org/p/chromium/builders/Android/builds/38661

Original issue's description:
> [Android] Add an out-of-app instrumentation driver APK.
>
> BUG=444049
>
> Committed: https://crrev.com/79d22ed2b74d0ff1082f6febfd3fd93c0574d130
> Cr-Commit-Position: refs/heads/master@{#326900}

TBR=tedchoc@chromium.org,klundberg@chromium.org,yfriedman@chromium.org,thestig@chromium.org,cjhopman@chromium.org,torne@chromium.org,jbudorick@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=444049

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

Cr-Original-Commit-Position: refs/heads/master@{#326914}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 47b4c2f01324a903410ae9530156c2469601e91b
2015-04-24 22:53:46 +00:00
jbudorick e5db8723ef [Android] Add an out-of-app instrumentation driver APK.
BUG=444049

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

Cr-Original-Commit-Position: refs/heads/master@{#326900}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 79d22ed2b74d0ff1082f6febfd3fd93c0574d130
2015-04-24 22:16:04 +00:00
brettw e8f2ecff5a GN Windows build fixes
Most importantly, this passes cflags_cc to the C++ compiler.

This fixes some flag differences with the GYP build, especially when running on 64 bit.

It disables a TLS test on static debug x64 builds which also fails in GYP. This configuration is not run on the bots but is the standard GN Windows build.

BUG=251251
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#326856}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9a19ddbe04e2be759a15c6a70f6585152611af23
2015-04-24 19:30:46 +00:00
cjhopman 5c8f5e940c Enforce that apk_under_test is used
An apk may provide instrumentation for itself or another apk. When
providing instrumentation for another apk, the target for that apk
should be added to the android_apk() target as apk_under_test. This
ensures that the instrumentation apk is built correctly.

TBR=yfriedman@chromium.org
BUG=359249

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

Cr-Original-Commit-Position: refs/heads/master@{#326723}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d61e56e5b33c3c19db6fd6bf4e2536a982d42ec2
2015-04-24 02:35:21 +00:00
cjhopman 2691f7237f Make test apks exclude dex files in tested apk
This adds the apk_under_test variable to the android_apk template. When this is
set, we will build the apk as though it is an instrumentation test for the apk
set in apk_under_test. When building an instrumentation test apk, the dex file
should not contain libraries that are already included in the apk_under_test
(the dex files from both apks are loaded into the classloader when running
 tests).

The dex files to be included are calculating in write_build_config.py.

BUG=359249

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

Cr-Original-Commit-Position: refs/heads/master@{#326398}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7b9ba2e6b4f149845360a6e0f3fa4b0ac459e6be
2015-04-22 23:32:00 +00:00
davidben 11ff6b6b02 Initial support for using BoringSSL with NSS certificates.
This switches the USE_OPENSSL Linux and CrOS builds to continue
setting USE_NSS_CERTS. This lets it use BoringSSL for the crypto
and SSL stack and NSS for certificate verification. See design
doc for details on the flags:

https://docs.google.com/document/d/1x4DOCKwFkAxl9MGfd6snIzFigO4ku6Shuci0r5BzasQ/edit

On Linux, only client auth and OCSP stapling are missing. On ChromeOS,
there are some problematic USE_NSS_CERTS APIs in RSAPrivateKey to
resolve. We also still need to resolve crbug.com/347404 to maintain
parity.

As a follow-up, USE_OPENSSL_CERTS on non-Android can now be
removed (it was never supported anyway).

BUG=462040

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

Cr-Original-Commit-Position: refs/heads/master@{#326222}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2bcbc6bceb6017c762ef01553a55a12fe390de16
2015-04-22 02:36:54 +00:00
prashantv 46524125c7 Add BUILD.gn files for chromecast/media
Set default chromecast args in chromecast/args.gn

BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#326133}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4025129eb8db73777a99731cae1aef839933b366
2015-04-21 21:54:40 +00:00
davidben d768cf4e48 Remove the deprecated use_nss and USE_NSS flags.
This was separated out from
https://codereview.chromium.org/1085923002/
and
https://codereview.chromium.org/1082123003/
so that, if needbe, a revert is small.

BUG=462040

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

Cr-Original-Commit-Position: refs/heads/master@{#325888}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 745f7ca5062cb971453b77eb4b2008eade64ff5e
2015-04-20 18:59:35 +00:00
nparker bea2ce17f2 Refactor safe-browsing build-config definitions.
Centralize the configuration and break things down into individual sub-systems to enable, rather than referring to feature bundles.

I will in a later CL add safe_browsing==3 for enabling XLB on Android, which will define SAFE_BROWSING_DB_REMOTE.  When launched, this will replace mode 2.

SAFE_BROWSING_SERVICE - enable the browser to talk to the server.
SAFE_BROWSING_DB_LOCAL - maintain local database(s) synced from the server.
SAFE_BROWSING_DB_REMOTE - talk via API to an external DB (i.e. XLB).
SAFE_BROWSING_CSD - client-side phishing detection support.

This is nearly a copy of shess@'s 8-month-old
https://codereview.chromium.org/397853002/ which was LGTMed.  Diffs: Mostly merge conflicts, a rename, and few files added

BUG=394379,474608

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

Cr-Original-Commit-Position: refs/heads/master@{#325775}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 333f169bf09e1c455ea821520010ec8cc9658990
2015-04-18 13:33:33 +00:00
davidben 31c7d93ab6 Rename USE_NSS to USE_NSS_CERTS.
USE_NSS is confusing because it's not actually the analog of USE_OPENSSL; it's
the analog to USE_OPENSSL_CERTS. This is in preparation for the chimera build
which will set USE_OPENSSL and USE_NSS(_CERTS).

This CL was partially done automatically by the following command:

  git grep -l USE_NSS | xargs sed -i -e 's/defined(USE_NSS)/defined(USE_NSS_CERTS)/'

The remaining were caught by the following command and fixed manually:

  git grep 'USE_NSS\([^_]\|$\)'

Finally, the following command verified nothing in a separate repository was
sensitive to this change:

  find . -name '*.cc' -o -name '*.h' | xargs grep 'USE_NSS\([^_]\|$\)'

For now, the old name is still defined, but not used within Chromium.

A follow-up CL will remove deprecated use_nss and USE_NSS #defines
together which will then cause downstream churn. Though from a grep
of known downstreams, the churn seems to be fairly minimal. The
removal is split from this CL so that, if we need to revert, the
CL to revert is small.

TBR=pneubeck@chromium.org
BUG=462040

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

Cr-Original-Commit-Position: refs/heads/master@{#325710}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 71f35ff13af84be1b97483307e050d83c2179134
2015-04-17 20:56:33 +00:00
primiano aca3a1f59f Fix gn jni generation rules for Android
The GN rules for the JNI generator currently generate the --includes
argument (that is, the #include line which gets emitted in the
generated jni.h header) in the following way:

generate_jni: always relative to the src root (e.g., content/foo/bar.h)
    this is achieved by rebasing the jni_generator_include against //.

generate_jar_jni: relative to on root_build_dir (typically out/Release,
    hence ../../content/foo/bar.h). This is achieved by rebasing the
    jni_generator_include against root_build_dir.

generate_jni is fine, but relies on the target having set the root
src/ dir in the include path. The latter, instead, happens to work
only by accident because the targets that currently use it (currently
just surface_jni_headers) happen to have an include path which is at
distance two from the root src/ (so the generated #include
"../../base" happens to work).

This CL fixes both cases and causes the generated include to be always
relative to the destination folder of the generated header
(jni_output_dir). Furthermore, this change removes the dependency on
the generated header path. Rationale: the file itself is not an input
for the generator, the --include string gets just copied and pasted
into the generated file. Hence, the generator should not be re-run if
the contents of the jni_generator_helper.h changes.

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

Cr-Original-Commit-Position: refs/heads/master@{#325604}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9d6b1606854a8786e94858e1f65b2ae451e58ddf
2015-04-17 07:13:08 +00:00
Daniel Cheng 6fc175a23a Use the Clang plugin on Windows.
BUG=467287
R=thakis@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#325465}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2fcc20f4d2d51a8527af2f0f1dbe0a8bd6fb6809
2015-04-16 17:30:11 +00:00
jiangj f36ddd9009 Remove duplicate -std=gnu++11 flag for Mac gn build
It's already added when is_clang is true, which is always the case on
Mac.

BUG=336487

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

Cr-Original-Commit-Position: refs/heads/master@{#325090}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 24bb916c8b5ed81187156c94f02cde89ea4da509
2015-04-14 18:30:34 +00:00
torne 606ae16bfa Remove android_webview_build completely.
Remove the final remaining references to android_webview_build and
delete the variable itself from common.gypi and config.gni.

BUG=440793

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

Cr-Original-Commit-Position: refs/heads/master@{#325033}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 62adf72afec378e8e22a8c3f549b86100ebfea2f
2015-04-14 13:39:05 +00:00
jkarp 73522d52d1 Fix example about java_binary to java_binary instead of java_library
Change the example provided in rules.gni for declaring a java executable
target to java_binary instead of java_library.

BUG=476112

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

Cr-Original-Commit-Position: refs/heads/master@{#324932}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c8162e4c9d3cc2310cc290b10b8d509f876b607
2015-04-13 23:01:35 +00:00
kjellander c69a6743ba [Android] Update more GN paths related to testing/android/ move.
https://codereview.chromium.org/1079963002/ fixed
one path, but there were two more that needs fixing.

TESTED=Locally passing build using:
gn gen out/Default --args="target_os=\"android\" target_cpu=\"arm\""
ninja -C out/Default test_opus_padding

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

Cr-Original-Commit-Position: refs/heads/master@{#324854}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8af41b356f3d3f97b7cbde771b039a0a46bff0de
2015-04-13 15:50:28 +00:00
kjellander 4774a59be1 [Android] Update path to testing AndroidManifest.xml for GN.
In https://codereview.chromium.org/1071573003
the testing/android/ directory was moved into
testing/android/native_test/ which broke the
Opus test_opus_padding target. It's built as
part of the 'all' target, which is why it hasn't
been noticed (Android GN bots build chrome_shell_apk).

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

Cr-Original-Commit-Position: refs/heads/master@{#324836}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ac81bcc78bc4a74dc7e4e473c5833d2aad0103df
2015-04-13 11:22:01 +00:00
mfoltz c43c6c981e Add ENABLE_MEDIA_ROUTER define to builds other than Android and iOS.
BUG=461815

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

Cr-Original-Commit-Position: refs/heads/master@{#324177}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e62587c04a6a1732e61bff63fda0504d578fb391
2015-04-08 02:32:48 +00:00
mikecase bd91b921d8 Add new GN junit binary template and new GYP java binary template.
Adds a new junit_binary template for gyp which makes it easy to
make new Junit test suites by setting a lot of the options and
necessary dependencies for you.

Also, adds a new java_binary.gypi file which uses the
create_java_binary_script.py similiar to how the java_binary
GN template works when main_class is specified. This lets
GYP and GN work similiar when building a junit binary, so
our test runner can run them the same way.

Finally, because of the slightly different way were now running
the junit binary, the java classpath contains all of the jars
instead of just the test jar (before we were running
java -jar test_jar.jar which set the classpath to just be
test_jar.jar). Therefore, we can simplify things and just look
in the classpath for the paths to the Robolectric dependencies
when running Robolectric junit tests.

BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#324093}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1ad64324d470c43b29854282d5ad5b1ff75dfc6c
2015-04-07 19:45:50 +00:00
oshima 413b503eb0 Enable large file support
ChromeOS may use 32bit userspace on 64bit kernel. Make sure all 64bits are used when acessing file.

note: _FILE_OFFSET_BITS is already set to 64 on posix.

BUG=471407

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

Cr-Original-Commit-Position: refs/heads/master@{#323688}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f33a81c14818d8cdde53e3dc34f1b1344a4583f3
2015-04-03 08:03:43 +00:00
dpranke 551a582274 Add remaining remoting targets for the GN build.
R=brettw@chromium.org, garykac@chromium.org
BUG=461019
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#323314}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ce5eb83716e16f5b92e766ea95c70d2ed1b9ec17
2015-04-01 20:21:53 +00:00
mostynb b83acee6f3 add video hole support to the gn build
BUG=329447

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

Cr-Original-Commit-Position: refs/heads/master@{#323201}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e6a9adc346e41d6c7676689174c12fe15ff5dbe1
2015-04-01 08:27:24 +00:00
tfarina 2ef181b08f Port gles2_conform_test_windowless action to GN build.
It requires internal test files, hence it was not tested.

Partially tested on Linux with the following command lines:

$ gn gen out-gn --args='internal_gles2_conform_tests'

Formatted with the following command line:

$ gn format --in-place gpu/gles2_conform_support/BUILD.gn

BUG=432959
TEST=see above
R=dpranke@chromium.org,sievers@chromium.org

CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#323082}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 719f00367465a6b940dc2804be147a0b23546cf4
2015-03-31 19:01:18 +00:00
torne 1f6e035226 Remove most android_webview_build conditions from build.
Remove most references to android_webview_build from the build directory
now that we no longer support that build configuration. Fold conditions
into their parents where appropriate. Leave the variable itself defined
to 0 as not all uses in the tree have been removed yet.

A few references are left alone here and will be removed separately in
later changes that will be larger refactorings to eliminate other
variables.

BUG=440793

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

Cr-Original-Commit-Position: refs/heads/master@{#323013}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c6fe7a775af41cd98533e89a902b8b67044caa87
2015-03-31 11:51:32 +00:00
mdempsky 7ddfda8a93 build/config: use "trim string" instead of "value" for clang revision
Clang revisions aren't always GN literals; e.g., right now it's
"233105-1", but GN's "value" conversion parses as just "233105",
silently ignoring the trailing "-1".

See also discussion on gn-dev:
https://groups.google.com/a/chromium.org/d/msg/gn-dev/hHRC1HuWBo8/drOd5dTvO5oJ

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

Cr-Original-Commit-Position: refs/heads/master@{#322874}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 985f4d610a682fb4059d0360fc4de9da45bf34d8
2015-03-30 21:38:22 +00:00
tfarina b7dd65bda8 Port generate_gles2_conform_embedded_files action to GN build.
It requires internal test files, hence it was not tested.

Partially tested on Linux with the following command lines:

$ gn gen out-gn --args='internal_gles2_conform_tests'

BUG=432959
TEST=see above
R=dpranke@chromium.org,sievers@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#322639}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c0d45b8572d49861651342cb01fd85f956dc3309
2015-03-27 20:54:04 +00:00
dpranke bf4f5570f4 Remove old references to cpu_arch, os from GN files.
Now that os and cpu_arch are no longer needed or used anywhere.

R=brettw@chromium.org, rockot@chromium.org
BUG=344767
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#322499}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c329085593402937717484c073086cb1c904f37b
2015-03-26 23:36:31 +00:00
tfarina 019c02c62a Cleanup: Rename two entries of 'direct_dependent_configs' to 'public_configs'.
public_configs is the non-deprecated name of direct_dependent_configs.

BUG=None
TEST=gn gen out-gn
R=brettw@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#322363}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: dcbe0bcee17ee96b50496df6f569fc87bcc89a5f
2015-03-26 12:14:42 +00:00
brettw 8bc75f2a15 Turn off incremental linking for full symbols in GN Windows.
Previously the condition was reversed. We can only do incremental linking when symbols are disabled. I was hoping it would work for minimal symbols but I tested and it still fails.

This patch only does incremental linking when symbols are completely disabled.

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

Cr-Original-Commit-Position: refs/heads/master@{#322196}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2229d96aae1d38fbdc87455dc10da44ffbfdb1c0
2015-03-25 18:39:10 +00:00
jbudorick 06dd23c42b [Android] Incorporate findbugs into android builds.
BUG=431823

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

Cr-Original-Commit-Position: refs/heads/master@{#321927}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 45816be817451773244bf491806806be2cbab1cf
2015-03-24 03:15:40 +00:00
stapelberg f4ee148be5 Enable hi-dpi support on Linux.
With the recent bugfixes (see BUG=), hi-dpi support on Linux works well enough
to enable it by default.

BUG=143619

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

Cr-Original-Commit-Position: refs/heads/master@{#321865}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a27daaff43d65055a62aee8aca3415901ec3eb33
2015-03-23 21:48:37 +00:00
andresantoso 961dd7b8be MacViews: Fix missing browser assets
The MacViews browser were missing infobar and background tab assets.
mac_views_browser grit define is added so that we can include infobar assets.
Don't remap theme image ids so that Mac's background tab assets can be
found.
Map IDR_THEME_TAB_BACKGROUND_INCOGNITO to the same asset as
IDR_THEME_TAB_BACKGROUND.

BUG=425229

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

Cr-Original-Commit-Position: refs/heads/master@{#321602}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c306fb9a8d5179f34589d6ab330a71ebd40eb073
2015-03-20 18:17:02 +00:00
brettw dbeed0e1a4 Incremental linking setup for GN Windows build.
Makes chrome.dll on Windows not use incremental linking since the ilk files get too large.

This refactors the incremental linking configuration to make it easier to change the default.

BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#321585}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8900cf9444fc3e0adf6728926c96337ccadc9674
2015-03-20 17:08:57 +00:00
tapted 779d1ede94 Enable toolkit_views=1 by default on Mac
As announced on chromium-dev: http://goo.gl/NqrmLk (and after
discussions with chrome-eng-review).

This CL shouldn't change any user-visible UI, just change the way Chrome
is built on Mac. Soon, we will explore running ui/app_list/views/ on Mac
rather than the (outdated) ui/app_list/cocoa/.

A ~0.43% sizes regression on Mac is expected with this CL (~652kB
uncompressed). Full details in a doc: http://goo.gl/oHucmf

With this change, toolkit-views test cases in interactive_ui_tests will
start running on bots. views_unittests will be added to the Mac bots in
a follow-up.

BUG=363529

Committed: https://crrev.com/c11ec57849fd579c7a5559413488c018ea532311
Cr-Commit-Position: refs/heads/master@{#321075}

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

Cr-Original-Commit-Position: refs/heads/master@{#321294}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1ebbc90cc5e90df29fbfc0c72d792c71f09351c1
2015-03-19 04:44:40 +00:00
tapted 40d3983891 Revert of Enable toolkit_views=1 by default on Mac (patchset #4 id:210001 of https://codereview.chromium.org/984513002/)
Reason for revert:
Failing on GN build :(.

Link: http://build.chromium.org/p/chromium.mac/builders/Mac%20GN/builds/5288

E.g. display_change_listener_aura.cc:38:43:error: member access into incomplete type 'NSView'

Original issue's description:
> Enable toolkit_views=1 by default on Mac
>
> As announced on chromium-dev: http://goo.gl/NqrmLk (and after
> discussions with chrome-eng-review).
>
> This CL shouldn't change any user-visible UI, just change the way Chrome
> is built on Mac. Soon, we will explore running ui/app_list/views/ on Mac
> rather than the (outdated) ui/app_list/cocoa/.
>
> A ~0.43% sizes regression on Mac is expected with this CL (~652kB
> uncompressed). Full details in a doc: http://goo.gl/oHucmf
>
> With this change, toolkit-views test cases in interactive_ui_tests will
> start running on bots. views_unittests will be added to the Mac bots in
> a follow-up.
>
> BUG=363529
>
> Committed: https://crrev.com/c11ec57849fd579c7a5559413488c018ea532311
> Cr-Commit-Position: refs/heads/master@{#321075}

TBR=sky@chromium.org,scottmg@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=363529

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

Cr-Original-Commit-Position: refs/heads/master@{#321079}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c3bdb1c16c88005acdc0f22394a6780e805ae72f
2015-03-18 05:18:14 +00:00
tapted 9362a0c2d6 Enable toolkit_views=1 by default on Mac
As announced on chromium-dev: http://goo.gl/NqrmLk (and after
discussions with chrome-eng-review).

This CL shouldn't change any user-visible UI, just change the way Chrome
is built on Mac. Soon, we will explore running ui/app_list/views/ on Mac
rather than the (outdated) ui/app_list/cocoa/.

A ~0.43% sizes regression on Mac is expected with this CL (~652kB
uncompressed). Full details in a doc: http://goo.gl/oHucmf

With this change, toolkit-views test cases in interactive_ui_tests will
start running on bots. views_unittests will be added to the Mac bots in
a follow-up.

BUG=363529

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

Cr-Original-Commit-Position: refs/heads/master@{#321075}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c11ec57849fd579c7a5559413488c018ea532311
2015-03-18 04:39:00 +00:00
Dominic Mazzoni c4ee1c33e9 Re-land: Resurrect Aura Linux accessibility.
1. Avoids overloading in a C linkage block (mostynb)
2. Only compiles ATK support if use_x11 is true
    to avoid ChromeCast issue (gunsch)
3. Updates chrome/installer/linux expectations

Original changelist: https://codereview.chromium.org/975113002/

BUG=463671
R=thestig@chromium.org
TBR=dpranke, plundblad, sky

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

Cr-Original-Commit-Position: refs/heads/master@{#320790}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0e9bcce45c12479259c705a07a6b4b1e73b84bf2
2015-03-16 20:54:11 +00:00
cjhopman 0074e21ef1 Add native lib version name to chrome_shell_apk
This is checked on startup to ensure that the native lib is the right
version (used to workaround a platform bug that falied to extract the
native lib during updates).

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

Cr-Original-Commit-Position: refs/heads/master@{#320617}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 460d30e0297ece99ff070f0a5df9cc9eda25d0ee
2015-03-14 00:19:18 +00:00
tmoniuszko 41dc1ad3f0 Allow setting enable_remoting from gn args
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#320469}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d5987ac12656b53390ce56c96874290b833642e2
2015-03-13 08:27:21 +00:00
alexmos c5eb90175d Revert of Resurrect Aura Linux accessibility. (patchset #15 id:280001 of https://codereview.chromium.org/975113002/)
Reason for revert:
Caused compile failure on Linux x64 bot (http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%20x64/builds/56532)

Output snippet:
FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash ../out/Release/installer/debian/build.sh -o../out/Release -b ../out/Release -a x64 -c unstable
dpkg-shlibdeps: warning: binaries to analyze should already be installed in their package's directory.
2a3
> libatk1.0-0 (>= 1.12.4)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/debian/expected_deps_ia32
chrome/installer/linux/debian/expected_deps_x64

Original issue's description:
> Resurrect Aura Linux accessibility.
>
> This is based in part on the ATK code we had as part of the Linux GTK port
> that went away, but now rewritten on top of AXPlatformNode. This patch
> successfully exposes an accessibility tree for Views and exposes top-level
> windows and the the role and name of each View. You can test it using
> accerciser. This is just to get the infrastructure in place - we need to
> implement more of the interface for it to be useful for accessibility tools.
>
> BUG=463671
>
> Committed: https://crrev.com/f65bad877350b5f7857d29e4b1b0d4d3f5c7cb6d
> Cr-Commit-Position: refs/heads/master@{#320383}

TBR=plundblad@chromium.org,dpranke@chromium.org,sky@chromium.org,gunsch@chromium.org,dmazzoni@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=463671

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

Cr-Original-Commit-Position: refs/heads/master@{#320402}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 999e4c26444e68898d4fa642783263b6e408b7e3
2015-03-12 23:19:24 +00:00
aurimas a8813db8ea Roll Android SDK to API 22
Updated the following:
- Android SDK Platform API 22
- Android SDK Tools 24.1.2
- Android SDK Platform-tools 22
- Android SDK Build-tools 22
- Android SDK Sources 22
- Android Support Library 21.0.3

BUG=440601

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

Cr-Original-Commit-Position: refs/heads/master@{#320395}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e2a21a01b60eb329e61499458f51ebae7a0951ad
2015-03-12 22:41:47 +00:00
dmazzoni 85255d3fb5 Resurrect Aura Linux accessibility.
This is based in part on the ATK code we had as part of the Linux GTK port
that went away, but now rewritten on top of AXPlatformNode. This patch
successfully exposes an accessibility tree for Views and exposes top-level
windows and the the role and name of each View. You can test it using
accerciser. This is just to get the infrastructure in place - we need to
implement more of the interface for it to be useful for accessibility tools.

BUG=463671

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

Cr-Original-Commit-Position: refs/heads/master@{#320383}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f65bad877350b5f7857d29e4b1b0d4d3f5c7cb6d
2015-03-12 22:00:20 +00:00
rockot 7d0773a641 Reland: Add hpack utilities and perftests to net GN
This fixes a missed icu import from https://codereview.chromium.org/936313002
so we don't break the win8 GN build.

BUG=None
TBR=mmenke@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#320352}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9c67e5f53d127301b07f9fec2059db36ab3db9dd
2015-03-12 20:01:45 +00:00
ananta fe6a713c0a Revert of Add GN For hpack fuzzing utilities and net_perftests. (patchset #5 id:80001 of https://codereview.chromium.org/936313002/)
Reason for revert:
This causes a compile failure on the Windows 8 GN builder

http://build.chromium.org/p/chromium.win/builders/Win8%20GN%20%28dbg%29/builds/4271

Original issue's description:
> Add GN For hpack fuzzing utilities and net_perftests.
>
> This also adapts net GN targets to use the new size_t->int warning suppression config in //build/config/compiler instead of a locally defined config.
>
> BUG=
>
> Committed: https://crrev.com/707a56a6f0e56138fcef5db3ba7ace1ac3cb83eb
> Cr-Commit-Position: refs/heads/master@{#320187}

TBR=mmenke@chromium.org,dpranke@chromium.org,brettw@chromium.org,rockot@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#320206}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a588ba9a09a8149236551231beed523800382901
2015-03-12 02:14:05 +00:00
rockot eb43deb159 Add GN For hpack fuzzing utilities and net_perftests.
This also adapts net GN targets to use the new size_t->int warning suppression config in //build/config/compiler instead of a locally defined config.

BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#320187}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 707a56a6f0e56138fcef5db3ba7ace1ac3cb83eb
2015-03-11 23:51:15 +00:00
ncbray 6737d04f9b Fix GN NaCl Debug build of base.
BUG=401761
TBR=brettw
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#319987}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9099f49130311a760ce3fe88b7782a5574e6ba9d
2015-03-10 22:15:12 +00:00
thestig 443e019a99 Linux: Enable ODR violation detection. (try 2)
BUG=449754

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

Cr-Original-Commit-Position: refs/heads/master@{#319577}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 82d64ef43c1d15e1cc25d4b0d38dc314a0f565c0
2015-03-08 03:57:35 +00:00
brettw e59b936dc6 Audit GN cflags and defines to match GYP build.
This makes Skia compile on Windows in component build.

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

Cr-Original-Commit-Position: refs/heads/master@{#319357}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c30f70d94e8a470b57009fbfb14b7c6bd0783cc7
2015-03-05 23:14:41 +00:00
wtc a406c34887 MIPS compiler flags: use -mfp32, -mfp64, or -mfpxx only if -mhard-float
is used.

-mfp32, -mfp64, and -mfpxx only make sense if the FPU is used.

R=brettw@chromium.org,petarj@mips.com
BUG=446234

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

Cr-Original-Commit-Position: refs/heads/master@{#319227}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 07fce68bd04aa5b28916f76173b0c6ead60eddde
2015-03-05 06:34:11 +00:00
brettw 9ccd37a6cf Add remoting and PPAPI tests to GN build
Reland of https://codereview.chromium.org/961323004
TBR=dpranke

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

Cr-Original-Commit-Position: refs/heads/master@{#319080}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 31f4de692fea12661a046a0fc8d091ff6f04654d
2015-03-04 17:25:38 +00:00
tmoniuszko 12d10700dc Handle unpatched VS xtree header
BUG=

Committed: https://crrev.com/b5020725ac56d11c064086295af7db628b4fe64b
Cr-Commit-Position: refs/heads/master@{#318859}

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

Cr-Original-Commit-Position: refs/heads/master@{#319035}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d6edee7b20e353e0943103a1e6b232f940f80c89
2015-03-04 08:51:44 +00:00
jamesr 333d1e0eb2 Don't check includes in generate_jar_jni target
'gn check' for ui/gl:* in an android build currently fails with the
error message:

ERROR at //base/android/jni_generator/jni_generator_helper.h:11:11: Include not allowed.
          ^-------------------------
It is not in any dependency of //ui/gl:surface_jni_headers__jni_Surface
The include file is in the target(s):
  //base:base
which should somehow be reachable from //ui/gl:surface_jni_headers__jni_Surface

This target does not produce files that compile, so checking includes is
less useful.

R=brettw@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#318983}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 63e12fcc153d47463432954d1826c393c0962600
2015-03-04 00:52:05 +00:00
ulan 5749a27eb6 Revert of Handle unpatched VS xtree header (patchset #3 id:40001 of https://codereview.chromium.org/965713002/)
Reason for revert:
This broke Win 8 GN builders:

ERROR at //build/config/compiler/BUILD.gn:804:30: Assignment had no effect.
        msvs_xtree_patched = true

Original issue's description:
> Handle unpatched VS xtree header
>
> BUG=
>
> Committed: https://crrev.com/b5020725ac56d11c064086295af7db628b4fe64b
> Cr-Commit-Position: refs/heads/master@{#318859}

TBR=brettw@chromium.org,tmoniuszko@opera.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#318861}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 420ba82a866f64e26bad84fe3a384f74413f8ef2
2015-03-03 10:58:53 +00:00
tmoniuszko 2bd6d32a57 Handle unpatched VS xtree header
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#318859}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b5020725ac56d11c064086295af7db628b4fe64b
2015-03-03 10:28:48 +00:00
brettw 3212dac9c5 Remove link_chrome_on_windows GN flag.
This flag was used to disable linking when the bots were too behind. It's not needed any more.

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

Cr-Original-Commit-Position: refs/heads/master@{#318795}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4897a61fd022efb0b43033846fe878a351c55b35
2015-03-02 23:13:43 +00:00
cpu 50facb5abb Revert of Add remoting and PPAPI tests to GN build (patchset #6 id:100001 of https://codereview.chromium.org/961323004/)
Reason for revert:
broke windows GN builds as seen in

http://build.chromium.org/p/chromium.win/builders/Win8%20GN/builds/5206/steps/compile/logs/stdio

Original issue's description:
> Add remoting and PPAPI tests to GN build
>
> Reland of https://codereview.chromium.org/965633002/
>
> TBR=dpranke
>
> Committed: https://crrev.com/66c53eef76f7dff97b1bc76d51740c3a9c07844f
> Cr-Commit-Position: refs/heads/master@{#318756}

TBR=dpranke@chromium.org,brettw@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

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

Cr-Original-Commit-Position: refs/heads/master@{#318772}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: defc80c0cd51186b467c3e59eabdbf54d25bde74
2015-03-02 22:28:26 +00:00
brettw e5a2992c3f Add remoting and PPAPI tests to GN build
Reland of https://codereview.chromium.org/965633002/

TBR=dpranke

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

Cr-Original-Commit-Position: refs/heads/master@{#318756}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 66c53eef76f7dff97b1bc76d51740c3a9c07844f
2015-03-02 21:09:32 +00:00
tmoniuszko dd8ada2eab Move some feature flags to declare_args() so features can be disabled
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#318668}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c5a066f4e516b6dd295ccb3e460ee39ee0f3abd2
2015-03-02 08:46:31 +00:00
dpranke 65deabc69b Fix 32-bit x86 Linux build for GN uploads.
The bots still use 'cpu_arch' to set the architecture, and the build
file was keying off of build_cpu_arch to determine whether or not
to enable NaCl, so things were failing. Updating the the code to
'current_cpu' fixes the problem correctly.

TBR=brettw@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#318585}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1c35162ea310ab09b3bb72fe1bfe95232db5d1a6
2015-02-28 02:56:36 +00:00
scottmg b7d78d14bf Apply gn format with 'sources' sorting to src/
Application of https://codereview.chromium.org/962003002/.

TBR=keybuk@chromium.org
R=brettw@chromium.org
BUG=456014

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

Cr-Original-Commit-Position: refs/heads/master@{#318574}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7c7296f4dcb7e32fa4440b333a40a37699f517b1
2015-02-28 02:24:07 +00:00
jbudorick bb47de9677 [Android] Remove TestServerSpawner dependency from ChromeNativeTestInstrumentationTestRunner.
BUG=462239

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

Cr-Original-Commit-Position: refs/heads/master@{#318568}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6b2d16b5072558e38155bb727e4de041e176aac8
2015-02-28 01:47:00 +00:00
eroman b6dbce4b89 Revert of Add remoting and PPAPI tests to GN build (patchset #7 id:120001 of https://codereview.chromium.org/965633002/)
Reason for revert:
http://build.chromium.org/p/chromium.mac/buildstatus?builder=Mac%20GN&number=4498

ERROR at //remoting/host/BUILD.gn:56:7: Item not found
      "linux/x_server_clipboard.cc",
      ^----------------------------
You were trying to remove "linux/x_server_clipboard.cc"

Original issue's description:
> Add remoting and PPAPI tests to GN build
>
> BUG=
>
> Committed: https://crrev.com/d0437210926b14b1b7e06b2b56174fc92ade9c37
> Cr-Commit-Position: refs/heads/master@{#318539}

TBR=kelvinp@chromium.org,dpranke@chromium.org,brettw@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#318545}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d593eac9968cee2b5412ba22638ed16f0884c408
2015-02-27 23:41:58 +00:00
brettw ff981cca0e Add remoting and PPAPI tests to GN build
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#318539}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d0437210926b14b1b7e06b2b56174fc92ade9c37
2015-02-27 23:25:09 +00:00
wtc 111cc10055 Add the mips_dsp_rev, mips_float_abi, and mips_fpu_mode build variables.
mips_dsp_rev specifies the MIPS DSP ASE (Application-Specific
Extension) revision number. Possible values are 0 (unavailable), 1,
and 2. Default to 0.

mips_float_abi specifies whether or not MIPS floating-point coprocessor
instructions should be used. Possible values are "hard" and "soft".
Default to "hard".

mips_fpu_mode specifies the width of MIPS32 floating-point registers.
Possible values are "fp32", "fp64", and "fpxx". Default to "fp32".

The companion webrtc CL is
https://webrtc-codereview.appspot.com/39779004.

R=brettw@chromium.org,kjellander@@chromium.org,petarj@mips.com
BUG=446234

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

Cr-Original-Commit-Position: refs/heads/master@{#318524}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ff66006e62449071ab87ad01b025dac4a9029d06
2015-02-27 21:59:01 +00:00
dpranke 3ab62c8620 Enable NaCl on the Linux GN x64 release build (only).
I don't think any other config will work at the moment.

Note that this is also totally untested, but should at least compile :).

R=brettw@chromium.org
BUG=432959
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#318329}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2ea95fb51c079912c99ff90a4579e02d802a73e9
2015-02-26 22:19:48 +00:00
qsr 2c00d89567 Allow to exlude jar in android_standalone_library.
R=cjhopman@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#318214}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cd6ee6d5ce5a42c50d0284daeaa7bd664f58b8fb
2015-02-26 10:53:46 +00:00
dpranke 986b05cb9e Land prep work to enable NaCl in the Linux x64 GN builds.
This should get most of NaCl and the PPAPI stuff needed
for NaCl building and linking. There is more work to be
done to get some of the test binaries working (and
probably fill out parts of the NaCl SDK) and possibly
some pnacl support work remaining as well.

NaCl is still disabled by default (set enable_nacl=true
to change). Enabling nacl is still mostly untested and
likely doesn't work at all :).

R=ncbray@chromium.org, brettw@chromium.org
BUG=432959
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#318180}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6065cf751340a8a99b670357b2053ed6df12a7af
2015-02-26 03:31:51 +00:00
kmarshall d2689cd54a Add enable_media_router defines for GN and gyp.
BUG=460971
R=scherkus@chromium.org,DaleCurtis@chromium.org,xhwang@chromium.org,mfoltz@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#317931}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 87ef387dc7af9492c9605b6ed79ef8abd7eaa8a0
2015-02-25 00:46:50 +00:00
dpranke 08cd4d6f96 libjingle build fixes to enable_webrtc in the Linux GN build.
R=kjellander@chromium.org, brettw@chromium.org
BUG=456815
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#317929}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c989ea61869c438b2569f1722c3c05cfe72e6f46
2015-02-25 00:42:03 +00:00
torne ff2539c14d Make combined native/manual JNI registration work for clang.
Since clang has trouble with aliases for static functions, go back to
using a trivial wrapper function instead of an alias. Since there is
only one caller of the wrapped, static function, and its address is no
longer taken to generate the manual JNI registration table (the
wrapper's address is already being taken instead), there's no actual
benefit to using an alias anyway, since the compiler will simply inline
the static function into the wrapper.

BUG=442327,460857
TBR=cjhopman@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#317787}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cab875835ac9e39183ba0ac4fe30e96d1bdfec45
2015-02-24 12:55:37 +00:00
mnaganov e1c04e42ea Improve CLI interface of C++ enums to Java generator
1. Print error if input file doesn't have any annotated enums.

2. Convert "mandatory option" 'output_dir' into a positional argument.

3. Fix 'print_output_only' when running from command line.

BUG=458562

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

Cr-Original-Commit-Position: refs/heads/master@{#317783}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4e3301c82c48ac22439d1b9dc34ba05a0599e3e9
2015-02-24 11:56:59 +00:00
jdduke fe08ef23d7 [Android] Temporarily disable --warn-shared-textrel for mips
Mips builds hit this warning when linking the mesa library with libc++.
Temporarily disable the warning until a permanent solution can be found.

BUG=456380

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

Cr-Original-Commit-Position: refs/heads/master@{#317709}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c60179098e97dfda6c3fda982a028a27c9235805
2015-02-24 01:05:33 +00:00
torne 22ad692dfd Use combined native/manual JNI registration.
Add a new mode to the JNI generator which emits both native JNI exports
and manual registration code, and use this as the default mode (except
when compiling with clang as a clang bug prevents this from working at
present).

Native JNI exports are stripped from binaries by default to enforce that
the correct manual registration code is called (and to save increasing
the dynamic symbol table size), except for binaries that explicitly opt
in to using native exports (i.e. libwebviewchromium). Native exports are
not compatible with the crazy linker, so cannot be used universally.

The WebView-specific call to InitReplacementClassLoader, required by
native export mode, has been moved to base to make it easy for other
binaries to experiment with that mode.

Manual JNI registration can be disabled with a call to
base::android::DisableManualJniRegistration at the beginning of
JNI_OnLoad and this has been added to WebView. We plan to refactor the
Android library entry points to make it possible to avoid needing this
flag by just not calling JNI registration but the work is still ongoing;
the flag gets us the desired WebView startup time improvement in the
meantime.

BUG=442327

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

Cr-Original-Commit-Position: refs/heads/master@{#317434}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 103bf19477cc121eee7a3c2bdc221f2874c971c3
2015-02-20 23:07:22 +00:00
brettw 99b3ec1638 Add more targets to GN check.
Fix errors. Most of the problems were in net. Moves CreateAndConnectStreamForTesting's declaration to the header corresponding to the file it's implemented in.

Adds the other directories that don't pass yet to the list commented out so
it's easier to see what's still left.

TBR=armansito@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#317425}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bc44c0a95e9904154e2af47fb2dba8c37e169a13
2015-02-20 22:31:36 +00:00
dpranke 5bfd4d4a54 Fix GN os, cpu defaults for Android builds.
We would like to be able to default to the ARM CPU for
Android builds, not the host cpu (so that you can get the
default Android build by just specifying os="android");
prior to my cpu_arch -> target_cpu changes, this was the
case, but I accidentally broke this.

However, the target_cpu changes at least allow us to remove
the target_arch hack which was how they were accomplishing
this before :).

TBR=brettw@chromium.org
R=cjhopman@chromium.org
BUG=344767
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#317419}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 55187fbe2d3264d4c31432e2f8a77f094d7c986b
2015-02-20 22:10:45 +00:00
dpranke 6b94cd7a12 Update Chomium's build files to work w/ latest GN binaries.
The latest GN binaries rename cpu_arch to current_cpu and/or target_cpu
as appropriate, build_cpu_arch to host_cpu, and os to current_os and target_os as appropriate.

R=brettw@chromium.org
TBR=ddorwin@chromium.org
EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg
BUG=344767

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

Cr-Original-Commit-Position: refs/heads/master@{#317223}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4327621a322c964a8bc6d1ef5a4534f0f877d63e
2015-02-20 02:56:07 +00:00
dpranke ef1bc954a4 Roll GN binaries to #317120 for the cpu_arch changes
The newest version of GN replaces the 'cpu_arch' and 'os' variables with 'current_cpu', 'target_cpu', 'current_os', and 'target_os', and also replaces 'build_cpu' with 'host_cpu', and 'build_os' with 'host_os'.

The roll also picks up the change to add a new 'gn clean'
command, some absolute path handling fixes, a check_includes fix for action_foreach(), and some minor
internal fixes.

This patch also updates the build config files to accommodate the GN changes in a backwards-compatible manner, i.e., the configs now will set cpu_arch and os correctly in the right contexts. They will also allow the users to continue to set os= and cpu_arch= in an args file, so no user builds (or bots) will break.

Once all of the bots and all of the build files have been updated to refer to the new variables instead of the old ones, we can drop the backwards-compatible versions.

TBR=brettw@chromium.org
BUG=344767
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

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

Cr-Original-Commit-Position: refs/heads/master@{#317186}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7ee02bed35766535521c8e1f072b98cbf9eef53d
2015-02-20 00:16:56 +00:00
torne 6bb6ac3523 android: don't export unnecessary symbols.
Android binaries were relying on -Wl,--exclude-libs=ALL to prevent
unnecessary symbols from being exported in the final shared libraries
built in Chromium, however several changes were submitted that actually
disabled this linker flag in virtually all binaries, and thus it was not
really being used and many symbols were exported by mistake.

Remove --exclude-libs=ALL entirely from the Android build, as well as
all the places which were previously having to unset it, and instead
exclude the specific libraries which incorporate visible symbols that we
don't want: the NDK libraries which we statically link into the binary,
and a number of components of chromium which contain assembly code which
has not yet been fixed to set symbol visibilities correctly.

This reduces the number of exported symbols in the shared libraries to
only the ones we intended to export, which saves ~120KB binary size.

The GN build does not build the same set of things as static libraries,
so the list is slightly different there and several more symbols are
left in the final binaries which shouldn't be there, but are not pulled
in via a static library and so no --exclude-libs flag will ever fix it;
the symbol visibilities will need to be fixed at source.

BUG=448386
TBR=ben@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#317027}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 813edf0d362baf1a2b01fe54bc27ff4601d59713
2015-02-19 11:22:31 +00:00
torne 84b157fe6d android: Hide JNI exports by default.
Hide JNI exported functions in Android binaries by default, unless the
target in question has explicitly set "use_native_jni_exports" to
indicate that it relies on the JVM's automatic symbol lookup mechanism.

The functions are simply demoted to hidden visibility; the code will
remain unless the linker determines that it is unreferenced and strips
it via --gc-sections.

This ensures that binaries by default actually test the explicit JNI
registration codepaths, which are required for compatibility with the
crazy linker, while still allowing binaries that do not require crazy
linker compatibility to choose to use the automatic mechanism in future.

BUG=442327

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

Cr-Original-Commit-Position: refs/heads/master@{#316896}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9d90d85f73ca46847047ccbda270f25b637ccc86
2015-02-18 21:37:59 +00:00
brettw 032e1c5b9d Work on GN Win64 build.
Adds a new config to disable size_t -> int truncations and use it in various places where the x64 Windows build currently gives warnings.

This covers Chrome (except for Blink which has a separate patch) and the tests.

We should do a second pass to replace the existing instances of /wd4267 with this config.

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

Cr-Original-Commit-Position: refs/heads/master@{#316874}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1deb76bc64a51808cd3df93d8166f223241487fe
2015-02-18 19:28:58 +00:00
brettw e432a315a0 Add //ipc to "gn check", work on base
This fixes the header issues in these directories and adds them to the list of targets to be checked.

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

Cr-Original-Commit-Position: refs/heads/master@{#316705}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e75311d05a5839a37e20dbf8998080f2db9627ab
2015-02-17 23:57:20 +00:00
etiennej ffc31fc61e Change in android Java build rules for Mojo Java content handler
See https://codereview.chromium.org/898853006 for motivation

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

Cr-Original-Commit-Position: refs/heads/master@{#315959}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 32a8a141c605f608f158801ea863784683e4dd2f
2015-02-12 11:30:13 +00:00
thestig e52e87cf77 Revert of Linux: Enable ODR violation detection. (patchset #6 id:100001 of https://codereview.chromium.org/899403003/)
Reason for revert:
http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%20x64/builds/55780 found more ODR violations in libjingle.

Original issue's description:
> Linux: Enable ODR violation detection.
>
> BUG=449754
>
> Committed: https://crrev.com/e86588abd0f3b65777d8bc679747eeb6bbdf21f8
> Cr-Commit-Position: refs/heads/master@{#315906}

TBR=thakis@chromium.org,isherman@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=449754

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

Cr-Original-Commit-Position: refs/heads/master@{#315916}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e285e7bb174c9019b680f2b4f7831e107d5792eb
2015-02-12 02:50:09 +00:00
thestig dac591e07f Linux: Enable ODR violation detection.
BUG=449754

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

Cr-Original-Commit-Position: refs/heads/master@{#315906}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e86588abd0f3b65777d8bc679747eeb6bbdf21f8
2015-02-12 02:04:44 +00:00
halton.huo ecccd44736 Add GN build support for Android 64-bit platforms.
gn now run with arg target_arch = "x64", arm64 and mips64el
releated changes are added as well but not verified.

BUG=none

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

Cr-Original-Commit-Position: refs/heads/master@{#315680}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 98de73d11797b1b0ac7ac0b2f4234cb8f57bd2fc
2015-02-11 00:09:18 +00:00
aberent 272178b22a Make Chrome for Android dependent on Google Play Services
Various bits of Chrome for Android that are being upstreamed
(in particular Cast support) require Google Play Services.
This adds Google Play Services to the Android chrome_java
target.

Note that this uses a variable so that one can use an
alternative version of Google Play Services. This is
required for Chrome for Android development.

TBR=sky@chromium.org
BUG=450675

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

Cr-Original-Commit-Position: refs/heads/master@{#315538}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c8db3ccbde213d09fac41060c0bf81d4a0020cda
2015-02-10 11:18:48 +00:00
jam b71a43c4fc Revert of Enable libc++ on Android (patchset #16 id:460001 of https://codereview.chromium.org/835633003/)
Reason for revert:
Slows down the slowest bot on CQ by 20 minutes.

BUG=456396

Original issue's description:
> Enable libc++ on Android
>
> Switch Chrome on Android to use libc++ instead of stlport. WebView AOSP
> builds will continue to use stlport for the time being.
>
> Note that this change is exploratory, and likely to be reverted before
> branch point (ensuring WebView and Chrome remain in lockstep with
> respect to standard library dependencies).
>
> BUG=427718
> TBR=cpu@chromium.org
>
> Committed: https://crrev.com/8681920fa22ded465054301ce96657a4ddaf2a04
> Cr-Commit-Position: refs/heads/master@{#315085}

TBR=fdegans@chromium.org,pasko@chromium.org,jamesr@chromium.org,thakis@chromium.org,boliu@chromium.org,davidben@chromium.org,cpu@chromium.org,piman@chromium.org,jdduke@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=427718

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

Cr-Original-Commit-Position: refs/heads/master@{#315174}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f43ab9ce5b48ed622736d96c9fba9e8fa57858a3
2015-02-07 03:27:49 +00:00
dpranke 01aa1aeef9 Enable linking full chrome on windows GN builds again.
Now that we have fastbuild and Goma working, it should be safe to
link the full binary again in a GN build on the bots.

TBR=brettw@chromium.org, jam@chromium.org
BUG=354261

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

Cr-Original-Commit-Position: refs/heads/master@{#315140}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3f7de242521430670f79ab9bca1a6f3f0e53d6c2
2015-02-06 23:55:15 +00:00
thestig a23b0c3225 Revert of Linux: Enable multi-threading with the gold linker. (patchset #2 id:20001 of https://codereview.chromium.org/894463003/)
Reason for revert:
Several CrOS folks are reporting linker errors locally, even though the CrOS buildbots are green.

Original issue's description:
> Linux: Enable multi-threading with the gold linker.
>
> BUG=161942
>
> Committed: https://crrev.com/226488abee2adbdb6e54e5bfca1c3b2f52f2da2d
> Cr-Commit-Position: refs/heads/master@{#314991}

TBR=thakis@chromium.org,tzik@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=161942

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

Cr-Original-Commit-Position: refs/heads/master@{#315113}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d83ce6e884d3a4de08ff6c5e21547408440bb6ac
2015-02-06 21:46:17 +00:00
jdduke 291fe204c7 Enable libc++ on Android
Switch Chrome on Android to use libc++ instead of stlport. WebView AOSP
builds will continue to use stlport for the time being.

Note that this change is exploratory, and likely to be reverted before
branch point (ensuring WebView and Chrome remain in lockstep with
respect to standard library dependencies).

BUG=427718
TBR=cpu@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#315085}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8681920fa22ded465054301ce96657a4ddaf2a04
2015-02-06 19:33:41 +00:00
thestig 22a9eba49c Linux: Enable multi-threading with the gold linker.
BUG=161942

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

Cr-Original-Commit-Position: refs/heads/master@{#314991}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 226488abee2adbdb6e54e5bfca1c3b2f52f2da2d
2015-02-06 07:15:21 +00:00
tfarina 906f64eb81 GN: Allow users to enable DCHECK on Release builds.
This declares dcheck_always_on argument (false by default) so users can
override it. If set to true this will make a compiler define
(DCHECK_ALWAYS_ON=1). This mirrors GYP counterpart.

Debug:

$ gn gen out_gn/Debug --args='dcheck_always_on=true'
$ ninja -v -C out_gn/Debug base

Release:

$ gn gen --args='is_debug=false dcheck_always_on=true' out_gn/Release
$ ninja -v -C out_gn/Release base

Manually checked that -DDCHECK_ALWAYS_ON=1 is passed on the command line
to the compiler.

BUG=None
TEST=see above
R=brettw@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#314867}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a52158d7c0b0c697d1625680fbaf9c2902d26da7
2015-02-05 20:36:41 +00:00
brettw 3cf759cbfd Disable chrome target and tests on Windows.
The bots don't have the capacity to link these targets.

TBR=dpranke

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

Cr-Original-Commit-Position: refs/heads/master@{#314065}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6bb47923233d145ffd17a9d4aa72dfee059e468f
2015-01-31 20:19:37 +00:00
vchigrin 0e138c95a0 Fix chrome target in Windows GN build.
Review URL: https://codereview.chromium.org/874033003

Cr-Original-Commit-Position: refs/heads/master@{#314031}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 61944aec76677366442bacbf6b60cccf1508bca3
2015-01-30 23:52:51 +00:00
jbudorick 4f2c5356a5 [Android] Add a java version of the test server spawner.
BUG=448626

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

Cr-Original-Commit-Position: refs/heads/master@{#313532}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e1799e662af4e87b1e6d501e3511628f8579174d
2015-01-28 17:11:41 +00:00
erg 5f7d8cdf9b Disable -Wl,--as-needed in sanitizer mode.
We've had problems with this linker flag in --as-needed a few times now;
just disable it if we're doing a sanitizer build.

BUG=452105

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

Cr-Original-Commit-Position: refs/heads/master@{#313321}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 009e710e139692929e181400bcc97c71235b892e
2015-01-27 19:10:02 +00:00
tbarzic 7cca55af25 Reenable -Wl,-z,defs on mipsel
The flags were disabled to suppress a build error in ffmpeg.
The error should be fixed now:
https://crrev.com/a458f95e5718918a70506be2a33ea3be55e59024

BUG=450771, 371125
TEST=emerge-mipsel-o32-generic chromeos-chrome
cbuildbot --remote mipsel-o32-generic-tot-chromium-pfq-informational

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

Cr-Original-Commit-Position: refs/heads/master@{#313180}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4f79c115cae3f007a52eab70f614ab3c9b95f011
2015-01-27 00:39:51 +00:00
cjhopman 3d204626c7 Add apk native libs to the inputs of appropriate actions
Review URL: https://codereview.chromium.org/870093002

Cr-Original-Commit-Position: refs/heads/master@{#312933}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2a452669e7f48d4e163ffc5c8d7afbad73945bdd
2015-01-23 21:33:43 +00:00
vchigrin 9cec68b2c4 Add GN files for chrome_elf
Review URL: https://codereview.chromium.org/832583007

Cr-Original-Commit-Position: refs/heads/master@{#312814}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f2b90aae11de413812800c0f37480e64e4542adb
2015-01-23 11:13:19 +00:00
fdegans 00acc540d7 Roll openmax_dl to the latest.
This picks up:
-Fix Android ARM Neon build.
-Fix Android GN build.
This also fixes an issue with the GN ARM NEON build.

BUG=451035

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

Cr-Original-Commit-Position: refs/heads/master@{#312629}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d2a76a150091e5c5f1d9e4a42a27d6f1f7538137
2015-01-22 16:28:10 +00:00
jamesr 48e15483b7 Disable -Wl,-z,defs on mipsel to suppress ffmpeg error
The ffmpeg build on mips is broken which manifests in build errors when
z,defs is specified. The owners of this build would like the compile
time error to be suppressed for now while they work on a proper fix.

BUG=450771,371125

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

Cr-Original-Commit-Position: refs/heads/master@{#312557}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9267528ad62c796f30c9f51f398fbfa29f0232a1
2015-01-22 03:49:47 +00:00
jamesr 39e1f54425 (Temporarily) disable -Wl,-z,defs when using sanitizers
Compiling with -Wl,-z,defs and asan requires declaring a dependency on
//build/config/sanitizers:deps in every shared_library and executable,
however piles and piles of targets do not do this yet so this flag busts
the asan/etc builds in GN.  Disable for now so we can add the
dependencies bit by bit.

R=thakis@chromium.org
BUG=371125

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

Cr-Original-Commit-Position: refs/heads/master@{#312543}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2eff74b542c9dceb330967c7fa06274a4addf443
2015-01-22 02:50:10 +00:00
wtc 0ce8c05e41 Add compiler and linker flags for MIPS.
I ported the MIPS code from build/common.gypi except for the
mips_arch_variant variable.

R=benchan@chromium.org,brettw@chromium.org,petarj@mips.com
BUG=446234

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

Cr-Original-Commit-Position: refs/heads/master@{#312480}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0055a3a72acc45fb9aafcc965dd77db6cc99da6d
2015-01-21 22:29:33 +00:00
qsr 4bd61eb9cd Move the test template to //testing/test.gni (part 2)
This CL move the test target from build/config/BUILDCONFIG.gn to testing/test.gni

It also update the test template to automatically build an apk on Android.

R=cjhopman@chromium.org,brettw@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#312396}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fb5251d1ff4f36ea296da4be72ddf26a9e3e5643
2015-01-21 15:58:20 +00:00
jamesr 480ab946d3 GN: Add -Wl,-z defs on linux and fix errors
This tells the linker to resolve symbols for shared libraries at build
time, not run time. This alerts developers much earlier that their
dependencies are underspecified.

BUG=371125

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

Cr-Original-Commit-Position: refs/heads/master@{#312317}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4359db72cde4fe4eeb4125d9a88af765fcdf39f1
2015-01-21 12:40:49 +00:00
pkotwicz 07871e4221 Remove remainder of Athena related code from Chrome.
This CL:
- Removes athena dependencies from build files for the chrome target
- Removes athena-specific files in chrome/

BUG=440818
TEST=None
R=sky,scottmg
TBR=jamescook (for change to comment in extensions/shell/browser/desktop_controller.h)

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

Cr-Original-Commit-Position: refs/heads/master@{#312282}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5748e135876286766151600a96283d369dba6584
2015-01-20 21:53:39 +00:00
erg ff2e8992af Make |use_glib| configurable.
This is needed for mojo. We're trying to remove glib and dbus from our build, and need to be able to configure this option. This will be rolled back into the mojo repository.

This was split from the mojo patch: https://codereview.chromium.org/853133002/

BUG=443439

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

Cr-Original-Commit-Position: refs/heads/master@{#312261}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9252aff86f89f9ae0293a81b46097b1b51a6b553
2015-01-20 20:26:45 +00:00
mostynb be79cc6d3c gn: declare is_desktop_linux as a build argument
BUG=448159

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

Cr-Original-Commit-Position: refs/heads/master@{#311236}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e925a3b964d080423a2aef982c193139c4c4cca3
2015-01-13 08:06:06 +00:00
mostynb 3e122faae7 gn: declare use_debug_fission and use_gold as a build arguments
BUG=448159

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

Cr-Original-Commit-Position: refs/heads/master@{#311234}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cb33eb25aace2f181f2d785f4fd866fbab7f7c27
2015-01-13 07:48:52 +00:00
jbudorick b8e0b2f124 [Android] Rename [Chromium -> Chrome]NativeTestInstrumentationTestRunner.
Motivated by http://www.chromium.org/developers/coding-style#Naming

BUG=428729

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

Cr-Original-Commit-Position: refs/heads/master@{#310877}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7b40b73fea4cad08630bb87caeee64c5a8a061fe
2015-01-09 22:58:44 +00:00
qsr d0009ad748 Update unittest_apk target to allow specifying the name of the apk.
This is useful when we want to build a template that will automatically
construct a test on desktop platforms and a test apk on Android.

R=cjhopman@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#310479}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e97f885871e033274a60af0d5fcd4e94f62ef92f
2015-01-08 11:41:00 +00:00
brettw 3e5c6bffda Add browser_tests to the GN build.
Other misc fixes including:

Add "data_deps" to the templates in BUILDCONFIG. This was renamed from "datadeps" a while ago but both are still supported.

extension_management_test_util.cc includes a generated file policy_constants. GYP generates this with an extra "policy" directory but GN doesn't. The way GYP has the dirs set up, though, using only one "policy" works (and this is what other files do) so I just changed the include.

TBR=dpranke

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

Cr-Original-Commit-Position: refs/heads/master@{#310276}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7d6ec24650eb3f6c7ab8dcfcf0c2829095951962
2015-01-07 13:01:40 +00:00
jbudorick 17a5f2e42e [Android] Create a dummy app to upload to Appurify for gtests.
BUG=428729

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

Cr-Original-Commit-Position: refs/heads/master@{#310159}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 335cbe5177b3d0ec5d5564b646cb1a7b814c26d2
2015-01-06 22:27:36 +00:00
brettw a3405d6767 Add GN interactive UI tests.
Reland of https://codereview.chromium.org/795373005/ with fix.

TBR=dpranke

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

Cr-Original-Commit-Position: refs/heads/master@{#310072}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6c1a7728eb968dfc8c1e5ac51c1ce6a5e11feb79
2015-01-06 08:35:01 +00:00
nhiroki 565cb26608 Revert of Add GN interactive UI tests (patchset #3 id:40001 of https://codereview.chromium.org/795373005/)
Reason for revert:
This broke Linux ChromiumOS GN build:
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20GN/builds/5292

See also:
https://codereview.chromium.org/816393003

Original issue's description:
> Add GN interactive UI tests
>
> TBR=dpranke
>
> Committed: https://crrev.com/0287a1a1750bbe22d3b4efb29b08b9aed13e723e
> Cr-Commit-Position: refs/heads/master@{#310040}

TBR=dpranke@chromium.org,brettw@chromium.org
NOTREECHECKS=true
NOTRY=true

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

Cr-Original-Commit-Position: refs/heads/master@{#310054}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 60f03e08f89f08e3ccb3747edeeb426eb4ce9483
2015-01-06 05:01:09 +00:00
brettw 6715e583d7 Add GN interactive UI tests
TBR=dpranke

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

Cr-Original-Commit-Position: refs/heads/master@{#310040}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0287a1a1750bbe22d3b4efb29b08b9aed13e723e
2015-01-06 02:54:00 +00:00
vchigrin 0e38bd9ec3 Fix ui/gl and gpu target building with GN on Windows.
Review URL: https://codereview.chromium.org/809783002

Cr-Original-Commit-Position: refs/heads/master@{#309754}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e43326b6726b227c739383bae5f51368833a12d3
2014-12-30 09:42:14 +00:00
qsr 59870f85d8 Allow to add assets to test apks
R=cjhopman@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#309414}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9bdb24aa8d920e57b81341a912dc18a7d24be5df
2014-12-22 10:38:27 +00:00
ncbray 5509688214 GN: remove clang flag for NaCl build.
NaCl's version of clang is slightly older than the hermetic version used
in Chrome, and does not support this flag.  NaCl's GN build is not live
in the Chrome tree, yet, but this flag breaks local work to bring it up.

BUG=https://code.google.com/p/chromium/issues/detail?id=401761

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

Cr-Original-Commit-Position: refs/heads/master@{#308870}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 395afdd8d2cb172a0003816d33eb5ec785ea2aa7
2014-12-17 22:57:55 +00:00
Gordana.Cmiljanovic cb2f7d43d0 MIPSEL supports seccomp_bpf so use it with GN build as well
BUG=
TEST=Compile 'chrome' for MIPSEL Linux

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

Cr-Original-Commit-Position: refs/heads/master@{#308335}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 04f8a3bb7a946a6127f11c86a09ace0f15c62a63
2014-12-15 11:16:16 +00:00
Gordana.Cmiljanovic 072ddee821 Fix gcc_version.gni to determine target GCC version for MIPSEL Linux.
This CL modifies gcc_version.gni to set the gcc_version to the target
GCC toolchain version when building for MIPSEL Linux.

BUG=
TEST=Compile 'chrome' target with 'os="linux" cpu_arch="mipsel"'.
     Manually verify that the correct GCC options are used.

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

Cr-Original-Commit-Position: refs/heads/master@{#308334}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3bb044b814399b1584b8bcdedd8e2ffdb102b17d
2014-12-15 10:32:48 +00:00
dpranke cd80131348 Add dpranke, scottmg as owners for GN-related files in src/build.
Also, remove the 'set noparent'; that was probably useful when
build/OWNERS had a wildcard, but it doesn't any more.

R=brettw@chromium.org
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#308133}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3bce201c67c641d29f78960ebcf84b5c24467e16
2014-12-12 18:56:50 +00:00
hans fe1f4ac82b Roll Clang 218707:223109 (+r223211, +r223219, -r220714), take 2
This also reverts:
"Re-enable globals instrumentation under ASan on Mac."
964445e21b60278ff6e0de560c4110d8a161be36.
It was causing test failures.

BUG=431803, 440602, 352073
TBR=brettw@chromium.org
NOTRY=true

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

Cr-Original-Commit-Position: refs/heads/master@{#307768}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 75812af2fc918c3f22cc79dd83214bc1b2ec187c
2014-12-10 21:34:04 +00:00
hans b5e225a265 Revert "Roll Clang 218707:223109 (+r223211, +r223219, -r220714)" and follow-ups.
It was causing strange test failures in Mac ASan builds.

BUG=431803, 440602
NOTRY=true
TBR=thakis

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

Cr-Original-Commit-Position: refs/heads/master@{#307594}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d43941e4aca78576419b8ca2d74a416b4af17d84
2014-12-10 00:25:37 +00:00