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

Side by Side Diff: ui/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 | « third_party/libaddressinput/BUILD.gn ('k') | no next file » | 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("//build/config/locales.gni")
5 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
6 7
7 # Meta target that includes both ui_strings and app_locale_settings. Most 8 # Meta target that includes both ui_strings and app_locale_settings. Most
8 # targets want both. You can depend on the individually if you need to. 9 # targets want both. You can depend on the individually if you need to.
9 group("strings") { 10 group("strings") {
10 public_deps = [ 11 public_deps = [
11 ":app_locale_settings", 12 ":app_locale_settings",
12 ":ui_strings", 13 ":ui_strings",
13 ] 14 ]
14 } 15 }
15 16
16 grit("ui_strings") { 17 grit("ui_strings") {
17 source = "ui_strings.grd" 18 source = "ui_strings.grd"
18 use_qualified_include = true 19 use_qualified_include = true
19 outputs = [ 20 outputs = [
20 "grit/ui_strings.h", 21 "grit/ui_strings.h",
21 "ui_strings_am.pak",
22 "ui_strings_ar.pak",
23 "ui_strings_bg.pak",
24 "ui_strings_bn.pak",
25 "ui_strings_ca.pak",
26 "ui_strings_cs.pak",
27 "ui_strings_da.pak",
28 "ui_strings_de.pak",
29 "ui_strings_el.pak",
30 "ui_strings_en-GB.pak",
31 "ui_strings_en-US.pak",
32 "ui_strings_es.pak",
33 "ui_strings_es-419.pak",
34 "ui_strings_et.pak",
35 "ui_strings_fa.pak",
36 "ui_strings_fake-bidi.pak",
37 "ui_strings_fi.pak",
38 "ui_strings_fil.pak",
39 "ui_strings_fr.pak",
40 "ui_strings_gu.pak",
41 "ui_strings_he.pak",
42 "ui_strings_hi.pak",
43 "ui_strings_hr.pak",
44 "ui_strings_hu.pak",
45 "ui_strings_id.pak",
46 "ui_strings_it.pak",
47 "ui_strings_ja.pak",
48 "ui_strings_kn.pak",
49 "ui_strings_ko.pak",
50 "ui_strings_lt.pak",
51 "ui_strings_lv.pak",
52 "ui_strings_ml.pak",
53 "ui_strings_mr.pak",
54 "ui_strings_ms.pak",
55 "ui_strings_nl.pak",
56 "ui_strings_nb.pak",
57 "ui_strings_pl.pak",
58 "ui_strings_pt-BR.pak",
59 "ui_strings_pt-PT.pak",
60 "ui_strings_ro.pak",
61 "ui_strings_ru.pak",
62 "ui_strings_sk.pak",
63 "ui_strings_sl.pak",
64 "ui_strings_sr.pak",
65 "ui_strings_sv.pak",
66 "ui_strings_sw.pak",
67 "ui_strings_ta.pak",
68 "ui_strings_te.pak",
69 "ui_strings_th.pak",
70 "ui_strings_tr.pak",
71 "ui_strings_uk.pak",
72 "ui_strings_vi.pak",
73 "ui_strings_zh-CN.pak",
74 "ui_strings_zh-TW.pak",
75 ] 22 ]
76 23 foreach(locale, locales_with_fake_bidi) {
77 if (is_ios) { 24 outputs += [ "ui_strings_$locale.pak" ]
78 # iOS uses "pt" for pt-BR" and "es-MX" for "es-419".
79 outputs -= [
80 "ui_strings_pt-BR.pak",
81 "ui_strings_es-419.pak",
82 ]
83 outputs += [
84 "ui_strings_pt.pak",
85 "ui_strings_es-MX.pak",
86 ]
87 } 25 }
88 } 26 }
89 27
90 grit("app_locale_settings") { 28 grit("app_locale_settings") {
91 source = "app_locale_settings.grd" 29 source = "app_locale_settings.grd"
92 use_qualified_include = true 30 use_qualified_include = true
93 outputs = [ 31 outputs = [
94 "grit/app_locale_settings.h", 32 "grit/app_locale_settings.h",
95 "app_locale_settings_am.pak",
96 "app_locale_settings_ar.pak",
97 "app_locale_settings_bg.pak",
98 "app_locale_settings_bn.pak",
99 "app_locale_settings_ca.pak",
100 "app_locale_settings_cs.pak",
101 "app_locale_settings_da.pak",
102 "app_locale_settings_de.pak",
103 "app_locale_settings_el.pak",
104 "app_locale_settings_en-GB.pak",
105 "app_locale_settings_en-US.pak",
106 "app_locale_settings_es.pak",
107 "app_locale_settings_es-419.pak",
108 "app_locale_settings_et.pak",
109 "app_locale_settings_fa.pak",
110 "app_locale_settings_fake-bidi.pak",
111 "app_locale_settings_fi.pak",
112 "app_locale_settings_fil.pak",
113 "app_locale_settings_fr.pak",
114 "app_locale_settings_gu.pak",
115 "app_locale_settings_he.pak",
116 "app_locale_settings_hi.pak",
117 "app_locale_settings_hr.pak",
118 "app_locale_settings_hu.pak",
119 "app_locale_settings_id.pak",
120 "app_locale_settings_it.pak",
121 "app_locale_settings_ja.pak",
122 "app_locale_settings_kn.pak",
123 "app_locale_settings_ko.pak",
124 "app_locale_settings_lt.pak",
125 "app_locale_settings_lv.pak",
126 "app_locale_settings_ml.pak",
127 "app_locale_settings_mr.pak",
128 "app_locale_settings_ms.pak",
129 "app_locale_settings_nl.pak",
130 "app_locale_settings_nb.pak",
131 "app_locale_settings_pl.pak",
132 "app_locale_settings_pt-BR.pak",
133 "app_locale_settings_pt-PT.pak",
134 "app_locale_settings_ro.pak",
135 "app_locale_settings_ru.pak",
136 "app_locale_settings_sk.pak",
137 "app_locale_settings_sl.pak",
138 "app_locale_settings_sr.pak",
139 "app_locale_settings_sv.pak",
140 "app_locale_settings_sw.pak",
141 "app_locale_settings_ta.pak",
142 "app_locale_settings_te.pak",
143 "app_locale_settings_th.pak",
144 "app_locale_settings_tr.pak",
145 "app_locale_settings_uk.pak",
146 "app_locale_settings_vi.pak",
147 "app_locale_settings_zh-CN.pak",
148 "app_locale_settings_zh-TW.pak",
149 ] 33 ]
150 34 foreach(locale, locales_with_fake_bidi) {
151 if (is_ios) { 35 outputs += [ "app_locale_settings_$locale.pak" ]
152 # iOS uses "pt" for pt-BR" and "es-MX" for "es-419".
153 outputs -= [
154 "app_locale_settings_pt-BR.pak",
155 "app_locale_settings_es-419.pak",
156 ]
157 outputs += [
158 "app_locale_settings_pt.pak",
159 "app_locale_settings_es-MX.pak",
160 ]
161 } 36 }
162 } 37 }
OLDNEW
« no previous file with comments | « third_party/libaddressinput/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698