| 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("//build/config/locales.gni") | 7 import("//build/config/locales.gni") |
| 8 import("//chrome/common/features.gni") | 8 import("//chrome/common/features.gni") |
| 9 import("//third_party/leakcanary/config.gni") | 9 import("//third_party/leakcanary/config.gni") |
| 10 import("channel.gni") | 10 import("channel.gni") |
| 11 | 11 |
| 12 declare_args() { | 12 declare_args() { |
| 13 # Whether chrome_public_apk should use the crazy linker. | 13 # Whether chrome_public_apk should use the crazy linker. |
| 14 chrome_public_apk_use_chromium_linker = chromium_linker_supported | 14 chrome_public_apk_use_chromium_linker = chromium_linker_supported |
| 15 | 15 |
| 16 # Whether chrome_public_apk should use the relocation packer. | 16 # Whether chrome_public_apk should use the relocation packer. |
| 17 chrome_public_apk_use_relocation_packer = chromium_linker_supported | 17 chrome_public_apk_use_relocation_packer = chromium_linker_supported |
| 18 | 18 |
| 19 # Whether native libraries should be loaded from within the apk. | 19 # Whether native libraries should be loaded from within the apk. |
| 20 # Only attempt loading the library from the APK for 64 bit devices | 20 # Only attempt loading the library from the APK for 64 bit devices |
| 21 # until the number of 32 bit devices which don't support this | 21 # until the number of 32 bit devices which don't support this |
| 22 # approach falls to a minimal level - http://crbug.com/390618. | 22 # approach falls to a minimal level - http://crbug.com/390618. |
| 23 chrome_public_apk_load_library_from_apk = | 23 chrome_public_apk_load_library_from_apk = |
| 24 chromium_linker_supported && | 24 chromium_linker_supported && |
| 25 (current_cpu == "arm64" || current_cpu == "x64") | 25 (current_cpu == "arm64" || current_cpu == "x64") |
| 26 | 26 |
| 27 # Enables ProGuard obfuscation of Chromium packages. | 27 # Enables ProGuard obfuscation of Chromium packages. |
| 28 enable_proguard_obfuscation = false | 28 enable_proguard_obfuscation = true |
| 29 | 29 |
| 30 # Enable multidex in release builds. | 30 # Enable multidex in release builds. |
| 31 multidex_in_release = false | 31 multidex_in_release = false |
| 32 } | 32 } |
| 33 | 33 |
| 34 default_chrome_public_jinja_variables = [ | 34 default_chrome_public_jinja_variables = [ |
| 35 "channel=$android_channel", | 35 "channel=$android_channel", |
| 36 "enable_leakcanary=$enable_leakcanary", | 36 "enable_leakcanary=$enable_leakcanary", |
| 37 "enable_vr=$enable_vr", | 37 "enable_vr=$enable_vr", |
| 38 ] | 38 ] |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 ] | 130 ] |
| 131 | 131 |
| 132 if (!is_java_debug) { | 132 if (!is_java_debug) { |
| 133 if (!defined(proguard_configs)) { | 133 if (!defined(proguard_configs)) { |
| 134 proguard_configs = [] | 134 proguard_configs = [] |
| 135 } | 135 } |
| 136 proguard_configs += [ "//android_webview/apk/java/proguard.flags" ] | 136 proguard_configs += [ "//android_webview/apk/java/proguard.flags" ] |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 } | 139 } |
| OLD | NEW |