OLD | NEW |
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("//build/config/locales.gni") |
6 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
7 | 8 |
8 libaddressinput_util_files = [ | 9 libaddressinput_util_files = [ |
9 "src/cpp/src/address_data.cc", | 10 "src/cpp/src/address_data.cc", |
10 "src/cpp/src/address_field.cc", | 11 "src/cpp/src/address_field.cc", |
11 "src/cpp/src/address_field_util.cc", | 12 "src/cpp/src/address_field_util.cc", |
12 "src/cpp/src/address_formatter.cc", | 13 "src/cpp/src/address_formatter.cc", |
13 "src/cpp/src/address_metadata.cc", | 14 "src/cpp/src/address_metadata.cc", |
14 "src/cpp/src/address_ui.cc", | 15 "src/cpp/src/address_ui.cc", |
15 "src/cpp/src/format_element.cc", | 16 "src/cpp/src/format_element.cc", |
(...skipping 13 matching lines...) Expand all Loading... |
29 cflags = [ "-Wno-newline-eof" ] | 30 cflags = [ "-Wno-newline-eof" ] |
30 } | 31 } |
31 } | 32 } |
32 | 33 |
33 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_s
trings | 34 # GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput_s
trings |
34 grit("strings") { | 35 grit("strings") { |
35 source = "//chrome/app/address_input_strings.grd" | 36 source = "//chrome/app/address_input_strings.grd" |
36 outputs = [ | 37 outputs = [ |
37 "messages.h", | 38 "messages.h", |
38 "en_messages.cc", | 39 "en_messages.cc", |
39 "address_input_strings_am.pak", | |
40 "address_input_strings_ar.pak", | |
41 "address_input_strings_bg.pak", | |
42 "address_input_strings_bn.pak", | |
43 "address_input_strings_ca.pak", | |
44 "address_input_strings_cs.pak", | |
45 "address_input_strings_da.pak", | |
46 "address_input_strings_de.pak", | |
47 "address_input_strings_el.pak", | |
48 "address_input_strings_en-GB.pak", | |
49 "address_input_strings_en-US.pak", | |
50 "address_input_strings_es.pak", | |
51 "address_input_strings_es-419.pak", | |
52 "address_input_strings_et.pak", | |
53 "address_input_strings_fa.pak", | |
54 "address_input_strings_fake-bidi.pak", | |
55 "address_input_strings_fi.pak", | |
56 "address_input_strings_fil.pak", | |
57 "address_input_strings_fr.pak", | |
58 "address_input_strings_gu.pak", | |
59 "address_input_strings_he.pak", | |
60 "address_input_strings_hi.pak", | |
61 "address_input_strings_hr.pak", | |
62 "address_input_strings_hu.pak", | |
63 "address_input_strings_id.pak", | |
64 "address_input_strings_it.pak", | |
65 "address_input_strings_ja.pak", | |
66 "address_input_strings_kn.pak", | |
67 "address_input_strings_ko.pak", | |
68 "address_input_strings_lt.pak", | |
69 "address_input_strings_lv.pak", | |
70 "address_input_strings_ml.pak", | |
71 "address_input_strings_mr.pak", | |
72 "address_input_strings_ms.pak", | |
73 "address_input_strings_nl.pak", | |
74 "address_input_strings_nb.pak", | |
75 "address_input_strings_pl.pak", | |
76 "address_input_strings_pt-BR.pak", | |
77 "address_input_strings_pt-PT.pak", | |
78 "address_input_strings_ro.pak", | |
79 "address_input_strings_ru.pak", | |
80 "address_input_strings_sk.pak", | |
81 "address_input_strings_sl.pak", | |
82 "address_input_strings_sr.pak", | |
83 "address_input_strings_sv.pak", | |
84 "address_input_strings_sw.pak", | |
85 "address_input_strings_ta.pak", | |
86 "address_input_strings_te.pak", | |
87 "address_input_strings_th.pak", | |
88 "address_input_strings_tr.pak", | |
89 "address_input_strings_uk.pak", | |
90 "address_input_strings_vi.pak", | |
91 "address_input_strings_zh-CN.pak", | |
92 "address_input_strings_zh-TW.pak", | |
93 ] | 40 ] |
94 | 41 foreach(locale, locales_with_fake_bidi) { |
95 if (is_ios) { | 42 outputs += [ "address_input_strings_$locale.pak" ] |
96 # iOS uses "pt" for pt-BR" and "es-MX" for "es-419". | |
97 outputs -= [ | |
98 "address_input_strings_pt-BR.pak", | |
99 "address_input_strings_es-419.pak", | |
100 ] | |
101 outputs += [ | |
102 "address_input_strings_pt.pak", | |
103 "address_input_strings_es-MX.pak", | |
104 ] | |
105 } | 43 } |
106 | 44 |
107 configs = [ ":no-newline-eof-warning" ] | 45 configs = [ ":no-newline-eof-warning" ] |
108 } | 46 } |
109 | 47 |
110 config("libaddressinput_config") { | 48 config("libaddressinput_config") { |
111 defines = [ | 49 defines = [ |
112 "I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1", | 50 "I18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1", |
113 "I18N_ADDRESS_VALIDATION_DATA_URL=\"https://i18napis.appspot.com/ssl-aggrega
te-address/\"", | 51 "I18N_ADDRESS_VALIDATION_DATA_URL=\"https://i18napis.appspot.com/ssl-aggrega
te-address/\"", |
114 ] | 52 ] |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 deps = [ | 156 deps = [ |
219 ":libaddressinput", | 157 ":libaddressinput", |
220 ":strings", | 158 ":strings", |
221 "//base/test:run_all_unittests", | 159 "//base/test:run_all_unittests", |
222 "//components/prefs", | 160 "//components/prefs", |
223 "//net:test_support", | 161 "//net:test_support", |
224 "//testing/gtest", | 162 "//testing/gtest", |
225 ] | 163 ] |
226 } | 164 } |
227 } | 165 } |
OLD | NEW |