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 | 7 |
8 template("system_webview_apk_tmpl") { | 8 template("system_webview_apk_tmpl") { |
9 android_apk(target_name) { | 9 android_apk(target_name) { |
10 forward_variables_from(invoker, "*") | 10 forward_variables_from(invoker, "*") |
11 | 11 |
12 deps += [ | 12 deps += [ |
13 "//android_webview:assets", | 13 "//android_webview:assets", |
14 "//base:base_java", | 14 "//base:base_java", |
15 ] | 15 ] |
16 | 16 |
17 srcjar_deps = [ "//android_webview:locale_pak_srcjar" ] | |
18 | |
19 if (!defined(alternative_android_sdk_jar)) { | 17 if (!defined(alternative_android_sdk_jar)) { |
20 alternative_android_sdk_jar = webview_framework_jar | 18 alternative_android_sdk_jar = webview_framework_jar |
21 } | 19 } |
22 | 20 |
23 shared_resources = true | 21 shared_resources = true |
24 shared_libraries = [ "//android_webview:libwebviewchromium" ] | 22 shared_libraries = [ "//android_webview:libwebviewchromium" ] |
25 native_lib_version_rule = "//build/util:chrome_version_json" | 23 native_lib_version_rule = "//build/util:chrome_version_json" |
26 _native_lib_file = | 24 _native_lib_file = |
27 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir) | 25 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir) |
28 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" | 26 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" |
29 extensions_to_not_compress = ".lpak,.pak,.bin,.dat" | 27 extensions_to_not_compress = ".lpak,.pak,.bin,.dat" |
30 if (build_apk_secondary_abi && android_64bit_target_cpu) { | 28 if (build_apk_secondary_abi && android_64bit_target_cpu) { |
31 secondary_abi_shared_libraries = [ "//android_webview:libwebviewchromium($
android_secondary_abi_toolchain)" ] | 29 secondary_abi_shared_libraries = [ "//android_webview:libwebviewchromium($
android_secondary_abi_toolchain)" ] |
32 } | 30 } |
33 | 31 |
34 if (!is_java_debug) { | 32 if (!is_java_debug) { |
35 proguard_enabled = true | 33 proguard_enabled = true |
36 if (!defined(proguard_configs)) { | 34 if (!defined(proguard_configs)) { |
37 proguard_configs = [] | 35 proguard_configs = [] |
38 } | 36 } |
39 proguard_configs += [ | 37 proguard_configs += [ |
40 "//android_webview/apk/java/proguard.flags", | 38 "//android_webview/apk/java/proguard.flags", |
41 "//base/android/proguard/chromium_apk.flags", | 39 "//base/android/proguard/chromium_apk.flags", |
42 "//base/android/proguard/chromium_code.flags", | 40 "//base/android/proguard/chromium_code.flags", |
43 ] | 41 ] |
44 } | 42 } |
45 } | 43 } |
46 } | 44 } |
OLD | NEW |