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

144 Коммитов

Автор SHA1 Сообщение Дата
davidben e1e3fb5bda Rename use_nss to use_nss_certs in gyp and grit.
This matches the gn name and is less confusing with use_openssl and
use_openssl_certs both existing. The preprocessor flag will follow
in another CL. 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.

BUG=462040
TBR=wez@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#325541}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0ee13e37acf707e703a380a9c1a03f0b494dd6a6
2015-04-16 23:23:38 +00:00
tfarina 9ff0881008 leveldb: Move GN build file from secondary tree to the main tree.
There seems to be no reason to keep it out there. It just work just fine
in the main tree.

BUG=None
TEST=gn gen out-gn still works
R=cmumford@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#324542}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f11743d6ccb6172546c5d33b758b6b6b66ef4181
2015-04-09 23:57:18 +00:00
torne f57c00ce92 Remove indirection of cpufeatures.gypi.
Now that android_webview_build is no longer supported, the extra level
of indirection of including cpufeatures.gypi instead of directly
depending on the cpufeatures target is not necessary. Remove the cases
in the Chromium tree. Other references appear in projects pulled in via
DEPS that will have to be fixed separately before cpufeatures.gypi can
be entirely deleted.

BUG=440793

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

Cr-Original-Commit-Position: refs/heads/master@{#324117}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9845b890dd38f0b88b0304f3bd6c437a7c6f8f8d
2015-04-07 21:04:34 +00:00
tfarina b779243006 Add missing dumpfile.cc to leveldatabase target in GN build.
This was found by looking at the output of gyp_flag_compare step in
http://build.chromium.org/p/chromium.linux/builders/Linux%20GN%20%28dbg%29/builds/24157/steps/gyp_flag_compare/logs/stdio

Tested on Linux with the following command lines:

$ gn gen out-gn
$ ninja -C out-gn leveldatabase
$ touch third_party/leveldatabase/src/db/dumpfile.cc
$ ninja -C out-gn leveldatabase

BUG=461019
TEST=see above
R=cmumford@chromium.org
TBR=brettw@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/1044613002

Cr-Original-Commit-Position: refs/heads/master@{#322962}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8a33c992e0a969f8ec7584da579980dba660e376
2015-03-31 02:40:00 +00:00
knn 159718a26f Enable depend on stamp by default for all GN based grit targets.
This is a cleanup change that removes support for the depfile based on
first grit output.

BUG=466315

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

Cr-Original-Commit-Position: refs/heads/master@{#322584}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cc28e0dcbe1df4308cce6181ea8cb025ef0d3aeb
2015-03-27 15:49:52 +00:00
brettw 2924c3f5fb Add grit resource ID file to GN grit script inputs.
Grit's execution depends on the resource ID file, but this was not listed as a dependency in grit targets. This means that changing the resource ID file wouldn't re-run grit.

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

Cr-Original-Commit-Position: refs/heads/master@{#322531}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fd9bbb762401141baa603ef5bececbc9426da169
2015-03-27 04:53:25 +00:00
dfalcantara 495fe71b0e Fix downstream GN build
BUG=465201
TBR=cjhopman

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

Cr-Original-Commit-Position: refs/heads/master@{#322194}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e0366bc65267ef400766819c1cda1a063abe1169
2015-03-25 18:37:09 +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
jochen 0add35348e Roll ICU eda9e75..d319ad9
d319ad9 Import BUILD.gn into ICU repo

Also remove the now superfluous secondary BUILD.gn files for ICU

BUG=none
TBR=dpranke@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#321331}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 77501d57f0828fad566bc065056a56efc1df280d
2015-03-19 10:41:18 +00:00
knn aa5aca2cda Allow for GN Grit targets to depend on a stamp file instead of the first output in the .grd file.
BUG=466315

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

Cr-Original-Commit-Position: refs/heads/master@{#320903}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8915cf1873c38e62f4df71c9213b2a8918098a94
2015-03-17 12:58:04 +00:00
dpranke e9464c26b2 Add remaining trivial targets for the Linux GN build
This patch adds a whole bunch of small targets that
had either already been done but weren't mentioned
in the 'gn_all' group, or needed to be done.

In theory this should produce no change on any platform
other than Linux, except for one small windows target.

R=brettw@chromium.org
TBR=dtu@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/975123003

Cr-Original-Commit-Position: refs/heads/master@{#319580}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: db5527d777f1e0cdbaec2bca579bec33aaf7497e
2015-03-08 04:23:38 +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
dpranke ba58479a44 Reland #317760 - add gn_all, gyp_all targets
In order to be able to make sure we are building the same list of targets
in both the GYP and GN builds, this patch adds new 'gn_all' and 'gyp_all'
targets.

Eventually, we should make sure that if one builds 'gn_all', then building
'gyp_all', 'All', or 'all' then has nothing to do. We're not there yet, but this
is a start.

The 'gn_all' target replaces the //:root target in the GN builds.

TBR=brettw@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/953463003

Cr-Original-Commit-Position: refs/heads/master@{#317893}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e2ef382dd208417056acbd579620a428fa1b7af4
2015-02-24 21:43:06 +00:00
hiroshige aa2673d7a2 Revert of add gn_all, gyp_all targets to build files, remove GN's //:root (patchset #18 id:350001 of https://codereview.chromium.org/936193004/)
Reason for revert:
Suspecting this breaks Mac builds.
http://build.chromium.org/p/chromium/builders/Mac/builds/33993

Original issue's description:
> add gn_all, gyp_all targets to the build files, remove GN's //:root
>
> In order to be able to make sure we are building the same list of targets
> in both the GYP and GN builds, this patch adds new 'gn_all' and 'gyp_all'
> targets.
>
> Eventually, we should make sure that if one builds 'gn_all', then building
> 'gyp_all', 'All', or 'all' then has nothing to do. We're not there yet, but this
> is a start.
>
> The 'gn_all' target replaces the //:root target in the GN builds.
>
> R=brettw@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
>
> Committed: https://crrev.com/ff30e3de333305ccdaa103aa7f9e46765da83e99
> Cr-Commit-Position: refs/heads/master@{#317760}

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

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

Cr-Original-Commit-Position: refs/heads/master@{#317763}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e6d374cf7ead69b3ff110f9d7dfba0dee921e6b7
2015-02-24 07:54:29 +00:00
dpranke 1b0518d61d add gn_all, gyp_all targets to the build files, remove GN's //:root
In order to be able to make sure we are building the same list of targets
in both the GYP and GN builds, this patch adds new 'gn_all' and 'gyp_all'
targets.

Eventually, we should make sure that if one builds 'gn_all', then building
'gyp_all', 'All', or 'all' then has nothing to do. We're not there yet, but this
is a start.

The 'gn_all' target replaces the //:root target in the GN builds.

R=brettw@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/936193004

Cr-Original-Commit-Position: refs/heads/master@{#317760}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ff30e3de333305ccdaa103aa7f9e46765da83e99
2015-02-24 06:53:29 +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
jshin cdc3578551 Upgrade ICU to 54.1
ICU 54.1 comes with CLDR 26 locale data along with Lao and Khmer dictionaries
for line/word breaking, new interval/duration formatting support, display
context support for date-time and lang/region display name and many more.

To better support regional variants such as en-{CA,AU}, fr-CA, es-*, and de-CH,
the locale data for those variants are included.

The ICU data file (icudtl.dat) for non-Android platform is
256,960 bytes smaller than before.

On Android, it's 232,240 bytes larger because the currency display
name data was added for EcmaScript I18N API.

On Linux/Mac/Android/iOS, base::TestSuites initializer now sets the
ICU locale explicitly to en_US if the default locale is a POSIX locale
that is not supported because I got rid of word_POSIX to save about
100kB. Moreover, virtually none of our users uses a POSIX locale so that
testing on POSIX locale is not realistic.

en_GB time formatting changed in ICU 54.1/CLDR 26 and the expected results
are updated.

Noto to Sheriff: The above data size changes (reduction or increase) may
require the expected size adjustment.
See https://codereview.chromium.org/403723003 for a similar change.

BUG=428145
TEST=All tests on all platforms including but not limited to
 1. Blink: layout tests and webkit_unittests
 1. base_unittests: Break*, *onvers*, *Format*, *CU*, RTL*, *Search*
 2. browser_tests: *ncoding*, *UILanguage* (CrOS)
 3. sql_unittests
 4. gfx_unittests: RenderText*
 5. components_unittests: Query*, *ookmark*
 6. net_unittests: Net**IDN*, URL*
 7. url_unittests
 8. ui_base_unittests

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

Cr-Original-Commit-Position: refs/heads/master@{#317210}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8fe2fe9afd2d94f6cd814cd55900460ad11da26a
2015-02-20 01:39:13 +00:00
brettw 2efe2d0f1e Update existing uses of /wd4267 to use the GN config
This is the size_t to integer conversion warning. Using the config prevents flag duplication and is clearer to read.

Minor updates to Win64 build, including some fixes for size_t to int conversions.

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

Cr-Original-Commit-Position: refs/heads/master@{#317162}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d1c719acf7db459016f425eb8018ec4208511578
2015-02-19 23:18:14 +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
halton.huo 2cc40c70e6 libjpeg_turbo: Add linux include for android GN build.
linux and android should share same yasm defines and include_dirs,
just as src/third_party/libjpeg_turbo/libjpeg.gyp does.

BUG=455151

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

Cr-Original-Commit-Position: refs/heads/master@{#314719}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c3bb5e1ef6c5e741eb23eec23834527ddb140525
2015-02-05 02:14:54 +00:00
vchigrin a83196aecb Fix build flakes in GN build due to wrong deps for grit action.
BUG=452847

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

Cr-Original-Commit-Position: refs/heads/master@{#313684}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8eede94a17bd84717a34b9f7e83690a8ef4e3d15
2015-01-29 09:29:03 +00:00
dconnelly 2b35ed8100 Revert of Use data_deps rather then deps for mojo_bindings. (patchset #1 id:1 of https://codereview.chromium.org/876783003/)
Reason for revert:
https://code.google.com/p/chromium/issues/detail?id=452847

Original issue's description:
> Use data_deps rather then deps for mojo_bindings.
>
> Using deps caused pulling a bit of mojo code to chrome.exe. That
> caused weird unresolved externatls problems during Windows GN build.
>
> Committed: https://crrev.com/f7b4f01989be22df44d9b5475143ef98b653b1ac
> Cr-Commit-Position: refs/heads/master@{#313126}

TBR=brettw@chromium.org,dpranke@chromium.org,vchigrin@yandex-team.ru
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

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

Cr-Original-Commit-Position: refs/heads/master@{#313492}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 49911f06fc1d061a4b7e61e1811fe303b5ef0cd2
2015-01-28 13:02:01 +00:00
vchigrin f54e247093 Use data_deps rather then deps for mojo_bindings.
Using deps caused pulling a bit of mojo code to chrome.exe. That
caused weird unresolved externatls problems during Windows GN build.

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

Cr-Original-Commit-Position: refs/heads/master@{#313126}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f7b4f01989be22df44d9b5475143ef98b653b1ac
2015-01-26 20:45:27 +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
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
vchigrin 191b721614 Fix include directories in Windows GN build.
Review URL: https://codereview.chromium.org/845363002

Cr-Original-Commit-Position: refs/heads/master@{#311296}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 22779180d946d0e4d90a7ee3e6345992f2c0422b
2015-01-13 18:35:36 +00:00
wangxianzhu 4d9fa39229 Roll third_party/freetype (for Android only) to fd6919ac23f74b876c209aba5eaa2be662086391
This rolls third_party/freetype (for Android only) to the latest version
of AOSP/external/freetype.

TBR=michaelbai@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#308867}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9cef92c6ea5e65dab4b4ede60e15ea9d6dc960fc
2014-12-17 22:34:34 +00:00
scottmg 0b99ccf933 gn format // regressions
Presubmit added here: https://codereview.chromium.org/779383004/.

TBR=brettw@chromium.org, armansito@chromium.org
BUG=348474

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

Cr-Original-Commit-Position: refs/heads/master@{#307281}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6da1b58aa68bfd663b92fcd84c6cd52a29f2d9f7
2014-12-08 18:31:45 +00:00
Nico Weber e0ab7c5025 grit: Use new --write-only-new flag.
For the file I'm testing with (c/b/resources/about_stats.html),
a rebuild runs 101 edges and compiles a bunch of cc files and takes 40s.
This reduces build times from 40s to 9.6s and reduces the number
of edges to 37.

BUG=439182
R=brettw@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#306945}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9261dde33f1939f432cafe6f9654efedba4dc252
2014-12-05 00:50:15 +00:00
scottmg 317bbea2be gn format // (the rest, except mojo)
Excluded mojo because I think that needs to happen on the other side.

At gn --version = 306668 for which roll is in CQ.

R=brettw@chromium.org
TBR=scherkus@chromium.org
BUG=348474

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

Cr-Original-Commit-Position: refs/heads/master@{#306708}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 34fb7e5919ed42dc800acf3961fe6a2bf9e7d6eb
2014-12-03 23:27:41 +00:00
scottmg fd96972e70 gn format //build
A starting point for doing all of src, and adding a PRESUBMIT.

Includes https://codereview.chromium.org/772663002/ and https://codereview.chromium.org/770053002/.
I haven't pushed new binaries yet.

Generated via:
> cd build
> git ls-files *.gn *.gni | sed -e "s/^/@..\\\\out\\\\Debug\\\\gn format --in-place /" >x.bat && x.bat

The only things that I don't love in the current output are:

1. Turning

    args = [
      "--depfile", rebase_path(depfile, root_build_dir),
      "--android-sdk-tools", rebased_android_sdk_build_tools,
      "--dex-path", rebased_output,
    ]

into:

    args = [
      "--depfile",
      rebase_path(depfile, root_build_dir),
      "--android-sdk-tools",
      rebased_android_sdk_build_tools,
      "--dex-path",
      rebased_output,
    ]

The heuristic for this isn't trivial though, and it also affects e.g. '-Xclang' in cflags, as well
as assignments to temporaries that are later assigned to args.

2. Turning single line

    if (defined(invoker.inputs)) { inputs = invoker.inputs }

into

    if (defined(invoker.inputs)) {
      inputs = invoker.inputs
    }

This could be argued to be an improvement, but as it's very boilerplate-y perhaps an exception to
allow single line in this case is worthwhile. I think there was discussion of new syntax for this
case too, something like "inputs ?= invoker.inputs" maybe.

In both cases, I think it's worthwhile to get formatting turned on, and then go back and special
case these if we decide it's worthwhile.

R=brettw@chromium.org
BUG=348474

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

Cr-Original-Commit-Position: refs/heads/master@{#306305}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b199254f481c5db36d56e83fce40594b06d2b81f
2014-12-02 00:25:35 +00:00
Brett Wilson 0d23b07288 Add enable_hangout_services_extension flag to GN build.
This does not yet control anything, but is now hooked up to the C++ and grit defines as in GYP.

R=bemasc@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#306270}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2954bd38c7dfd9e5c36fae26ccaafb9088605bf8
2014-12-01 22:22:54 +00:00
thakis e2e1e883ae Revert of Revert of clang: Suppress a -Wstring-conversion warnings in nspr. (patchset #1 id:1 of https://codereview.chromium.org/758303002/)
Reason for revert:
The CL only changed warning flags and had no effect other than disabling warnings. It doesn't affect code generation, linking, etc.

You can check that the NSS roll only brought in a single cl with a warning flag change here: https://chromium.googlesource.com/chromium/deps/nss/

Original issue's description:
> Revert of clang: Suppress a -Wstring-conversion warnings in nspr. (patchset #1 id:1 of https://codereview.chromium.org/754623004/)
>
> Reason for revert:
> Build failed:
> http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%20x64/builds/54166
> "ERROR: Shared library dependencies changed!"
>
> Unsure if this is the cause, but it looks like a clang roll a few weeks ago caused a similar error message (crbug.com/433065) so seeing if a revert fixes things :) sorry if this is the wrong CL!
>
> Original issue's description:
> > clang: Suppress a -Wstring-conversion warnings in nspr.
> >
> > Do the gn version directly, and roll the nss dep to pick up the gyp version.
> >
> > BUG=82385
> > R=hans@chromium.org
> >
> > Committed: 109b55f5be
>
> TBR=hans@chromium.org,thakis@chromium.org
> NOTREECHECKS=true
> NOTRY=true
> BUG=82385
>
> Committed: https://crrev.com/60f77f2b85674ec3f681cce82b28b83c3beff596
> Cr-Commit-Position: refs/heads/master@{#305740}

TBR=hans@chromium.org,vrk@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=82385

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

Cr-Original-Commit-Position: refs/heads/master@{#305748}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 24c0bd306a4ae854a9fc6ecf5db3bc810dacf055
2014-11-26 01:01:37 +00:00
vrk a868d15113 Revert of clang: Suppress a -Wstring-conversion warnings in nspr. (patchset #1 id:1 of https://codereview.chromium.org/754623004/)
Reason for revert:
Build failed:
http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux%20x64/builds/54166
"ERROR: Shared library dependencies changed!"

Unsure if this is the cause, but it looks like a clang roll a few weeks ago caused a similar error message (crbug.com/433065) so seeing if a revert fixes things :) sorry if this is the wrong CL!

Original issue's description:
> clang: Suppress a -Wstring-conversion warnings in nspr.
>
> Do the gn version directly, and roll the nss dep to pick up the gyp version.
>
> BUG=82385
> R=hans@chromium.org
>
> Committed: 109b55f5be

TBR=hans@chromium.org,thakis@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=82385

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

Cr-Original-Commit-Position: refs/heads/master@{#305740}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 60f77f2b85674ec3f681cce82b28b83c3beff596
2014-11-26 00:51:17 +00:00
Nico Weber 565cc0adbd clang: Suppress a -Wstring-conversion warnings in nspr.
Do the gn version directly, and roll the nss dep to pick up the gyp version.

BUG=82385
R=hans@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#305703}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 109b55f5bed033a46f10fd2f50093b82f03586f3
2014-11-25 22:02:13 +00:00
cmumford 1d128545c2 LevelDB: Using base::File for all file I/O
Eliminated platform specific (stdio & Windows) File I/O calls and replaced with
the use of base::File. This makes Chrome's Env (nearly) platform agnostic while
simplifying the implementation.

BUG=431914

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

Cr-Original-Commit-Position: refs/heads/master@{#305020}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bf82318b8929b07d7bb0abce2729c5a83b9dbfcb
2014-11-20 16:33:17 +00:00
dpranke 792c88f742 Make *some* version of the Win GN build work.
R=scottmg@chromium.org, brettw@chromium.org
BUG=354261

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

Cr-Original-Commit-Position: refs/heads/master@{#303366}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 43760591658239084cf4b92ec4dd4decbb9c5fe6
2014-11-08 03:00:11 +00:00
vitalybuka 8d1cc55e8c Renamed enable_printing and printing_mode in *.gyp* and .*gn* files.
enable_printing and printing_mode replaced with
enable_basic_printing and enable_print_preview.

BUG=430281

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

Cr-Original-Commit-Position: refs/heads/master@{#302905}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 93eea40972717ac4e0a649bd289fc9e946512c33
2014-11-05 23:47:41 +00:00
vitalybuka 003e686c9c Re-factored printing defines and build configs.
Renamed DISABLE_BASIC_PRINTING to ENABLE_BASIC_PRINTING.
Renamed ENABLE_FULL_PRINTING to ENABLE_PRINT_PREVIEW.

BUG=430281

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

Cr-Original-Commit-Position: refs/heads/master@{#302868}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e29991c62a63bbce344e597306dab8150c67b532
2014-11-05 21:16:46 +00:00
John Abd-El-Malek 19ef65951a A few Windows GN build fixes.
These are from https://codereview.chromium.org/703753005/

R=scottmg@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#302844}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 494329e721bed7e2397664cf2859ed5889ef0c83
2014-11-05 19:09:29 +00:00
dpranke 7a921117bc Remove a couple of stale BUILD.gn files in build/secondary.
There are now files in the primary locations for flac and trace-viewer.

R=brettw@chromium.org
BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#302157}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e825878113bab9d4d993ce5f5440fb2caf942247
2014-10-30 21:14:30 +00:00
cjhopman aca1725e50 GN: Some small changes to support chrome android internal stuff
This actually hooks up (i.e. passes from invoker) several variables
controlling apk creation (version name, version code,
use_relocation_packer, use_chromium_linker, unzip_libraries_from_apk).

Adds support for overriding some configuration in the private repo.

Adds support for public_configs in grit_rule.gni.

Adds some junit targets (these are built as android libraries currently
instead of host libraries, but that just means we do a bit extra work
that we don't really need).

BUG=359249

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

Cr-Original-Commit-Position: refs/heads/master@{#301039}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ca675d3ec565477b2e3bae8b0709a412d029fa21
2014-10-24 03:51:23 +00:00
ajm acb703b033 Roll openmax_dl 79e64bc:6d58d90.
Adds support for non-Android ARM. Requires a GN change corresponding
to the gyp change here:
https://webrtc-codereview.appspot.com/29639004

BUG=415393

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

Cr-Original-Commit-Position: refs/heads/master@{#298635}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0a9d636948b331b86c226df4771616215175fbc5
2014-10-08 01:40:49 +00:00
cjhopman eb84219bc8 Add proto_java_library to gn
This adds a pretty straightforward gn template corresponding to
protoc_java.gypi.

protoc_java.py is updated to actually parse options instead of just
using positional arguments.

Adds cacheinvalidation targets.

TBR=brettw, zea

BUG=359249

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

Cr-Original-Commit-Position: refs/heads/master@{#297739}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a3f2d3f6819d1a6709a5a4d8fc62321e478bcc9f
2014-10-01 23:49:49 +00:00
ckocagil 647f7a9ef1 gn: Fix more build issues on Win
BUG=354261
R=brettw
TBR=piman,wtc
NOTRY=true

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

Cr-Original-Commit-Position: refs/heads/master@{#297481}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fc8d7f23b2f20a93c5d987d0c073e892d09f0ade
2014-09-30 19:32:02 +00:00
tfarina 8a6a7a4cd0 Enable the dependency on google_toolbox_for_mac.
We converted this target to GN already, so app_list can depend on it as
is. This should address the TODO(GYP) in the BUILD.gn file.

BUG=None
TEST=None
R=brettw@chromium.org
TBR=xiyuan@chromium.org,mark@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#297123}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fd1b08582a03e13af0ed5136473d447065947e96
2014-09-28 01:47:14 +00:00
rsesek 03eb34ef94 Fix google_toolbox_for_mac GN Mac component BUILD.gn file.
R=brettw@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#296476}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ffb8c67d5ddc14c31d03b09a32ebf01df2e4f636
2014-09-24 18:46:39 +00:00
cjhopman 84fc4c4f07 Make content_shell_apk build completely
This fixes configuration of various targets (mostly adding some missing
files for is_android builds).

Adds a target setting up the content_shell_apk assets directory.

Uncomments the previously non-working dependencies from
libcontent_shell_content_view.

Adds forwarding of testonly in all of the android templates.

TBR=mark@

BUG=359249

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

Cr-Original-Commit-Position: refs/heads/master@{#296319}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2fd48fd14b188a0b854f9c5910b9f40b5576291f
2014-09-24 00:53:11 +00:00
Brett Wilson b1de1de11f Replace forward_dependent_configs with public_deps
This is the new name. It has the same meaning but additionally with a "you can use the headers" permission.

Rename direct_dependent_configs to public_configs. This is the new name with identical meaning.

TBR=jamesr

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

Cr-Original-Commit-Position: refs/heads/master@{#296302}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e5389527466d390b5653724a069008b9f1edcd5c
2014-09-23 23:42:24 +00:00
isherman 2d9826560a [GN build] Update Mac NSS build config file location.
BUG=none
TEST=none
R=jamesr@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#296144}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 448520e817d910088c83ff665ecdd7c6306af7ef
2014-09-23 05:06:58 +00:00
cjhopman 512ff2b296 GN rules for openmax
BUG=359249

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

Cr-Original-Commit-Position: refs/heads/master@{#294994}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a19ca076f65f03b0cf9576a4e79f90a52e8f5e07
2014-09-16 02:48:15 +00:00
scottmg e0a9571f13 gn/linux: warnings as errors, turn on Wextra
Also remove a few redundant consts that result in warnings like:

../../content/common/cursors/webcursor_aurax11.cc:20:1: error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers]
const ui::PlatformCursor WebCursor::GetPlatformCursor() {
^~~~~~

TBR=davemoore@chromium.org,sadrul@chromium.org
R=brettw@chromium.org, thakis@chromium.org,rch@chromium.org
BUG=393046, 335824

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

Cr-Original-Commit-Position: refs/heads/master@{#293930}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4c2d33ac8c061cf27a594473d6f9a450ee6c3c89
2014-09-09 13:20:23 +00:00
Brett Wilson 6bd9d78a23 Mark gtest and gmock as testonly in GN.
This updates the targets that depend on these to also be test-only.

BUG=http://crbug.com/412064
R=jamesr@chromium.org, tfarina@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#293808}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0c8745ab0e0a81fd627d6fcbf4569928724ff8c2
2014-09-08 23:18:07 +00:00
brettw 36da715672 Convert GN visibility variables to lists.
Currently this is either a list or a string. However, this is causing some problems because templates can't add to the invoker's visibility list without knowing if the original is a string or a list.

In an effort to make this consistent, I'm converting all visibiltiy to be lists, and will remove support for strings in a future build.

This exempts cld from header checking since it was confusing GN's header checker. It adds a ppapi header target as well that will be used by libyuv (that requires a roll).

TBR=scottmg

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

Cr-Original-Commit-Position: refs/heads/master@{#293638}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9af4262ad8020658ee04c07d13a2617af64147b1
2014-09-06 21:23:45 +00:00
thakis 5a7e9a90d2 Revert of Make ui gn check pass. Misc GN build improvements. (patchset #3 id:40001 of https://codereview.chromium.org/545313002/)
Reason for revert:
Broke http://build.chromium.org/p/chromium.linux/builders/Linux%20GN%20%28dbg%29/builds/11835

[783/786 | 258.324] LINK ./chrome
FAILED: /mnt/data/b/build/goma/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wl,--fatal-warnings -m64 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -pthread -B../../third_party/binutils/Linux_x64/Release/bin -fuse-ld=gold -Wl,--icf=none -Wl,-rpath=\$ORIGIN/ -Wl,-rpath-link= -Wl,--disable-new-dtags -o ./keyboard_unittests -Wl,--start-group @./keyboard_unittests.rsp  -Wl,--end-group  -ldl -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -ludev -lfontconfig -lX11 -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lXss -lXtst -lpangocairo-1.0 -lpango-1.0 -lcairo -lnss3 -lnssutil3 -lsmime3 -lplds4 -lplc4 -lnspr4 -lgconf-2 -lresolv -lfreetype -lasound -lXrandr -lcups -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgcrypt -lz -lpthread -lcrypt -lm -lcap -ldbus-1 -lcrypto -lexpat
../../content/utility/utility_thread_impl.cc:38: error: undefined reference to 'content::UtilityThread::UtilityThread()'
../../content/utility/utility_thread_impl.cc:44: error: undefined reference to 'content::UtilityThread::UtilityThread()'
../../content/utility/utility_thread_impl.cc:49: error: undefined reference to 'content::UtilityThread::~UtilityThread()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Original issue's description:
> Make ui gn check pass. Misc GN build improvements.
>
> Content/public/app was messed up and didn't link everything properly, so this separates it out into browser and child like content/app is.
>
> R=jamesr@chromium.org
>
> Committed: b41a8d6e78

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

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

Cr-Original-Commit-Position: refs/heads/master@{#293595}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3f1281e5b0f2d2f8a8d8bd17a108f6ed0c9c7d7f
2014-09-06 00:23:15 +00:00
Brett Wilson 96d312afd8 Make ui gn check pass. Misc GN build improvements.
Content/public/app was messed up and didn't link everything properly, so this separates it out into browser and child like content/app is.

R=jamesr@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#293592}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b41a8d6e789ac5df9a6d314cd0ad59f584f53dea
2014-09-05 23:32:30 +00:00
Brett Wilson 392cc7e5a7 Add some more libjingle targets to the GN build.
Add usrsctp. Make Windows version configurable for this in the build.

direct_dependent_configs for libsrtp.

R=hclam@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#293004}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c63f22b374dd953b8003800babbe833688e4b93d
2014-09-02 22:02:22 +00:00
Brett Wilson 82f17d43bd Fix clang warnings in GN build.
This also makes the opus_demo app in the GYP build compile and link (which I discovered when tracking down why the GN version of this gives warnings).

R=scottmg@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#291961}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bd485b85f96f099caa89e3929fb3d541acbad531
2014-08-26 19:25:30 +00:00
cjhopman@chromium.org 2d32f0b6b8 Add support for prebuilt jars
Mostly just a refactoring of build rules to support prebuilt jars.

Adds support for proguard preprocessing of both prebuilt and
non-prebuilt java libraries.

Adds definitions of all (but for android.jar) of the prebuilt jars that
we need from the sdk.

BUG=359249

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

Cr-Original-Commit-Position: refs/heads/master@{#291464}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 684b22957e09c08e917a63390b04980a67da4fa1
2014-08-22 19:13:57 +00:00
brettw@chromium.org 0274bded71 Fix empty resource IDs file in GN build.
Previously, if you specified an empty resource ID file in the grit template in the GN build, it would send "-f" with no argument to grit, and this would cause the command line parsing to get messed up and it wouldn't generate any files.

This patch just omits the "-f" argument in this case.

R=jam@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@291173 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-21 20:38:44 +00:00
tfarina@chromium.org 5d18f01949 Remove ui/ directory from build/secondary.
This directory contains a GN build file that defines a dummy "ui"
component target that does not really do anything that matters.

ui/ targets are almost finished at this time, so there is no point in
keeping this ui/ BUILD file in build/secondary.

BUG=None
TEST=None
R=brettw@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@290188 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-17 17:28:02 +00:00
brettw@chromium.org 33849ebdd0 Allow the grit GN targets to specify an output name.
This resolves collisions if two grit targets with the same name (often
"resources") end up in the same output directory.

This reverts 289283 and replaces it with the unique output names rather than
the duplicative target names. The original problem was from 289264.

BUG=
R=joaodasilva@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@289691 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-14 20:32:17 +00:00
jamesr@chromium.org 0603299dc4 GN: Only define UNIT_TEST in direct gtest deps
This matches the gyp build and is important for parts of the code that
guard their API with UNIT_TEST. For instance,
chrome/browser/ui/views/omnibox/omnibox_view_views.h has a GetRenderText
function guarded by #if UNIT_TEST that shadows a protected function
GetRenderText from its parent class views::Textfield, but with different
const-ness. If c/b/u/v/o/omnibox_view_views.cc is compiled with UNIT_TEST
set, it attempts to use the guarded member function instead of the base
class which fails to compile.

R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@288988 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-12 15:45:19 +00:00
ncbray@chromium.org f738229640 Roll gtest and gmock DEPS.
These DEPS have not been updated for ~2 years, so there is a good chance
something will blow up. Due to interdependancy between the repos,
rolling gtest required gmock also be rolled.

This CL was originally landed as 288164 and reverted as 288239 because it allows
more aggressive LTO in MSVS. This resulted in the compiler noticing an
intentional arithmetic overflow and warning about it.

BUG=401761

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@288505 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-09 05:24:02 +00:00
tommi@chromium.org 191028a5ad Revert 288164 "Roll gtest and gmock DEPS."
Suspected to have broken the Chrome Win build:

c:\b\build\slave\google-chrome-rel-win\build\src\base\numerics\safe_numerics_unittest.cc(577) : error C2220: warning treated as error - no 'object' file generated
c:\b\build\slave\google-chrome-rel-win\build\src\base\numerics\safe_numerics_unittest.cc(577) : warning C4756: overflow in constant arithmetic

> Roll gtest and gmock DEPS.
> 
> These DEPS have not been updated for ~2 years, so there is a good chance
> something will blow up. Due to interdependancy between the repos,
> rolling gtest required gmock also be rolled.
> 
> BUG=none
> 
> Review URL: https://codereview.chromium.org/425333002

TBR=ncbray@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@288239 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-08 07:57:23 +00:00
ncbray@chromium.org fffa0249dc Roll gtest and gmock DEPS.
These DEPS have not been updated for ~2 years, so there is a good chance
something will blow up. Due to interdependancy between the repos,
rolling gtest required gmock also be rolled.

BUG=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@288164 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-07 23:40:18 +00:00
thakis@chromium.org 5c1a1eacf9 Use a qualified path to blink resources, content part.
This should prevent problems such as described in

  [chromium-dev] PSA: clobber build needed for IDR_INSPECTOR_*
                 compile errors in blink_platform_impl.cc

Depends on https://codereview.chromium.org/431883002

BUG=400860
TBR=brettw

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@288077 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-07 16:35:02 +00:00
tfarina@chromium.org e14f357a76 Remove some GN Build files related to blink from build/secondary tree.
Blink now has the real implementations of these files in their repo:

platform -> https://src.chromium.org/viewvc/blink?view=rev&revision=172998
wtf ->  https://src.chromium.org/viewvc/blink?view=rev&revision=172321

BUG=None
TEST=trybots
R=brettw@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@287947 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-07 03:00:23 +00:00
brettw@chromium.org 1384c635ef Set the grit .d file dir in GN build properly.
Put the .d file in the same directory as the output from grit. Currently it
uses the default location for the .d file all the time, even in cases where the
output directory is overridden and the rest of the files go somewhere else.

R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@287877 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-06 22:34:55 +00:00
scottmg@chromium.org 1ffa659b73 gn win: Disable srtp tests that don't compile on Windows
These are included in the gyp build, but not in All. They also don't
compile on Windows for the gyp build.

R=brettw@chromium.org
BUG=354261

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@286663 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-31 00:55:16 +00:00
jamesr@chromium.org 71e5691442 GN: Make chrome/{browser,common,renderer} compile on mac
This adds GN rules for google_toolbox_for_mac and generate_localize as
well as fixing up various source issues that show up on the mac build.
With this chrome/{browser,common,renderer} compile on mac (but probably
don't fully link).

R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@286364 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-30 00:40:03 +00:00
brettw@chromium.org 657f4d96d1 Make content_shell link in the GN build.
It doesn't run yet. This disables WebRTC since that's not done yet.

Libvpx isn't done either. This patch exports the disable flag for this from media to dependent targets like the GYP build does. It adds one extra check for this flag in Pepper. I assume everybody that compiles without libvpx also disables plugins so this has never come up before.

Disable some warnings in Mesa.

The resulting binary does not yet run.

R=jamesr@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@285962 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-28 19:47:04 +00:00
brettw@chromium.org 862fb27f90 Add missing base files to GN build.
Fix the devtools resources target to use the grit template.

Fix the grit template to use the correct output directory for the expected files if one is specified

R=viettrungluu@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@285334 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-24 18:24:30 +00:00
brettw@chromium.org d21c1483e7 Update the tracing grit GN rule
Previously this rule had a lot of custom stuff to work around the fact that the grit rule couldn't run at GN time to get the inputs and outputs. Now that the inputs are lazy, we can use the template.

R=viettrungluu@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@284948 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-23 16:34:40 +00:00
brettw@chromium.org 4cf8684f3e Encode all grit outputs in .gn files
This finishes the rest of the Grit outputs that was started in a previous pass, and removes the ability to optionally deduce outputs at GN-time (which is slow so we don't want to do it).

R=viettrungluu@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@284947 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-23 16:32:32 +00:00
brettw@chromium.org 0f4306549b GN chrome/common build, rename enable_printing.
This adds the missing conditions to the chrome/common GN build file (previously
only the basic files were there). Some refactoring of the GYP file to make this
possible.

Renames the enable_printing flag to printing_mode since this is an integer
tri-state.

Minor improvements to chrome/renderer

TBR=jamesr@chromium.org
Original review=https://codereview.chromium.org/400243003/

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@284783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-22 21:49:52 +00:00
brettw@chromium.org 5184ec277a Hook up .d files and outputs to grit
Pull grit 171 to get the new deps fixes required to implement this.

This removes the call to grit for querying inputs completely, and enables depfile writing to enable automatic rebuilds when things are out-of-date.

Adds a new outputs variable that bypasses querying grit for outputs. This will assert that the given files exist in grit. This version allows outputs to be empty in which case it will revert to the old dynamic behavior. I'm going to land this with just the worst cases fixed to make landing easier. Then followup with converting the rest of the grit targets and removing the dynamic option.

R=viettrungluu@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@284705 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-22 16:37:26 +00:00
brettw@chromium.org 1a24389d3f Revert 284508 "GN chrome/common build, rename enable_printing."
> GN chrome/common build, rename enable_printing.
> 
> This adds the missing conditions to the chrome/common GN build file (previously
> only the basic files were there). Some refactoring of the GYP file to make this
> possible.
> 
> Renames the enable_printing flag to printing_mode since this is an integer
> tri-state.
> 
> Minor improvements to chrome/renderer
> 
> R=jamesr@chromium.org
> 
> Review URL: https://codereview.chromium.org/400243003

TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@284517 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-21 22:19:59 +00:00
brettw@chromium.org c5dace6bbc GN chrome/common build, rename enable_printing.
This adds the missing conditions to the chrome/common GN build file (previously
only the basic files were there). Some refactoring of the GYP file to make this
possible.

Renames the enable_printing flag to printing_mode since this is an integer
tri-state.

Minor improvements to chrome/renderer

R=jamesr@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@284508 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-21 21:47:22 +00:00
jshin@chromium.org dacef60f15 Roll ICU to icu52
The ICU update does the following among other things:
  - Update EUC-JP (no more JIS X 212 round-trip coverage) per WHATWG
    encoding spec.
  - Add CP866
  - Add far better/more extensive support for plural, format, etc
  - Numerous locale data update
  - Khmer/Lao line/word-breaking support
  - More compact Chinese/Japanese dictionary (now a part of the upstream
    instead of our local patch)
  - Better plural support that we plan to use right away.

- Update icu/BUILD.gn : file list update, new defines, etc.
- Update tests
  a. icu_string_conversions_unittests : drop iscii (nobody uses it) and
     remove JIS X 212 code points from the round-trip test
  b. l10n_util_unittests: Display names for zh-*.
  c. ThaiSnippet's expected result. (due to a Unicode grapheme definition change).
  d. Update Expected results in file_manager_browsertest/test_util.js
     (see http://crbug.com/383930)
- Update SpellcheckerWordIterator
  a. Add U+0027 back to MidNumLet
  b. Add Lao and Khmer scripts to the list of scripts requiring dictionary-based
     word-breaking.
- l10n_util : alias 'tl' to 'fil' (Tagalog to Filipino)
- Update IdentityInternalsSingleTokenWebUITest.verifyGetters (DateTimeFormat-Full
  has 'at' before time, which is not handled by Date.parse()
- update license.py because we don't have a separate Chinese/Japanese
  dictionary any more. It's now a part of ICU

Note to Sheriff :
1. 140 ~ 200 kB size increase is expected for all platforms.
This size increase was singed off by laforge@.
The expected size has to be updated with both reva/revb pointing to the
revision corresponding to this CL.

2.  http://codereview.chromium.org/348913002 has to be applied before running make_expectations.py to update tools/perf_expectations/perf_expectations.json
after this CL is landed.


BUG=132145,277023,136148,360433,364072
TEST=base_unittests:*ICU*, net_unittests:*IDN*, ui_unittests:*Lang*,
     browser_tests (encoding related, Iden*verifyGet*),
     unit_tests:Ext*L10*, unit_tests:*Lang*, component_tests:*Snipp*,
     layout tests (encoding, date/calendar, line breaking, and others),
     build 'base_i18n_nacl', GN build bots.

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277111

R=arv@chromium.org, brettw@chromium.org, fgorski@chromium.org, groby@chromium.org, hirono@chromium.org, tony@chromium.org, toyoshim@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@284167 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-18 18:47:57 +00:00
cjhopman@chromium.org 99dc743552 [Android][gn] Add android resources templates
This adds support for android resources to gn.

Two new templates are introduced:

java_string_grd: This is like gyp's build/java_strings_grd.gypi. It runs
grit and generates Android strings.xml files and then zips them
together.
android_resources: This is the target for android resources. It is
mostly a wrapper around process_resources.py. This is *not part* of
android_library (like it is in gyp). Making these two things separate is
more like facebook's BUCK and google's internal build rules (and gyp's
java.gypi and java_apk.gypi have gotten way too big and complicated).

Changes to the actual build scripts are very minor except for the added
support for andoid_resources to write_build_config.py. Building
resources requires getting all the transitive resource dependencies, and
so this reuses the simple sorted transitive dependency thing from
write_ordered_libraries.py.

TBR=rch@chromium.org
BUG=359249

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@283293 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-16 00:11:03 +00:00
brettw@chromium.org c130bf8c6d Pull buildtools to get GN r282653
This uses the proto file directory for the generated files rather than the directory of the BUILD file. This makes it more natural when you have a BUILD file in a different directory than the proto files.

Fixes a search-and-replace error that accidentally changed the fallback source_prereqs code to use "inputs".

Fix ozone build.

BUG=
R=ajwong@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@282998 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-14 19:25:57 +00:00
ajwong@chromium.org 7584280ab3 Support icu_use_data_file in BUILD.gn for icu.
Ports over more gyp logic for the icu target. Doesn't correctly account
for host toolchains yet, but it's closer.

All hail GN. oRZ

BUG=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@282108 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-09 20:17:25 +00:00
brettw@chromium.org fd681fd930 Remove Angle BUILD.gn file from secondary tree.
A BUILD.gn file was checked into the real location so this secondary-tree file is unused.

R=tfarina@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@282078 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-09 17:31:56 +00:00
brettw@chromium.org 28303e4e48 Rename source_prereqs to inputs in the GN build.
This variable changed name.

R=jamesr@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@282076 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-09 17:29:31 +00:00
brettw@chromium.org d66ff89622 Work on GN build, mostly in //ui
This fills out a number of ui targets and does some changes to the resources to match the GYP build. In particular, we had a number of different ui/resources targets that were depended on independently. The GYP build has only one, so I combined them into a meta "ui/resources" target.

Adds a grit repack template.

TBR=ajwong

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@281087 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-02 20:39:12 +00:00
brettw@chromium.org b45a2ea9a4 Add lots of GN targets:
components/autofill
  components/metrics
  components/policy
  components/variations
  third_party/libphonenumber
  third_party/mt19937ar
  ui/gfx/ipc

These are all requried to compile chrome/browser in some form or another.

Fills out all grit_defines (also required for chrome/browser) and adds associated flags for them.

Add the ability for generated_extensions_api to not generate a bundle.

Remove mt19937ar from .gitignore (it's just checked into the tree)

R=ajwong@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@281057 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-02 17:37:34 +00:00
brettw@chromium.org 66837b27ef Add more GN deps to the build.
These deps are some of those required to compile chrome/browser (so mostly those containing resources and protobufs that have generated headers). chrome/browser still has some dependencies left.

Add third_party libs libaddressinput and dom_distiller_js.

Add components dom_distiller and policy.

Separate the generate_library_loader into a separate .gni file.

Rename components_strings to just strings.

R=ajwong@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@280916 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-01 23:54:17 +00:00
rvargas@chromium.org 7af39608a1 Add gn support for libsrtp
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@280764 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-01 07:03:25 +00:00
bashi@chromium.org 96b0e1e1da OTS roll to r115
Removing build/secondary/third_party/ots/BUILD.gn because ots has the file in its repository.

BUG=324187

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@280760 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-01 07:01:08 +00:00
brettw@chromium.org dc9e7b61d6 First pass on adding a chrome/browser GN target.
This adds a lot of global enable flags for various features used by the browser.

It is not turned on because it does not compile yet. It needs some include directories and generated sources from dependencies that aren't done yet.

It is basically a line-by-line translation of the current chrome_browser.gypi. As such, it looks pretty ugly but I think keeping these in sync will be easiest.

I put in the obvious names of the GN deps. There are surely a bunch that exist in the GN build that aren't here yet but I'm going to save this for later passes.

R=thestig@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@280693 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-30 23:24:31 +00:00
jmadill@chromium.org 80a43a94b2 Roll ANGLE DEPS for M37.
Includes several fixes for WebGL tests, large arrays in shaders,
and regression on older nVidia drivers.

BUG=384420,380353,379799

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@279179 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-23 21:23:14 +00:00
tfarina@chromium.org f0c43ebd89 Remove secondary version of speex BUILD file.
Now that we rolled the DEPS for speex library, we can use the GN BUILD
file directory from src/third_party/speex.

BUG=None
TEST=gn gen out/Debug_gn && ninja -C out/Debug_gn speex
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@278531 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-19 23:48:11 +00:00
cmasone@chromium.org 3080315fcf Move gn secondary_source to the build/ directory
It's a goodness to sequester build configuration in the build/
directory. The gn secondary_source stuff was under tools/gn for
historical reasons, so move it to a more appropriate place.

BUG=None
TEST=do a gn build of base_unittests, run said unittests.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@278355 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-19 13:14:26 +00:00