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/locales.gni") | 5 import("//build/config/locales.gni") |
6 import("//ppapi/features/features.gni") | 6 import("//ppapi/features/features.gni") |
7 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 public_deps = [ | 60 public_deps = [ |
61 ":components_chromium_strings", | 61 ":components_chromium_strings", |
62 ":components_google_chrome_strings", | 62 ":components_google_chrome_strings", |
63 ":components_locale_settings", | 63 ":components_locale_settings", |
64 ":components_strings", | 64 ":components_strings", |
65 ] | 65 ] |
66 } | 66 } |
67 | 67 |
68 grit("components_strings") { | 68 grit("components_strings") { |
69 source = "../components_strings.grd" | 69 source = "../components_strings.grd" |
| 70 use_qualified_include = true |
70 defines = [ "enable_plugins=$enable_plugins" ] | 71 defines = [ "enable_plugins=$enable_plugins" ] |
71 | 72 |
72 outputs = [ | 73 outputs = [ |
73 "grit/components_strings.h", | 74 "grit/components_strings.h", |
74 ] | 75 ] |
75 foreach(locale, locales_with_fake_bidi) { | 76 foreach(locale, locales_with_fake_bidi) { |
76 outputs += [ "components_strings_$locale.pak" ] | 77 outputs += [ "components_strings_$locale.pak" ] |
77 } | 78 } |
78 | 79 |
79 if (is_android) { | 80 if (is_android) { |
80 outputs += android_components_strings_java_resources | 81 outputs += android_components_strings_java_resources |
81 } | 82 } |
82 } | 83 } |
83 | 84 |
84 if (is_android) { | 85 if (is_android) { |
85 java_strings_grd_prebuilt("components_strings_grd") { | 86 java_strings_grd_prebuilt("components_strings_grd") { |
86 grit_output_dir = "$root_gen_dir/components/strings/java/res" | 87 grit_output_dir = "$root_gen_dir/components/strings/java/res" |
87 generated_files = | 88 generated_files = |
88 rebase_path(android_components_strings_java_resources, "java/res", ".") | 89 rebase_path(android_components_strings_java_resources, "java/res", ".") |
89 deps = [ | 90 deps = [ |
90 ":components_strings", | 91 ":components_strings", |
91 ] | 92 ] |
92 } | 93 } |
93 } | 94 } |
94 | 95 |
95 grit("components_chromium_strings") { | 96 grit("components_chromium_strings") { |
96 source = "../components_chromium_strings.grd" | 97 source = "../components_chromium_strings.grd" |
| 98 use_qualified_include = true |
97 outputs = [ | 99 outputs = [ |
98 "grit/components_chromium_strings.h", | 100 "grit/components_chromium_strings.h", |
99 ] | 101 ] |
100 foreach(locale, locales_with_fake_bidi) { | 102 foreach(locale, locales_with_fake_bidi) { |
101 outputs += [ "components_chromium_strings_$locale.pak" ] | 103 outputs += [ "components_chromium_strings_$locale.pak" ] |
102 } | 104 } |
103 } | 105 } |
104 | 106 |
105 grit("components_google_chrome_strings") { | 107 grit("components_google_chrome_strings") { |
106 source = "../components_google_chrome_strings.grd" | 108 source = "../components_google_chrome_strings.grd" |
| 109 use_qualified_include = true |
107 outputs = [ | 110 outputs = [ |
108 "grit/components_google_chrome_strings.h", | 111 "grit/components_google_chrome_strings.h", |
109 ] | 112 ] |
110 foreach(locale, locales_with_fake_bidi) { | 113 foreach(locale, locales_with_fake_bidi) { |
111 outputs += [ "components_google_chrome_strings_$locale.pak" ] | 114 outputs += [ "components_google_chrome_strings_$locale.pak" ] |
112 } | 115 } |
113 } | 116 } |
114 | 117 |
115 if (is_android) { | 118 if (is_android) { |
116 android_components_locale_settings_java_resources = [ | 119 android_components_locale_settings_java_resources = [ |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 "java/res/values-uk/components_locale_settings.xml", | 159 "java/res/values-uk/components_locale_settings.xml", |
157 "java/res/values-vi/components_locale_settings.xml", | 160 "java/res/values-vi/components_locale_settings.xml", |
158 "java/res/values-zh-rCN/components_locale_settings.xml", | 161 "java/res/values-zh-rCN/components_locale_settings.xml", |
159 "java/res/values-zh-rTW/components_locale_settings.xml", | 162 "java/res/values-zh-rTW/components_locale_settings.xml", |
160 "java/res/values/components_locale_settings.xml", | 163 "java/res/values/components_locale_settings.xml", |
161 ] | 164 ] |
162 } | 165 } |
163 | 166 |
164 grit("components_locale_settings") { | 167 grit("components_locale_settings") { |
165 source = "../components_locale_settings.grd" | 168 source = "../components_locale_settings.grd" |
| 169 use_qualified_include = true |
166 outputs = [ | 170 outputs = [ |
167 "grit/components_locale_settings.h", | 171 "grit/components_locale_settings.h", |
168 ] | 172 ] |
169 foreach(locale, locales_with_fake_bidi) { | 173 foreach(locale, locales_with_fake_bidi) { |
170 outputs += [ "components_locale_settings_$locale.pak" ] | 174 outputs += [ "components_locale_settings_$locale.pak" ] |
171 } | 175 } |
172 | 176 |
173 if (is_android) { | 177 if (is_android) { |
174 outputs += android_components_locale_settings_java_resources | 178 outputs += android_components_locale_settings_java_resources |
175 } | 179 } |
176 } | 180 } |
177 | 181 |
178 if (is_android) { | 182 if (is_android) { |
179 java_strings_grd_prebuilt("components_locale_settings_grd") { | 183 java_strings_grd_prebuilt("components_locale_settings_grd") { |
180 grit_output_dir = "$root_gen_dir/components/strings/java/res" | 184 grit_output_dir = "$root_gen_dir/components/strings/java/res" |
181 generated_files = | 185 generated_files = |
182 rebase_path(android_components_locale_settings_java_resources, | 186 rebase_path(android_components_locale_settings_java_resources, |
183 "java/res", | 187 "java/res", |
184 ".") | 188 ".") |
185 deps = [ | 189 deps = [ |
186 ":components_locale_settings", | 190 ":components_locale_settings", |
187 ] | 191 ] |
188 } | 192 } |
189 } | 193 } |
OLD | NEW |