Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: chrome/android/chrome_public_apk_tmpl.gni

Issue 2295363002: 🔔 Allow android_* targets to specify proguard flags for apks (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 android_apk(target_name) { 37 android_apk(target_name) {
38 forward_variables_from(invoker, "*") 38 forward_variables_from(invoker, "*")
39 _native_lib_file = 39 _native_lib_file =
40 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir) 40 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir)
41 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" 41 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)"
42 42
43 if (is_java_debug) { 43 if (is_java_debug) {
44 enable_multidex = true 44 enable_multidex = true
45 } else { 45 } else {
46 proguard_enabled = true 46 proguard_enabled = true
47 _prev_proguard_configs = [] 47 if (!defined(proguard_configs)) {
48 if (defined(proguard_configs)) { 48 proguard_configs = []
49 _prev_proguard_configs = proguard_configs
50 } 49 }
51 proguard_configs = [] 50 proguard_configs += [
52 proguard_configs = _prev_proguard_configs + [ 51 "//chrome/android/java/proguard.flags",
53 "//chrome/android/java/proguard.flags", 52 "//base/android/base_proguard_config.flags",
54 "//base/android/base_proguard_config.flags", 53 "//base/android/release_proguard_config.flags",
55 "//base/android/release_proguard_config.flags", 54 ]
56 ]
57 if (enable_webvr || enable_vr_shell) {
58 proguard_configs +=
59 [ "//third_party/gvr-android-sdk/proguard/base.flags" ]
60 }
61 } 55 }
62 56
63 if (!defined(use_chromium_linker)) { 57 if (!defined(use_chromium_linker)) {
64 use_chromium_linker = chrome_public_apk_use_chromium_linker 58 use_chromium_linker = chrome_public_apk_use_chromium_linker
65 } 59 }
66 60
67 if (use_chromium_linker) { 61 if (use_chromium_linker) {
68 if (!defined(load_library_from_apk)) { 62 if (!defined(load_library_from_apk)) {
69 load_library_from_apk = chrome_public_apk_load_library_from_apk 63 load_library_from_apk = chrome_public_apk_load_library_from_apk
70 } 64 }
71 65
72 if (!defined(enable_relocation_packing)) { 66 if (!defined(enable_relocation_packing)) {
73 enable_relocation_packing = chrome_public_apk_use_relocation_packer 67 enable_relocation_packing = chrome_public_apk_use_relocation_packer
74 } 68 }
75 } 69 }
76 } 70 }
77 } 71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698