OLD | NEW |
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("//android_webview/system_webview_apk_tmpl.gni") | 5 import("//android_webview/system_webview_apk_tmpl.gni") |
6 import("//android_webview/webview_repack_locales.gni") | 6 import("//android_webview/webview_repack_locales.gni") |
7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 import("//build/config/locales.gni") | 9 import("//build/config/locales.gni") |
10 import("//components/spellcheck/spellcheck_build_features.gni") | 10 import("//components/spellcheck/spellcheck_build_features.gni") |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 outputs = [ | 211 outputs = [ |
212 "grit/webui_resources.h", | 212 "grit/webui_resources.h", |
213 "grit/webui_resources_map.h", | 213 "grit/webui_resources_map.h", |
214 "grit/webui_resources_map.cc", | 214 "grit/webui_resources_map.cc", |
215 "webui_resources.pak", | 215 "webui_resources.pak", |
216 ] | 216 ] |
217 } | 217 } |
218 | 218 |
219 grit("generate_components_resources") { | 219 grit("generate_components_resources") { |
220 source = "../components/resources/components_resources.grd" | 220 source = "../components/resources/components_resources.grd" |
| 221 use_qualified_include = true |
221 | 222 |
222 # See :generate_webui_resources for an explanation of the whitelist | 223 # See :generate_webui_resources for an explanation of the whitelist |
223 whitelist = rebase_path("ui/grit_resources_whitelist.txt") | 224 whitelist = rebase_path("ui/grit_resources_whitelist.txt") |
224 inputs = [ | 225 inputs = [ |
225 whitelist, | 226 whitelist, |
226 ] | 227 ] |
227 grit_flags = [ | 228 grit_flags = [ |
228 "-w", | 229 "-w", |
229 whitelist, | 230 whitelist, |
230 ] | 231 ] |
231 outputs = [ | 232 outputs = [ |
232 "grit/components_resources.h", | 233 "grit/components_resources.h", |
233 "components_resources.pak", | 234 "components_resources.pak", |
234 ] | 235 ] |
235 } | 236 } |
236 | 237 |
237 grit("generate_components_strings") { | 238 grit("generate_components_strings") { |
238 source = "../components/components_strings.grd" | 239 source = "../components/components_strings.grd" |
| 240 use_qualified_include = true |
239 | 241 |
240 # components_strings contains strings from all components. WebView | 242 # components_strings contains strings from all components. WebView |
241 # will never display most of them, so we try to limit the included | 243 # will never display most of them, so we try to limit the included |
242 # strings. This whitelist trims about 50% more than the compile-based | 244 # strings. This whitelist trims about 50% more than the compile-based |
243 # whitelist generated by :system_webview_pak_whitelist. | 245 # whitelist generated by :system_webview_pak_whitelist. |
244 whitelist = rebase_path("ui/grit_strings_whitelist.txt") | 246 whitelist = rebase_path("ui/grit_strings_whitelist.txt") |
245 inputs = [ | 247 inputs = [ |
246 whitelist, | 248 whitelist, |
247 ] | 249 ] |
248 grit_flags = [ | 250 grit_flags = [ |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 system_webview_apk_tmpl("system_webview_apk") { | 801 system_webview_apk_tmpl("system_webview_apk") { |
800 android_manifest = system_webview_android_manifest | 802 android_manifest = system_webview_android_manifest |
801 android_manifest_dep = ":system_webview_manifest" | 803 android_manifest_dep = ":system_webview_manifest" |
802 deps = [ | 804 deps = [ |
803 ":system_webview_resources", | 805 ":system_webview_resources", |
804 "//android_webview/glue", | 806 "//android_webview/glue", |
805 ] | 807 ] |
806 apk_name = "SystemWebView" | 808 apk_name = "SystemWebView" |
807 } | 809 } |
808 } | 810 } |
OLD | NEW |