| 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("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
| 7 import("//build/config/locales.gni") | 7 import("//build/config/locales.gni") |
| 8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
| 9 import("system_webview_apk_tmpl.gni") | 9 import("system_webview_apk_tmpl.gni") |
| 10 import("webview_repack_locales.gni") | 10 import("webview_repack_locales.gni") |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 android_assets("pak_file_assets") { | 125 android_assets("pak_file_assets") { |
| 126 sources = [ | 126 sources = [ |
| 127 "$target_gen_dir/webviewchromium.pak", | 127 "$target_gen_dir/webviewchromium.pak", |
| 128 ] | 128 ] |
| 129 deps = [ | 129 deps = [ |
| 130 ":repack_pack", | 130 ":repack_pack", |
| 131 ] | 131 ] |
| 132 disable_compression = true | 132 disable_compression = true |
| 133 } | 133 } |
| 134 | 134 |
| 135 android_assets("assets") { | 135 # These assets are needed by both monochrome and stand alone WebView, but not by |
| 136 # Chrome. |
| 137 android_assets("monochrome_webview_assets") { |
| 136 sources = [ | 138 sources = [ |
| 137 webview_license_path, | 139 webview_license_path, |
| 138 ] | 140 ] |
| 139 deps = [ | 141 deps = [ |
| 140 ":generate_webview_license_notice", | 142 ":generate_webview_license_notice", |
| 141 ":pak_file_assets", | |
| 142 "//third_party/icu:icu_assets", | 143 "//third_party/icu:icu_assets", |
| 143 "//v8:v8_external_startup_data_assets", | 144 "//v8:v8_external_startup_data_assets", |
| 144 ] | 145 ] |
| 145 } | 146 } |
| 146 | 147 |
| 148 android_assets("assets") { |
| 149 deps = [ |
| 150 ":monochrome_webview_assets", |
| 151 ":pak_file_assets", |
| 152 ] |
| 153 } |
| 154 |
| 147 action("generate_webview_license_notice") { | 155 action("generate_webview_license_notice") { |
| 148 script = "tools/webview_licenses.py" | 156 script = "tools/webview_licenses.py" |
| 149 inputs = exec_script("//android_webview/tools/webview_licenses.py", | 157 inputs = exec_script("//android_webview/tools/webview_licenses.py", |
| 150 [ "gn_notice_deps" ], | 158 [ "gn_notice_deps" ], |
| 151 "value") | 159 "value") |
| 152 inputs += [ "tools/licenses_notice.tmpl" ] | 160 inputs += [ "tools/licenses_notice.tmpl" ] |
| 153 outputs = [ | 161 outputs = [ |
| 154 webview_license_path, | 162 webview_license_path, |
| 155 ] | 163 ] |
| 156 args = [ | 164 args = [ |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 android_manifest = get_target_outputs(":system_webview_manifest") | 761 android_manifest = get_target_outputs(":system_webview_manifest") |
| 754 android_manifest = android_manifest[1] | 762 android_manifest = android_manifest[1] |
| 755 android_manifest_dep = ":system_webview_manifest" | 763 android_manifest_dep = ":system_webview_manifest" |
| 756 deps = [ | 764 deps = [ |
| 757 ":system_webview_resources", | 765 ":system_webview_resources", |
| 758 "//android_webview/glue", | 766 "//android_webview/glue", |
| 759 ] | 767 ] |
| 760 apk_name = "SystemWebView" | 768 apk_name = "SystemWebView" |
| 761 } | 769 } |
| 762 } | 770 } |
| OLD | NEW |