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

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

Issue 1691993003: Hook up LeakCanary to ChromePublic.apk (behind a GN arg) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@leak-canary-2
Patch Set: better proguarding Created 4 years, 10 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("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("//chrome/common/features.gni")
7 import("//third_party/leakcanary/config.gni")
8 import("channel.gni")
6 9
7 declare_args() { 10 declare_args() {
8 # Whether chrome_public_apk should use the crazy linker. 11 # Whether chrome_public_apk should use the crazy linker.
9 chrome_public_apk_use_chromium_linker = true 12 chrome_public_apk_use_chromium_linker = true
10 13
11 # Whether chrome_public_apk should use the relocation packer. 14 # Whether chrome_public_apk should use the relocation packer.
12 chrome_public_apk_use_relocation_packer = true 15 chrome_public_apk_use_relocation_packer = true
13 16
14 # Whether native libraries should be loaded from within the apk. 17 # Whether native libraries should be loaded from within the apk.
15 chrome_public_apk_load_library_from_apk = true 18 chrome_public_apk_load_library_from_apk = true
16 } 19 }
17 20
21 default_chrome_public_jinja_variables = [
22 "channel=$android_channel",
23 "enable_leakcanary=$enable_leakcanary",
24 ]
25 if (enable_configuration_policy) {
26 default_chrome_public_jinja_variables += [ "configuration_policy=1" ]
27 } else {
28 default_chrome_public_jinja_variables += [ "configuration_policy=0" ]
29 }
30
18 # GYP: //chrome/android/chrome_apk.gypi 31 # GYP: //chrome/android/chrome_apk.gypi
19 template("chrome_public_apk_tmpl") { 32 template("chrome_public_apk_tmpl") {
20 android_apk(target_name) { 33 android_apk(target_name) {
21 forward_variables_from(invoker, "*") 34 forward_variables_from(invoker, "*")
22 _native_lib_file = 35 _native_lib_file =
23 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir) 36 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_out_dir)
24 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" 37 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)"
25 38
26 if (is_debug) { 39 if (is_debug) {
27 enable_multidex = true 40 enable_multidex = true
(...skipping 13 matching lines...) Expand all
41 use_chromium_linker = chrome_public_apk_use_chromium_linker 54 use_chromium_linker = chrome_public_apk_use_chromium_linker
42 } 55 }
43 56
44 # TODO: Enable packed relocations for x64. See: b/20532404 57 # TODO: Enable packed relocations for x64. See: b/20532404
45 if (current_cpu != "x64") { 58 if (current_cpu != "x64") {
46 enable_relocation_packing = chrome_public_apk_use_relocation_packer 59 enable_relocation_packing = chrome_public_apk_use_relocation_packer
47 } 60 }
48 } 61 }
49 } 62 }
50 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698