| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 if (is_java_debug) { | 42 if (is_java_debug) { |
| 43 enable_multidex = true | 43 enable_multidex = true |
| 44 } else { | 44 } else { |
| 45 proguard_enabled = true | 45 proguard_enabled = true |
| 46 _prev_proguard_configs = [] | 46 _prev_proguard_configs = [] |
| 47 if (defined(proguard_configs)) { | 47 if (defined(proguard_configs)) { |
| 48 _prev_proguard_configs = proguard_configs | 48 _prev_proguard_configs = proguard_configs |
| 49 } | 49 } |
| 50 proguard_configs = [] | 50 proguard_configs = [] |
| 51 proguard_configs = | 51 proguard_configs = _prev_proguard_configs + [ |
| 52 [ "//chrome/android/java/proguard.flags" ] + _prev_proguard_configs | 52 "//chrome/android/java/proguard.flags", |
| 53 "//base/android/base_proguard_config.flags", |
| 54 ] |
| 53 if (!enable_all_proguard_optimizations) { | 55 if (!enable_all_proguard_optimizations) { |
| 54 proguard_configs += [ "//testing/android/proguard_for_test.flags" ] | 56 proguard_configs += [ "//testing/android/proguard_for_test.flags" ] |
| 55 } | 57 } |
| 56 } | 58 } |
| 57 | 59 |
| 58 if (!defined(use_chromium_linker)) { | 60 if (!defined(use_chromium_linker)) { |
| 59 use_chromium_linker = chrome_public_apk_use_chromium_linker | 61 use_chromium_linker = chrome_public_apk_use_chromium_linker |
| 60 } | 62 } |
| 61 | 63 |
| 62 if (use_chromium_linker) { | 64 if (use_chromium_linker) { |
| 63 if (!defined(load_library_from_apk)) { | 65 if (!defined(load_library_from_apk)) { |
| 64 load_library_from_apk = chrome_public_apk_load_library_from_apk | 66 load_library_from_apk = chrome_public_apk_load_library_from_apk |
| 65 } | 67 } |
| 66 | 68 |
| 67 if (!defined(enable_relocation_packing)) { | 69 if (!defined(enable_relocation_packing)) { |
| 68 enable_relocation_packing = chrome_public_apk_use_relocation_packer | 70 enable_relocation_packing = chrome_public_apk_use_relocation_packer |
| 69 } | 71 } |
| 70 } | 72 } |
| 71 } | 73 } |
| 72 } | 74 } |
| OLD | NEW |