Clark DuVall | ebd41cb | 2019-12-19 23:14:16 | [diff] [blame] | 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. |
| 4 | |
| 5 | import("//build/config/android/rules.gni") |
| 6 | import("//build/config/locales.gni") |
| 7 | |
| 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_whitelist = locales |
Christopher Grant | 83e35a4 | 2020-01-06 16:06:08 | [diff] [blame^] | 14 | is_multi_abi = |
| 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) |
Clark DuVall | ebd41cb | 2019-12-19 23:14:16 | [diff] [blame] | 19 | |
| 20 | if (!defined(proguard_android_sdk_dep)) { |
| 21 | proguard_android_sdk_dep = webview_framework_dep |
| 22 | } |
| 23 | |
| 24 | # NOTE: Only sign bundle for official builds since this is very slow. |
| 25 | if (enable_chrome_android_internal && use_signing_keys && |
| 26 | is_official_build) { |
| 27 | sign_bundle = true |
| 28 | keystore_path = webview_keystore_path |
| 29 | keystore_name = webview_keystore_name |
| 30 | keystore_password = webview_keystore_password |
| 31 | } |
| 32 | forward_variables_from(invoker, "*") |
| 33 | } |
| 34 | } |