| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 # EMMA filter string consisting of a list of inclusion/exclusion patterns | 113 # EMMA filter string consisting of a list of inclusion/exclusion patterns |
| 114 # separated with whitespace and/or comma. Only has effect if | 114 # separated with whitespace and/or comma. Only has effect if |
| 115 # emma_coverage==true | 115 # emma_coverage==true |
| 116 emma_filter = "" | 116 emma_filter = "" |
| 117 | 117 |
| 118 # Disables process isolation when building _incremental targets. | 118 # Disables process isolation when building _incremental targets. |
| 119 # Required for Android M+ due to SELinux policies (stronger sandboxing). | 119 # Required for Android M+ due to SELinux policies (stronger sandboxing). |
| 120 disable_incremental_isolated_processes = false | 120 disable_incremental_isolated_processes = false |
| 121 | 121 |
| 122 # Enables all ProGuard optimizations. These optimizations must not be | |
| 123 # enabled for instrumentation tests, since they cause code required by the | |
| 124 # tests to be removed. | |
| 125 # TODO(smaier): when buildbots get updated to set this flag, change the | |
| 126 # default to is_official_build | |
| 127 enable_all_proguard_optimizations = false | |
| 128 | |
| 129 # Speed up incremental compiles by compiling only changed files. | 122 # Speed up incremental compiles by compiling only changed files. |
| 130 enable_incremental_javac = false | 123 enable_incremental_javac = false |
| 131 | 124 |
| 132 # Speed up dexing using dx --incremental. | 125 # Speed up dexing using dx --incremental. |
| 133 enable_incremental_dx = is_java_debug | 126 enable_incremental_dx = is_java_debug |
| 134 | 127 |
| 135 # Adds intrumentation to each function. Writes a file with the order that | 128 # Adds intrumentation to each function. Writes a file with the order that |
| 136 # functions are called at startup. | 129 # functions are called at startup. |
| 137 use_order_profiling = false | 130 use_order_profiling = false |
| 138 } | 131 } |
| 139 | 132 |
| 140 # Ensuring we never have a situation where we are asking to have debug java | |
| 141 # on alongside all ProGuard optimizations turned on, as these are mutually | |
| 142 # exclusive. | |
| 143 assert(!(is_java_debug && enable_all_proguard_optimizations)) | |
| 144 | |
| 145 # Neither of these should ever be used for release builds since they are | 133 # Neither of these should ever be used for release builds since they are |
| 146 # somewhat experimental and dx --incremental is known to not produce | 134 # somewhat experimental and dx --incremental is known to not produce |
| 147 # byte-for-byte identical output. | 135 # byte-for-byte identical output. |
| 148 assert(!(enable_incremental_dx && !is_java_debug)) | 136 assert(!(enable_incremental_dx && !is_java_debug)) |
| 149 assert(!(enable_incremental_javac && !is_java_debug)) | 137 assert(!(enable_incremental_javac && !is_java_debug)) |
| 150 | 138 |
| 151 # Host stuff ----------------------------------------------------------------- | 139 # Host stuff ----------------------------------------------------------------- |
| 152 | 140 |
| 153 # Defines the name the Android build gives to the current host CPU | 141 # Defines the name the Android build gives to the current host CPU |
| 154 # architecture, which is different than the names GN uses. | 142 # architecture, which is different than the names GN uses. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 if (defined(android_secondary_abi_cpu)) { | 305 if (defined(android_secondary_abi_cpu)) { |
| 318 if (is_clang) { | 306 if (is_clang) { |
| 319 android_secondary_abi_toolchain = | 307 android_secondary_abi_toolchain = |
| 320 "//build/toolchain/android:clang_${android_secondary_abi_cpu}" | 308 "//build/toolchain/android:clang_${android_secondary_abi_cpu}" |
| 321 } else { | 309 } else { |
| 322 android_secondary_abi_toolchain = | 310 android_secondary_abi_toolchain = |
| 323 "//build/toolchain/android:${android_secondary_abi_cpu}" | 311 "//build/toolchain/android:${android_secondary_abi_cpu}" |
| 324 } | 312 } |
| 325 } | 313 } |
| 326 } | 314 } |
| OLD | NEW |