| 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("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
| 6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
| 7 import("//chrome/common/features.gni") | 7 import("//chrome/common/features.gni") |
| 8 import("//third_party/leakcanary/config.gni") | 8 import("//third_party/leakcanary/config.gni") |
| 9 import("channel.gni") | 9 import("channel.gni") |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 if (!defined(load_library_from_apk)) { | 70 if (!defined(load_library_from_apk)) { |
| 71 load_library_from_apk = chrome_public_apk_load_library_from_apk | 71 load_library_from_apk = chrome_public_apk_load_library_from_apk |
| 72 } | 72 } |
| 73 | 73 |
| 74 if (!defined(enable_relocation_packing)) { | 74 if (!defined(enable_relocation_packing)) { |
| 75 enable_relocation_packing = chrome_public_apk_use_relocation_packer | 75 enable_relocation_packing = chrome_public_apk_use_relocation_packer |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 } | 79 } |
| 80 |
| 81 template("monochrome_public_apk_tmpl") { |
| 82 chrome_public_apk_tmpl(target_name) { |
| 83 # Always build 64-bit //android_webview:monochrome because Chrome runs |
| 84 # in 32-bit mode. |
| 85 if (android_64bit_target_cpu) { |
| 86 shared_libraries = [ "//android_webview:monochrome" ] |
| 87 } else { |
| 88 shared_libraries = [ "//chrome/android:monochrome" ] |
| 89 } |
| 90 if (android_64bit_target_cpu && build_apk_secondary_abi) { |
| 91 secondary_abi_shared_libraries = |
| 92 [ "//chrome/android:monochrome_secondary_abi_lib" ] |
| 93 } |
| 94 |
| 95 alternative_locale_resource_dep = "//chrome/android:monochrome_locale_paks" |
| 96 |
| 97 alternative_android_sdk_jar = webview_framework_jar |
| 98 app_as_shared_lib = true |
| 99 use_chromium_linker = false |
| 100 requires_sdk_api_level_23 = true |
| 101 enable_relocation_packing = true |
| 102 extensions_to_not_compress = ".lpak,.pak,.bin,.dat" |
| 103 |
| 104 # Configrations to make android load shared library from APK. |
| 105 uncompress_shared_libraries = true |
| 106 page_align_shared_libraries = true |
| 107 |
| 108 forward_variables_from(invoker, "*") |
| 109 |
| 110 if (!defined(deps)) { |
| 111 deps = [] |
| 112 } |
| 113 deps += [ "//android_webview/glue" ] |
| 114 |
| 115 if (!is_java_debug) { |
| 116 if (!defined(proguard_configs)) { |
| 117 proguard_configs = [] |
| 118 } |
| 119 proguard_configs += [ "//android_webview/apk/java/proguard.flags" ] |
| 120 } |
| 121 } |
| 122 } |
| OLD | NEW |