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

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

Issue 944573003: Revert of 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: 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
« no previous file with comments | « components/pdf/renderer/BUILD.gn ('k') | third_party/libexif/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
33 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_s trings 27 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_s trings
34 grit("strings") { 28 grit("strings") {
35 source = "//chrome/app/address_input_strings.grd" 29 source = "//chrome/app/address_input_strings.grd"
36 outputs = [ 30 outputs = [
37 "messages.h", 31 "messages.h",
38 "en_messages.cc", 32 "en_messages.cc",
39 "address_input_strings_am.pak", 33 "address_input_strings_am.pak",
40 "address_input_strings_ar.pak", 34 "address_input_strings_ar.pak",
41 "address_input_strings_bg.pak", 35 "address_input_strings_bg.pak",
42 "address_input_strings_bn.pak", 36 "address_input_strings_bn.pak",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 "address_input_strings_sw.pak", 78 "address_input_strings_sw.pak",
85 "address_input_strings_ta.pak", 79 "address_input_strings_ta.pak",
86 "address_input_strings_te.pak", 80 "address_input_strings_te.pak",
87 "address_input_strings_th.pak", 81 "address_input_strings_th.pak",
88 "address_input_strings_tr.pak", 82 "address_input_strings_tr.pak",
89 "address_input_strings_uk.pak", 83 "address_input_strings_uk.pak",
90 "address_input_strings_vi.pak", 84 "address_input_strings_vi.pak",
91 "address_input_strings_zh-CN.pak", 85 "address_input_strings_zh-CN.pak",
92 "address_input_strings_zh-TW.pak", 86 "address_input_strings_zh-TW.pak",
93 ] 87 ]
94
95 configs = [ ":no-newline-eof-warning" ]
96 } 88 }
97 89
98 config("libaddressinput_config") { 90 config("libaddressinput_config") {
99 defines = [ 91 defines = [
100 "I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1", 92 "I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1",
101 "I18N_ADDRESS_VALIDATION_DATA_URL=\"https://i18napis.appspot.com/ssl-aggrega te-address/\"", 93 "I18N_ADDRESS_VALIDATION_DATA_URL=\"https://i18napis.appspot.com/ssl-aggrega te-address/\"",
102 ] 94 ]
103 include_dirs = [ 95 include_dirs = [
104 "src/cpp/include", 96 "src/cpp/include",
105 "chromium/override", 97 "chromium/override",
106 ] 98 ]
107 } 99 }
108 100
109 # This target provides basic functionality which is cooked into the build. 101 # This target provides basic functionality which is cooked into the build.
110 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_u til 102 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_u til
111 static_library("util") { 103 static_library("util") {
112 sources = libaddressinput_util_files 104 sources = libaddressinput_util_files
113 sources += [ 105 sources += [
114 "chromium/addressinput_util.cc", 106 "chromium/addressinput_util.cc",
115 "chromium/json.cc", 107 "chromium/json.cc",
116 ] 108 ]
117 sources -= [ "src/cpp/src/util/json.cc" ] 109 sources -= [ "src/cpp/src/util/json.cc" ]
118 110
119 configs -= [ "//build/config/compiler:chromium_code" ] 111 configs -= [ "//build/config/compiler:chromium_code" ]
120 configs += [ 112 configs += [ "//build/config/compiler:no_chromium_code" ]
121 ":no-newline-eof-warning",
122 "//build/config/compiler:no_chromium_code",
123 ]
124 113
125 public_configs = [ ":libaddressinput_config" ] 114 public_configs = [ ":libaddressinput_config" ]
126 115
127 include_dirs = [ "$root_gen_dir/third_party/libaddressinput" ] 116 include_dirs = [ "$root_gen_dir/third_party/libaddressinput" ]
128 117
129 deps = [ 118 deps = [
130 ":strings", 119 ":strings",
131 "//base", 120 "//base",
132 "//base:i18n", 121 "//base:i18n",
133 "//third_party/icu", 122 "//third_party/icu",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 deps = [ 187 deps = [
199 ":libaddressinput", 188 ":libaddressinput",
200 ":strings", 189 ":strings",
201 "//base:prefs", 190 "//base:prefs",
202 "//base/test:run_all_unittests", 191 "//base/test:run_all_unittests",
203 "//net:test_support", 192 "//net:test_support",
204 "//testing/gtest", 193 "//testing/gtest",
205 ] 194 ]
206 } 195 }
207 } 196 }
OLDNEW
« no previous file with comments | « components/pdf/renderer/BUILD.gn ('k') | third_party/libexif/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698