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("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//chrome/common/features.gni") |
6 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
7 | 8 |
8 grit("locale_settings") { | 9 grit("locale_settings") { |
9 source = "locale_settings.grd" | 10 source = "locale_settings.grd" |
10 use_qualified_include = true | 11 use_qualified_include = true |
| 12 defines = chrome_grit_defines |
11 output_dir = "$root_gen_dir/chrome" | 13 output_dir = "$root_gen_dir/chrome" |
12 outputs = [ | 14 outputs = [ |
13 "grit/locale_settings.h", | 15 "grit/locale_settings.h", |
14 "locale_settings_am.pak", | 16 "locale_settings_am.pak", |
15 "locale_settings_ar.pak", | 17 "locale_settings_ar.pak", |
16 "locale_settings_bg.pak", | 18 "locale_settings_bg.pak", |
17 "locale_settings_bn.pak", | 19 "locale_settings_bn.pak", |
18 "locale_settings_ca.pak", | 20 "locale_settings_ca.pak", |
19 "locale_settings_cs.pak", | 21 "locale_settings_cs.pak", |
20 "locale_settings_da.pak", | 22 "locale_settings_da.pak", |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 if (is_chrome_branded) { | 79 if (is_chrome_branded) { |
78 source = "locale_settings_google_chromeos.grd" | 80 source = "locale_settings_google_chromeos.grd" |
79 } else { | 81 } else { |
80 source = "locale_settings_chromiumos.grd" | 82 source = "locale_settings_chromiumos.grd" |
81 } | 83 } |
82 } else if (is_posix) { | 84 } else if (is_posix) { |
83 # All other posix systems just use the Linux one. | 85 # All other posix systems just use the Linux one. |
84 source = "locale_settings_linux.grd" | 86 source = "locale_settings_linux.grd" |
85 } | 87 } |
86 | 88 |
| 89 defines = chrome_grit_defines |
87 use_qualified_include = true | 90 use_qualified_include = true |
88 outputs = [ | 91 outputs = [ |
89 "grit/platform_locale_settings.h", | 92 "grit/platform_locale_settings.h", |
90 "platform_locale_settings_am.pak", | 93 "platform_locale_settings_am.pak", |
91 "platform_locale_settings_ar.pak", | 94 "platform_locale_settings_ar.pak", |
92 "platform_locale_settings_bg.pak", | 95 "platform_locale_settings_bg.pak", |
93 "platform_locale_settings_bn.pak", | 96 "platform_locale_settings_bn.pak", |
94 "platform_locale_settings_ca.pak", | 97 "platform_locale_settings_ca.pak", |
95 "platform_locale_settings_cs.pak", | 98 "platform_locale_settings_cs.pak", |
96 "platform_locale_settings_da.pak", | 99 "platform_locale_settings_da.pak", |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 "platform_locale_settings_th.pak", | 141 "platform_locale_settings_th.pak", |
139 "platform_locale_settings_tr.pak", | 142 "platform_locale_settings_tr.pak", |
140 "platform_locale_settings_uk.pak", | 143 "platform_locale_settings_uk.pak", |
141 "platform_locale_settings_vi.pak", | 144 "platform_locale_settings_vi.pak", |
142 "platform_locale_settings_zh-CN.pak", | 145 "platform_locale_settings_zh-CN.pak", |
143 "platform_locale_settings_zh-TW.pak", | 146 "platform_locale_settings_zh-TW.pak", |
144 ] | 147 ] |
145 | 148 |
146 output_dir = "$root_gen_dir/chrome" | 149 output_dir = "$root_gen_dir/chrome" |
147 } | 150 } |
OLD | NEW |