| # Copyright 2019 The Chromium Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| import("//build/config/android/rules.gni") | |
| import("//build/config/locales.gni") | |
| template("system_webview_bundle") { | |
| android_app_bundle(target_name) { | |
| command_line_flags_file = "webview-command-line" | |
| proguard_enabled = !is_java_debug | |
| enable_language_splits = true | |
| system_image_locale_allowlist = locales | |
| is_multi_abi = | |
| android_64bit_target_cpu && (!defined(invoker.include_64_bit_webview) || | |
| invoker.include_64_bit_webview) && | |
| (!defined(invoker.include_32_bit_webview) || | |
| invoker.include_32_bit_webview) | |
| if (!defined(proguard_android_sdk_dep)) { | |
| proguard_android_sdk_dep = webview_framework_dep | |
| } | |
| # NOTE: Only sign bundle for official builds since this is very slow. | |
| if (enable_chrome_android_internal && use_signing_keys && | |
| is_official_build) { | |
| sign_bundle = true | |
| keystore_path = webview_keystore_path | |
| keystore_name = webview_keystore_name | |
| keystore_password = webview_keystore_password | |
| } | |
| forward_variables_from(invoker, "*") | |
| } | |
| } |