summaryrefslogtreecommitdiffstats
path: root/third_party/libaddressinput/BUILD.gn
diff options
context:
space:
mode:
authordpranke <dpranke@chromium.org>2015-02-24 13:42:18 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-24 21:43:06 +0000
commite2ef382dd208417056acbd579620a428fa1b7af4 (patch)
tree70823f07fbe8a02bae915cec09aa5d2a3ab8fdc9 /third_party/libaddressinput/BUILD.gn
parent70857a1fbe037a8b3666af95ac843cea1585b024 (diff)
downloadchromium_src-e2ef382dd208417056acbd579620a428fa1b7af4.zip
chromium_src-e2ef382dd208417056acbd579620a428fa1b7af4.tar.gz
chromium_src-e2ef382dd208417056acbd579620a428fa1b7af4.tar.bz2
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-Commit-Position: refs/heads/master@{#317893}
Diffstat (limited to 'third_party/libaddressinput/BUILD.gn')
-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" ]