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