fixup! Upload upstream chromium 85.0.4183.93
[platform/framework/web/chromium-efl.git] / android_webview / system_webview_bundle.gni
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_allowlist = locales
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)
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 }