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

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

Issue 2423323003: Enable multidex for ChromePublic.apk. (Closed)
Patch Set: Enable multidex for ChromePublic.apk. Created 4 years 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
« no previous file with comments | « build/android/main_dex_classes.flags ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
34 "enable_webvr=$enable_webvr", 34 "enable_webvr=$enable_webvr",
35 ] 35 ]
36 36
37 template("chrome_public_apk_tmpl") { 37 template("chrome_public_apk_tmpl") {
38 android_apk(target_name) { 38 android_apk(target_name) {
39 forward_variables_from(invoker, "*") 39 forward_variables_from(invoker, "*")
40 _native_lib_file = 40 _native_lib_file =
41 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir) 41 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir)
42 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" 42 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)"
43 43
44 if (is_java_debug) { 44 enable_multidex = true
45 enable_multidex = true 45 if (!is_java_debug) {
46 } else {
47 proguard_enabled = true 46 proguard_enabled = true
48 if (!defined(proguard_configs)) { 47 if (!defined(proguard_configs)) {
49 proguard_configs = [] 48 proguard_configs = []
50 } 49 }
51 proguard_configs += [ 50 proguard_configs += [
51 "//build/android/main_dex_classes.flags",
52 "//chrome/android/java/proguard.flags", 52 "//chrome/android/java/proguard.flags",
53 "//base/android/proguard/chromium_apk.flags", 53 "//base/android/proguard/chromium_apk.flags",
54 "//base/android/proguard/chromium_code.flags", 54 "//base/android/proguard/chromium_code.flags",
55 ] 55 ]
56 if (enable_proguard_obfuscation) { 56 if (enable_proguard_obfuscation) {
57 proguard_configs += [ "//chrome/android/java/proguard-obfuscate.flags" ] 57 proguard_configs += [ "//chrome/android/java/proguard-obfuscate.flags" ]
58 } else { 58 } else {
59 proguard_configs += 59 proguard_configs +=
60 [ "//chrome/android/java/proguard-dont-obfuscate.flags" ] 60 [ "//chrome/android/java/proguard-dont-obfuscate.flags" ]
61 } 61 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 ] 115 ]
116 116
117 if (!is_java_debug) { 117 if (!is_java_debug) {
118 if (!defined(proguard_configs)) { 118 if (!defined(proguard_configs)) {
119 proguard_configs = [] 119 proguard_configs = []
120 } 120 }
121 proguard_configs += [ "//android_webview/apk/java/proguard.flags" ] 121 proguard_configs += [ "//android_webview/apk/java/proguard.flags" ]
122 } 122 }
123 } 123 }
124 } 124 }
OLDNEW
« no previous file with comments | « build/android/main_dex_classes.flags ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698