OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # This file contains common system config stuff for the Android build. | 5 # This file contains common system config stuff for the Android build. |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 assert(rebase_path("//", root_build_dir) == "../../", | 8 assert(rebase_path("//", root_build_dir) == "../../", |
9 "Android output directory must be nested 2 levels within src/ (" + | 9 "Android output directory must be nested 2 levels within src/ (" + |
10 "e.g.: out-gn/Debug). http://crbug.com/412935") | 10 "e.g.: out-gn/Debug). http://crbug.com/412935") |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 # Disables process isolation when building _incremental targets. | 125 # Disables process isolation when building _incremental targets. |
126 # Required for Android M+ due to SELinux policies (stronger sandboxing). | 126 # Required for Android M+ due to SELinux policies (stronger sandboxing). |
127 disable_incremental_isolated_processes = false | 127 disable_incremental_isolated_processes = false |
128 | 128 |
129 # Speed up incremental compiles by compiling only changed files. | 129 # Speed up incremental compiles by compiling only changed files. |
130 enable_incremental_javac = false | 130 enable_incremental_javac = false |
131 | 131 |
132 # Adds intrumentation to each function. Writes a file with the order that | 132 # Adds intrumentation to each function. Writes a file with the order that |
133 # functions are called at startup. | 133 # functions are called at startup. |
134 use_order_profiling = false | 134 use_order_profiling = false |
| 135 |
| 136 # Enables used resource whitelist generation. Set for official builds only |
| 137 # as a large amount of build output is generated. |
| 138 enable_resource_whitelist_generation = is_android && is_official_build |
135 } | 139 } |
136 | 140 |
137 # We need a second declare_args block to make sure we are using the overridden | 141 # We need a second declare_args block to make sure we are using the overridden |
138 # value of the arguments set above. | 142 # value of the arguments set above. |
139 declare_args() { | 143 declare_args() { |
140 # Speed up dexing using dx --incremental. | 144 # Speed up dexing using dx --incremental. |
141 enable_incremental_dx = is_java_debug | 145 enable_incremental_dx = is_java_debug |
142 } | 146 } |
143 | 147 |
144 # Neither of these should ever be used for release builds since they are | 148 # Neither of these should ever be used for release builds since they are |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 if (defined(android_secondary_abi_cpu)) { | 320 if (defined(android_secondary_abi_cpu)) { |
317 if (is_clang) { | 321 if (is_clang) { |
318 android_secondary_abi_toolchain = | 322 android_secondary_abi_toolchain = |
319 "//build/toolchain/android:clang_${android_secondary_abi_cpu}" | 323 "//build/toolchain/android:clang_${android_secondary_abi_cpu}" |
320 } else { | 324 } else { |
321 android_secondary_abi_toolchain = | 325 android_secondary_abi_toolchain = |
322 "//build/toolchain/android:${android_secondary_abi_cpu}" | 326 "//build/toolchain/android:${android_secondary_abi_cpu}" |
323 } | 327 } |
324 } | 328 } |
325 } | 329 } |
OLD | NEW |