| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 # Set to true to run findbugs on JAR targets. | 89 # Set to true to run findbugs on JAR targets. |
| 90 run_findbugs = false | 90 run_findbugs = false |
| 91 | 91 |
| 92 # Set to true to enable verbose findbugs logging. This does nothing if | 92 # Set to true to enable verbose findbugs logging. This does nothing if |
| 93 # run_findbugs is false. | 93 # run_findbugs is false. |
| 94 findbugs_verbose = false | 94 findbugs_verbose = false |
| 95 | 95 |
| 96 # Enables verbose proguard output (summaries and unfiltered output). | 96 # Enables verbose proguard output (summaries and unfiltered output). |
| 97 proguard_verbose = false | 97 proguard_verbose = false |
| 98 | 98 |
| 99 # Java debug on Android. Having this on enables multidexing, and turning it |
| 100 # off will enable proguard. To access this flag from within Java code, look |
| 101 # at BuildConfig.IS_DEBUG, which is wired to this arg. |
| 102 is_java_debug = is_debug |
| 103 |
| 99 # Set to true to enable the Errorprone compiler | 104 # Set to true to enable the Errorprone compiler |
| 100 use_errorprone_java_compiler = false | 105 use_errorprone_java_compiler = false |
| 101 | 106 |
| 102 # Enables EMMA Java code coverage. Instruments classes during build to | 107 # Enables EMMA Java code coverage. Instruments classes during build to |
| 103 # produce .ec files during runtime | 108 # produce .ec files during runtime |
| 104 emma_coverage = false | 109 emma_coverage = false |
| 105 | 110 |
| 106 # EMMA filter string consisting of a list of inclusion/exclusion patterns | 111 # EMMA filter string consisting of a list of inclusion/exclusion patterns |
| 107 # separated with whitespace and/or comma. Only has effect if | 112 # separated with whitespace and/or comma. Only has effect if |
| 108 # emma_coverage==true | 113 # emma_coverage==true |
| 109 emma_filter = "" | 114 emma_filter = "" |
| 110 | 115 |
| 111 # Disables process isolation when building _incremental targets. | 116 # Disables process isolation when building _incremental targets. |
| 112 # Required for Android M+ due to SELinux policies (stronger sandboxing). | 117 # Required for Android M+ due to SELinux policies (stronger sandboxing). |
| 113 disable_incremental_isolated_processes = false | 118 disable_incremental_isolated_processes = false |
| 114 | 119 |
| 115 # Speed up incremental compiles by compiling only changed files. | 120 # Speed up incremental compiles by compiling only changed files. |
| 116 enable_incremental_javac = false | 121 enable_incremental_javac = false |
| 117 | 122 |
| 118 # Speed up dexing using dx --incremental. | 123 # Speed up dexing using dx --incremental. |
| 119 enable_incremental_dx = is_debug | 124 enable_incremental_dx = is_java_debug |
| 120 | 125 |
| 121 # Neither of these should ever be used for release builds since they are | 126 # Neither of these should ever be used for release builds since they are |
| 122 # somewhat experimental and dx --incremental is known to not produce | 127 # somewhat experimental and dx --incremental is known to not produce |
| 123 # byte-for-byte identical output. | 128 # byte-for-byte identical output. |
| 124 assert(!(enable_incremental_dx && !is_debug)) | 129 assert(!(enable_incremental_dx && !is_debug)) |
| 125 assert(!(enable_incremental_javac && !is_debug)) | 130 assert(!(enable_incremental_javac && !is_debug)) |
| 126 | 131 |
| 127 # 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 |
| 128 # functions are called at startup. | 133 # functions are called at startup. |
| 129 use_order_profiling = false | 134 use_order_profiling = false |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 } else if (current_cpu == "mips64el") { | 275 } else if (current_cpu == "mips64el") { |
| 271 android_app_abi = "mips64" | 276 android_app_abi = "mips64" |
| 272 } else { | 277 } else { |
| 273 assert(false, "Unknown Android ABI: " + current_cpu) | 278 assert(false, "Unknown Android ABI: " + current_cpu) |
| 274 } | 279 } |
| 275 | 280 |
| 276 if (android_libcpp_lib_dir == "") { | 281 if (android_libcpp_lib_dir == "") { |
| 277 android_libcpp_lib_dir = "${android_libcpp_root}/libs/${android_app_abi}" | 282 android_libcpp_lib_dir = "${android_libcpp_root}/libs/${android_app_abi}" |
| 278 } | 283 } |
| 279 } | 284 } |
| OLD | NEW |