Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: third_party/libaddressinput/BUILD.gn

Issue 936193004: add gn_all, gyp_all targets to build files, remove GN's //:root (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temporarily disable gn_all and gyp_all on Android Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//testing/test.gni") 5 import("//testing/test.gni")
6 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
7 7
8 libaddressinput_util_files = [ 8 libaddressinput_util_files = [
9 "src/cpp/src/address_data.cc", 9 "src/cpp/src/address_data.cc",
10 "src/cpp/src/address_field.cc", 10 "src/cpp/src/address_field.cc",
11 "src/cpp/src/address_field_util.cc", 11 "src/cpp/src/address_field_util.cc",
12 "src/cpp/src/address_formatter.cc", 12 "src/cpp/src/address_formatter.cc",
13 "src/cpp/src/address_metadata.cc", 13 "src/cpp/src/address_metadata.cc",
14 "src/cpp/src/address_ui.cc", 14 "src/cpp/src/address_ui.cc",
15 "src/cpp/src/format_element.cc", 15 "src/cpp/src/format_element.cc",
16 "src/cpp/src/language.cc", 16 "src/cpp/src/language.cc",
17 "src/cpp/src/localization.cc", 17 "src/cpp/src/localization.cc",
18 "src/cpp/src/lookup_key.cc", 18 "src/cpp/src/lookup_key.cc",
19 "src/cpp/src/region_data_constants.cc", 19 "src/cpp/src/region_data_constants.cc",
20 "src/cpp/src/rule.cc", 20 "src/cpp/src/rule.cc",
21 "src/cpp/src/util/cctype_tolower_equal.cc", 21 "src/cpp/src/util/cctype_tolower_equal.cc",
22 "src/cpp/src/util/json.cc", 22 "src/cpp/src/util/json.cc",
23 "src/cpp/src/util/string_split.cc", 23 "src/cpp/src/util/string_split.cc",
24 "src/cpp/src/util/string_util.cc", 24 "src/cpp/src/util/string_util.cc",
25 ] 25 ]
26 26
27 config("no-newline-eof-warning") {
28 if (is_clang) {
29 cflags = [ "-Wno-newline-eof" ]
30 }
31 }
32
27 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_s trings 33 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_s trings
28 grit("strings") { 34 grit("strings") {
29 source = "//chrome/app/address_input_strings.grd" 35 source = "//chrome/app/address_input_strings.grd"
30 outputs = [ 36 outputs = [
31 "messages.h", 37 "messages.h",
32 "en_messages.cc", 38 "en_messages.cc",
33 "address_input_strings_am.pak", 39 "address_input_strings_am.pak",
34 "address_input_strings_ar.pak", 40 "address_input_strings_ar.pak",
35 "address_input_strings_bg.pak", 41 "address_input_strings_bg.pak",
36 "address_input_strings_bn.pak", 42 "address_input_strings_bn.pak",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 "address_input_strings_sw.pak", 84 "address_input_strings_sw.pak",
79 "address_input_strings_ta.pak", 85 "address_input_strings_ta.pak",
80 "address_input_strings_te.pak", 86 "address_input_strings_te.pak",
81 "address_input_strings_th.pak", 87 "address_input_strings_th.pak",
82 "address_input_strings_tr.pak", 88 "address_input_strings_tr.pak",
83 "address_input_strings_uk.pak", 89 "address_input_strings_uk.pak",
84 "address_input_strings_vi.pak", 90 "address_input_strings_vi.pak",
85 "address_input_strings_zh-CN.pak", 91 "address_input_strings_zh-CN.pak",
86 "address_input_strings_zh-TW.pak", 92 "address_input_strings_zh-TW.pak",
87 ] 93 ]
94
95 configs = [ ":no-newline-eof-warning" ]
88 } 96 }
89 97
90 config("libaddressinput_config") { 98 config("libaddressinput_config") {
91 defines = [ 99 defines = [
92 "I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1", 100 "I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1",
93 "I18N_ADDRESS_VALIDATION_DATA_URL=\"https://i18napis.appspot.com/ssl-aggrega te-address/\"", 101 "I18N_ADDRESS_VALIDATION_DATA_URL=\"https://i18napis.appspot.com/ssl-aggrega te-address/\"",
94 ] 102 ]
95 include_dirs = [ 103 include_dirs = [
96 "src/cpp/include", 104 "src/cpp/include",
97 "chromium/override", 105 "chromium/override",
98 ] 106 ]
99 } 107 }
100 108
101 # This target provides basic functionality which is cooked into the build. 109 # This target provides basic functionality which is cooked into the build.
102 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_u til 110 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_u til
103 static_library("util") { 111 static_library("util") {
104 sources = libaddressinput_util_files 112 sources = libaddressinput_util_files
105 sources += [ 113 sources += [
106 "chromium/addressinput_util.cc", 114 "chromium/addressinput_util.cc",
107 "chromium/json.cc", 115 "chromium/json.cc",
108 ] 116 ]
109 sources -= [ "src/cpp/src/util/json.cc" ] 117 sources -= [ "src/cpp/src/util/json.cc" ]
110 118
111 configs -= [ "//build/config/compiler:chromium_code" ] 119 configs -= [ "//build/config/compiler:chromium_code" ]
112 configs += [ "//build/config/compiler:no_chromium_code" ] 120 configs += [
121 ":no-newline-eof-warning",
122 "//build/config/compiler:no_chromium_code",
123 ]
113 124
114 public_configs = [ ":libaddressinput_config" ] 125 public_configs = [ ":libaddressinput_config" ]
115 126
116 include_dirs = [ "$root_gen_dir/third_party/libaddressinput" ] 127 include_dirs = [ "$root_gen_dir/third_party/libaddressinput" ]
117 128
118 deps = [ 129 deps = [
119 ":strings", 130 ":strings",
120 "//base", 131 "//base",
121 "//base:i18n", 132 "//base:i18n",
122 "//third_party/icu", 133 "//third_party/icu",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 deps = [ 198 deps = [
188 ":libaddressinput", 199 ":libaddressinput",
189 ":strings", 200 ":strings",
190 "//base:prefs", 201 "//base:prefs",
191 "//base/test:run_all_unittests", 202 "//base/test:run_all_unittests",
192 "//net:test_support", 203 "//net:test_support",
193 "//testing/gtest", 204 "//testing/gtest",
194 ] 205 ]
195 } 206 }
196 } 207 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698