Ensure low-memory renderers retry failed loads correctly.
[chromium-blink-merge.git] / components / strings / BUILD.gn
blob77f4361791795d18c35a3f28f42e4e855543982c
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
3 # found in the LICENSE file.
5 import("//tools/grit/grit_rule.gni")
7 group("strings") {
8   deps = [
9     ":components_chromium_strings",
10     ":components_google_chrome_strings",
11     ":components_strings",
12   ]
15 # GYP version: components/components_strings.gyp:components_strings
16 #              (generate_components_strings action)
17 grit("components_strings") {
18   source = "../components_strings.grd"
19   outputs = [
20     "grit/components_strings.h",
21     "components_strings_am.pak",
22     "components_strings_ar.pak",
23     "components_strings_bg.pak",
24     "components_strings_bn.pak",
25     "components_strings_ca.pak",
26     "components_strings_cs.pak",
27     "components_strings_da.pak",
28     "components_strings_de.pak",
29     "components_strings_el.pak",
30     "components_strings_en-GB.pak",
31     "components_strings_en-US.pak",
32     "components_strings_es.pak",
33     "components_strings_es-419.pak",
34     "components_strings_et.pak",
35     "components_strings_fa.pak",
36     "components_strings_fake-bidi.pak",
37     "components_strings_fi.pak",
38     "components_strings_fil.pak",
39     "components_strings_fr.pak",
40     "components_strings_gu.pak",
41     "components_strings_he.pak",
42     "components_strings_hi.pak",
43     "components_strings_hr.pak",
44     "components_strings_hu.pak",
45     "components_strings_id.pak",
46     "components_strings_it.pak",
47     "components_strings_ja.pak",
48     "components_strings_kn.pak",
49     "components_strings_ko.pak",
50     "components_strings_lt.pak",
51     "components_strings_lv.pak",
52     "components_strings_ml.pak",
53     "components_strings_mr.pak",
54     "components_strings_ms.pak",
55     "components_strings_nl.pak",
56     "components_strings_nb.pak",
57     "components_strings_pl.pak",
58     "components_strings_pt-BR.pak",
59     "components_strings_pt-PT.pak",
60     "components_strings_ro.pak",
61     "components_strings_ru.pak",
62     "components_strings_sk.pak",
63     "components_strings_sl.pak",
64     "components_strings_sr.pak",
65     "components_strings_sv.pak",
66     "components_strings_sw.pak",
67     "components_strings_ta.pak",
68     "components_strings_te.pak",
69     "components_strings_th.pak",
70     "components_strings_tr.pak",
71     "components_strings_uk.pak",
72     "components_strings_vi.pak",
73     "components_strings_zh-CN.pak",
74     "components_strings_zh-TW.pak",
75   ]
77   if (is_ios) {
78     # iOS uses "pt" for pt-BR" and "es-MX" for "es-419".
79     outputs -= [
80       "components_strings_pt-BR.pak",
81       "components_strings_es-419.pak",
82     ]
83     outputs += [
84       "components_strings_pt.pak",
85       "components_strings_es-MX.pak",
86     ]
87   }
90 # GYP version: components/components_strings.gyp:components_strings
91 #              (generate_components_chromium_strings action)
92 grit("components_chromium_strings") {
93   source = "../components_chromium_strings.grd"
94   outputs = [
95     "grit/components_chromium_strings.h",
96     "components_chromium_strings_am.pak",
97     "components_chromium_strings_ar.pak",
98     "components_chromium_strings_bg.pak",
99     "components_chromium_strings_bn.pak",
100     "components_chromium_strings_ca.pak",
101     "components_chromium_strings_cs.pak",
102     "components_chromium_strings_da.pak",
103     "components_chromium_strings_de.pak",
104     "components_chromium_strings_el.pak",
105     "components_chromium_strings_en-GB.pak",
106     "components_chromium_strings_en-US.pak",
107     "components_chromium_strings_es.pak",
108     "components_chromium_strings_es-419.pak",
109     "components_chromium_strings_et.pak",
110     "components_chromium_strings_fa.pak",
111     "components_chromium_strings_fake-bidi.pak",
112     "components_chromium_strings_fi.pak",
113     "components_chromium_strings_fil.pak",
114     "components_chromium_strings_fr.pak",
115     "components_chromium_strings_gu.pak",
116     "components_chromium_strings_he.pak",
117     "components_chromium_strings_hi.pak",
118     "components_chromium_strings_hr.pak",
119     "components_chromium_strings_hu.pak",
120     "components_chromium_strings_id.pak",
121     "components_chromium_strings_it.pak",
122     "components_chromium_strings_ja.pak",
123     "components_chromium_strings_kn.pak",
124     "components_chromium_strings_ko.pak",
125     "components_chromium_strings_lt.pak",
126     "components_chromium_strings_lv.pak",
127     "components_chromium_strings_ml.pak",
128     "components_chromium_strings_mr.pak",
129     "components_chromium_strings_ms.pak",
130     "components_chromium_strings_nl.pak",
131     "components_chromium_strings_nb.pak",
132     "components_chromium_strings_pl.pak",
133     "components_chromium_strings_pt-BR.pak",
134     "components_chromium_strings_pt-PT.pak",
135     "components_chromium_strings_ro.pak",
136     "components_chromium_strings_ru.pak",
137     "components_chromium_strings_sk.pak",
138     "components_chromium_strings_sl.pak",
139     "components_chromium_strings_sr.pak",
140     "components_chromium_strings_sv.pak",
141     "components_chromium_strings_sw.pak",
142     "components_chromium_strings_ta.pak",
143     "components_chromium_strings_te.pak",
144     "components_chromium_strings_th.pak",
145     "components_chromium_strings_tr.pak",
146     "components_chromium_strings_uk.pak",
147     "components_chromium_strings_vi.pak",
148     "components_chromium_strings_zh-CN.pak",
149     "components_chromium_strings_zh-TW.pak",
150   ]
152   if (is_ios) {
153     # iOS uses "pt" for pt-BR" and "es-MX" for "es-419".
154     outputs -= [
155       "components_chromium_strings_pt-BR.pak",
156       "components_chromium_strings_es-419.pak",
157     ]
158     outputs += [
159       "components_chromium_strings_pt.pak",
160       "components_chromium_strings_es-MX.pak",
161     ]
162   }
165 # GYP version: components/components_strings.gyp:components_strings
166 #              (generate_components_google_chrome_strings action)
167 grit("components_google_chrome_strings") {
168   source = "../components_google_chrome_strings.grd"
169   outputs = [
170     "grit/components_google_chrome_strings.h",
171     "components_google_chrome_strings_am.pak",
172     "components_google_chrome_strings_ar.pak",
173     "components_google_chrome_strings_bg.pak",
174     "components_google_chrome_strings_bn.pak",
175     "components_google_chrome_strings_ca.pak",
176     "components_google_chrome_strings_cs.pak",
177     "components_google_chrome_strings_da.pak",
178     "components_google_chrome_strings_de.pak",
179     "components_google_chrome_strings_el.pak",
180     "components_google_chrome_strings_en-GB.pak",
181     "components_google_chrome_strings_en-US.pak",
182     "components_google_chrome_strings_es.pak",
183     "components_google_chrome_strings_es-419.pak",
184     "components_google_chrome_strings_et.pak",
185     "components_google_chrome_strings_fa.pak",
186     "components_google_chrome_strings_fake-bidi.pak",
187     "components_google_chrome_strings_fi.pak",
188     "components_google_chrome_strings_fil.pak",
189     "components_google_chrome_strings_fr.pak",
190     "components_google_chrome_strings_gu.pak",
191     "components_google_chrome_strings_he.pak",
192     "components_google_chrome_strings_hi.pak",
193     "components_google_chrome_strings_hr.pak",
194     "components_google_chrome_strings_hu.pak",
195     "components_google_chrome_strings_id.pak",
196     "components_google_chrome_strings_it.pak",
197     "components_google_chrome_strings_ja.pak",
198     "components_google_chrome_strings_kn.pak",
199     "components_google_chrome_strings_ko.pak",
200     "components_google_chrome_strings_lt.pak",
201     "components_google_chrome_strings_lv.pak",
202     "components_google_chrome_strings_ml.pak",
203     "components_google_chrome_strings_mr.pak",
204     "components_google_chrome_strings_ms.pak",
205     "components_google_chrome_strings_nl.pak",
206     "components_google_chrome_strings_nb.pak",
207     "components_google_chrome_strings_pl.pak",
208     "components_google_chrome_strings_pt-BR.pak",
209     "components_google_chrome_strings_pt-PT.pak",
210     "components_google_chrome_strings_ro.pak",
211     "components_google_chrome_strings_ru.pak",
212     "components_google_chrome_strings_sk.pak",
213     "components_google_chrome_strings_sl.pak",
214     "components_google_chrome_strings_sr.pak",
215     "components_google_chrome_strings_sv.pak",
216     "components_google_chrome_strings_sw.pak",
217     "components_google_chrome_strings_ta.pak",
218     "components_google_chrome_strings_te.pak",
219     "components_google_chrome_strings_th.pak",
220     "components_google_chrome_strings_tr.pak",
221     "components_google_chrome_strings_uk.pak",
222     "components_google_chrome_strings_vi.pak",
223     "components_google_chrome_strings_zh-CN.pak",
224     "components_google_chrome_strings_zh-TW.pak",
225   ]
227   if (is_ios) {
228     # iOS uses "pt" for pt-BR" and "es-MX" for "es-419".
229     outputs -= [
230       "components_google_chrome_strings_pt-BR.pak",
231       "components_google_chrome_strings_es-419.pak",
232     ]
233     outputs += [
234       "components_google_chrome_strings_pt.pak",
235       "components_google_chrome_strings_es-MX.pak",
236     ]
237   }