summaryrefslogtreecommitdiffstats
path: root/third_party/libaddressinput
diff options
context:
space:
mode:
authordpranke <dpranke@chromium.org>2015-02-23 22:52:39 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-24 06:53:29 +0000
commitff30e3de333305ccdaa103aa7f9e46765da83e99 (patch)
treeb7b1013ae34ca464347636085a3fa3abb45db2d9 /third_party/libaddressinput
parentf428c79fe88b2458ea659c889227a40383e65e23 (diff)
downloadchromium_src-ff30e3de333305ccdaa103aa7f9e46765da83e99.zip
chromium_src-ff30e3de333305ccdaa103aa7f9e46765da83e99.tar.gz
chromium_src-ff30e3de333305ccdaa103aa7f9e46765da83e99.tar.bz2
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-Commit-Position: refs/heads/master@{#317760}
Diffstat (limited to 'third_party/libaddressinput')
-rw-r--r--third_party/libaddressinput/BUILD.gn13
1 files changed, 12 insertions, 1 deletions
diff --git a/third_party/libaddressinput/BUILD.gn b/third_party/libaddressinput/BUILD.gn
index 0c92b5b..1307c71 100644
--- a/third_party/libaddressinput/BUILD.gn
+++ b/third_party/libaddressinput/BUILD.gn
@@ -24,6 +24,12 @@ libaddressinput_util_files = [
"src/cpp/src/util/string_util.cc",
]
+config("no-newline-eof-warning") {
+ if (is_clang) {
+ cflags = [ "-Wno-newline-eof" ]
+ }
+}
+
# GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_strings
grit("strings") {
source = "//chrome/app/address_input_strings.grd"
@@ -85,6 +91,8 @@ grit("strings") {
"address_input_strings_zh-CN.pak",
"address_input_strings_zh-TW.pak",
]
+
+ configs = [ ":no-newline-eof-warning" ]
}
config("libaddressinput_config") {
@@ -109,7 +117,10 @@ static_library("util") {
sources -= [ "src/cpp/src/util/json.cc" ]
configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [ "//build/config/compiler:no_chromium_code" ]
+ configs += [
+ ":no-newline-eof-warning",
+ "//build/config/compiler:no_chromium_code",
+ ]
public_configs = [ ":libaddressinput_config" ]