1 # Copyright 2019 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/android/rules.gni")
6 import("//build/config/locales.gni")
8 template("system_webview_bundle") {
9 android_app_bundle(target_name) {
10 command_line_flags_file = "webview-command-line"
11 proguard_enabled = !is_java_debug
12 enable_language_splits = true
13 system_image_locale_allowlist = locales
15 android_64bit_target_cpu && (!defined(invoker.include_64_bit_webview) ||
16 invoker.include_64_bit_webview) &&
17 (!defined(invoker.include_32_bit_webview) ||
18 invoker.include_32_bit_webview)
20 if (!defined(proguard_android_sdk_dep)) {
21 proguard_android_sdk_dep = webview_framework_dep
24 # NOTE: Only sign bundle for official builds since this is very slow.
25 if (enable_chrome_android_internal && use_signing_keys &&
28 keystore_path = webview_keystore_path
29 keystore_name = webview_keystore_name
30 keystore_password = webview_keystore_password
32 forward_variables_from(invoker, "*")