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

Side by Side Diff: ios/chrome/app/strings/BUILD.gn

Issue 2003433003: [GN] Use build/config/locales.gni to simplify grit invocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@locale
Patch Set: Fix "analyse" by adding a new variable locales_with_fake_bidi Created 4 years, 7 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/strings/BUILD.gn ('k') | third_party/libaddressinput/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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//build/config/chrome_build.gni") 5 import("//build/config/locales.gni")
6 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
7 7
8 group("strings") { 8 group("strings") {
9 public_deps = [ 9 public_deps = [
10 ":ios_chromium_strings", 10 ":ios_chromium_strings",
11 ":ios_google_chrome_strings", 11 ":ios_google_chrome_strings",
12 ":ios_strings", 12 ":ios_strings",
13 ] 13 ]
14 } 14 }
15 15
16 grit("ios_strings") { 16 grit("ios_strings") {
17 source = "ios_strings.grd" 17 source = "ios_strings.grd"
18 output_dir = "$root_gen_dir/ios/chrome" 18 output_dir = "$root_gen_dir/ios/chrome"
19 use_qualified_include = true 19 use_qualified_include = true
20 outputs = [ 20 outputs = [
21 "grit/ios_strings.h", 21 "grit/ios_strings.h",
22 "ios_strings_am.pak",
23 "ios_strings_ar.pak",
24 "ios_strings_bg.pak",
25 "ios_strings_bn.pak",
26 "ios_strings_ca.pak",
27 "ios_strings_cs.pak",
28 "ios_strings_da.pak",
29 "ios_strings_de.pak",
30 "ios_strings_el.pak",
31 "ios_strings_en-GB.pak",
32 "ios_strings_en-US.pak",
33 "ios_strings_es.pak",
34 "ios_strings_es-MX.pak",
35 "ios_strings_et.pak",
36 "ios_strings_fa.pak",
37 "ios_strings_fake-bidi.pak",
38 "ios_strings_fi.pak",
39 "ios_strings_fil.pak",
40 "ios_strings_fr.pak",
41 "ios_strings_gu.pak",
42 "ios_strings_he.pak",
43 "ios_strings_hi.pak",
44 "ios_strings_hr.pak",
45 "ios_strings_hu.pak",
46 "ios_strings_id.pak",
47 "ios_strings_it.pak",
48 "ios_strings_ja.pak",
49 "ios_strings_kn.pak",
50 "ios_strings_ko.pak",
51 "ios_strings_lt.pak",
52 "ios_strings_lv.pak",
53 "ios_strings_ml.pak",
54 "ios_strings_mr.pak",
55 "ios_strings_ms.pak",
56 "ios_strings_nl.pak",
57 "ios_strings_nb.pak",
58 "ios_strings_pl.pak",
59 "ios_strings_pt.pak",
60 "ios_strings_pt-PT.pak",
61 "ios_strings_ro.pak",
62 "ios_strings_ru.pak",
63 "ios_strings_sk.pak",
64 "ios_strings_sl.pak",
65 "ios_strings_sr.pak",
66 "ios_strings_sv.pak",
67 "ios_strings_sw.pak",
68 "ios_strings_ta.pak",
69 "ios_strings_te.pak",
70 "ios_strings_th.pak",
71 "ios_strings_tr.pak",
72 "ios_strings_uk.pak",
73 "ios_strings_vi.pak",
74 "ios_strings_zh-CN.pak",
75 "ios_strings_zh-TW.pak",
76 ] 22 ]
23 foreach(locale, locales_with_fake_bidi) {
24 outputs += [ "ios_strings_$locale.pak" ]
25 }
77 } 26 }
78 27
79 grit("ios_chromium_strings") { 28 grit("ios_chromium_strings") {
80 source = "ios_chromium_strings.grd" 29 source = "ios_chromium_strings.grd"
81 output_dir = "$root_gen_dir/ios/chrome" 30 output_dir = "$root_gen_dir/ios/chrome"
82 use_qualified_include = true 31 use_qualified_include = true
83 outputs = [ 32 outputs = [
84 "grit/ios_chromium_strings.h", 33 "grit/ios_chromium_strings.h",
85 "ios_chromium_strings_am.pak",
86 "ios_chromium_strings_ar.pak",
87 "ios_chromium_strings_bg.pak",
88 "ios_chromium_strings_bn.pak",
89 "ios_chromium_strings_ca.pak",
90 "ios_chromium_strings_cs.pak",
91 "ios_chromium_strings_da.pak",
92 "ios_chromium_strings_de.pak",
93 "ios_chromium_strings_el.pak",
94 "ios_chromium_strings_en-GB.pak",
95 "ios_chromium_strings_en-US.pak",
96 "ios_chromium_strings_es.pak",
97 "ios_chromium_strings_es-MX.pak",
98 "ios_chromium_strings_et.pak",
99 "ios_chromium_strings_fa.pak",
100 "ios_chromium_strings_fake-bidi.pak",
101 "ios_chromium_strings_fi.pak",
102 "ios_chromium_strings_fil.pak",
103 "ios_chromium_strings_fr.pak",
104 "ios_chromium_strings_gu.pak",
105 "ios_chromium_strings_he.pak",
106 "ios_chromium_strings_hi.pak",
107 "ios_chromium_strings_hr.pak",
108 "ios_chromium_strings_hu.pak",
109 "ios_chromium_strings_id.pak",
110 "ios_chromium_strings_it.pak",
111 "ios_chromium_strings_ja.pak",
112 "ios_chromium_strings_kn.pak",
113 "ios_chromium_strings_ko.pak",
114 "ios_chromium_strings_lt.pak",
115 "ios_chromium_strings_lv.pak",
116 "ios_chromium_strings_ml.pak",
117 "ios_chromium_strings_mr.pak",
118 "ios_chromium_strings_ms.pak",
119 "ios_chromium_strings_nl.pak",
120 "ios_chromium_strings_nb.pak",
121 "ios_chromium_strings_pl.pak",
122 "ios_chromium_strings_pt.pak",
123 "ios_chromium_strings_pt-PT.pak",
124 "ios_chromium_strings_ro.pak",
125 "ios_chromium_strings_ru.pak",
126 "ios_chromium_strings_sk.pak",
127 "ios_chromium_strings_sl.pak",
128 "ios_chromium_strings_sr.pak",
129 "ios_chromium_strings_sv.pak",
130 "ios_chromium_strings_sw.pak",
131 "ios_chromium_strings_ta.pak",
132 "ios_chromium_strings_te.pak",
133 "ios_chromium_strings_th.pak",
134 "ios_chromium_strings_tr.pak",
135 "ios_chromium_strings_uk.pak",
136 "ios_chromium_strings_vi.pak",
137 "ios_chromium_strings_zh-CN.pak",
138 "ios_chromium_strings_zh-TW.pak",
139 ] 34 ]
35 foreach(locale, locales_with_fake_bidi) {
36 outputs += [ "ios_chromium_strings_$locale.pak" ]
37 }
140 } 38 }
141 39
142 grit("ios_google_chrome_strings") { 40 grit("ios_google_chrome_strings") {
143 source = "ios_google_chrome_strings.grd" 41 source = "ios_google_chrome_strings.grd"
144 output_dir = "$root_gen_dir/ios/chrome" 42 output_dir = "$root_gen_dir/ios/chrome"
145 use_qualified_include = true 43 use_qualified_include = true
146 outputs = [ 44 outputs = [
147 "grit/ios_google_chrome_strings.h", 45 "grit/ios_google_chrome_strings.h",
148 "ios_google_chrome_strings_am.pak",
149 "ios_google_chrome_strings_ar.pak",
150 "ios_google_chrome_strings_bg.pak",
151 "ios_google_chrome_strings_bn.pak",
152 "ios_google_chrome_strings_ca.pak",
153 "ios_google_chrome_strings_cs.pak",
154 "ios_google_chrome_strings_da.pak",
155 "ios_google_chrome_strings_de.pak",
156 "ios_google_chrome_strings_el.pak",
157 "ios_google_chrome_strings_en-GB.pak",
158 "ios_google_chrome_strings_en-US.pak",
159 "ios_google_chrome_strings_es.pak",
160 "ios_google_chrome_strings_es-MX.pak",
161 "ios_google_chrome_strings_et.pak",
162 "ios_google_chrome_strings_fa.pak",
163 "ios_google_chrome_strings_fake-bidi.pak",
164 "ios_google_chrome_strings_fi.pak",
165 "ios_google_chrome_strings_fil.pak",
166 "ios_google_chrome_strings_fr.pak",
167 "ios_google_chrome_strings_gu.pak",
168 "ios_google_chrome_strings_he.pak",
169 "ios_google_chrome_strings_hi.pak",
170 "ios_google_chrome_strings_hr.pak",
171 "ios_google_chrome_strings_hu.pak",
172 "ios_google_chrome_strings_id.pak",
173 "ios_google_chrome_strings_it.pak",
174 "ios_google_chrome_strings_ja.pak",
175 "ios_google_chrome_strings_kn.pak",
176 "ios_google_chrome_strings_ko.pak",
177 "ios_google_chrome_strings_lt.pak",
178 "ios_google_chrome_strings_lv.pak",
179 "ios_google_chrome_strings_ml.pak",
180 "ios_google_chrome_strings_mr.pak",
181 "ios_google_chrome_strings_ms.pak",
182 "ios_google_chrome_strings_nl.pak",
183 "ios_google_chrome_strings_nb.pak",
184 "ios_google_chrome_strings_pl.pak",
185 "ios_google_chrome_strings_pt.pak",
186 "ios_google_chrome_strings_pt-PT.pak",
187 "ios_google_chrome_strings_ro.pak",
188 "ios_google_chrome_strings_ru.pak",
189 "ios_google_chrome_strings_sk.pak",
190 "ios_google_chrome_strings_sl.pak",
191 "ios_google_chrome_strings_sr.pak",
192 "ios_google_chrome_strings_sv.pak",
193 "ios_google_chrome_strings_sw.pak",
194 "ios_google_chrome_strings_ta.pak",
195 "ios_google_chrome_strings_te.pak",
196 "ios_google_chrome_strings_th.pak",
197 "ios_google_chrome_strings_tr.pak",
198 "ios_google_chrome_strings_uk.pak",
199 "ios_google_chrome_strings_vi.pak",
200 "ios_google_chrome_strings_zh-CN.pak",
201 "ios_google_chrome_strings_zh-TW.pak",
202 ] 46 ]
47 foreach(locale, locales_with_fake_bidi) {
48 outputs += [ "ios_google_chrome_strings_$locale.pak" ]
49 }
203 } 50 }
OLDNEW
« no previous file with comments | « components/strings/BUILD.gn ('k') | third_party/libaddressinput/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698