Chromium Code Reviews| 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 | 7 |
| 8 assert(is_android) | 8 assert(is_android) |
| 9 | 9 |
| 10 # These identify targets that have .build_config files (except for android_apk, | 10 # These identify targets that have .build_config files (except for android_apk, |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 deps += [ "${invoker.apk_under_test}__build_config" ] | 218 deps += [ "${invoker.apk_under_test}__build_config" ] |
| 219 apk_under_test_gen_dir = | 219 apk_under_test_gen_dir = |
| 220 get_label_info(invoker.apk_under_test, "target_gen_dir") | 220 get_label_info(invoker.apk_under_test, "target_gen_dir") |
| 221 apk_under_test_name = get_label_info(invoker.apk_under_test, "name") | 221 apk_under_test_name = get_label_info(invoker.apk_under_test, "name") |
| 222 apk_under_test_config = | 222 apk_under_test_config = |
| 223 "$apk_under_test_gen_dir/$apk_under_test_name.build_config" | 223 "$apk_under_test_gen_dir/$apk_under_test_name.build_config" |
| 224 args += [ | 224 args += [ |
| 225 "--tested-apk-config", | 225 "--tested-apk-config", |
| 226 rebase_path(apk_under_test_config, root_build_dir), | 226 rebase_path(apk_under_test_config, root_build_dir), |
| 227 ] | 227 ] |
| 228 if (defined(invoker.proguard_enabled) && invoker.proguard_enabled) { | |
| 229 # If ProGuard is on, we should merge the java code of the apk under test | |
| 230 # into the test apk. This is to ensure that ProGuard doesn't optimize | |
| 231 # away any code that the tests rely on. | |
| 232 args += [ "--merge-tested-apk" ] | |
|
agrieve
2016/07/28 01:30:58
nit: write_build_config already has both proguard_
smaier
2016/07/28 15:27:19
Done.
| |
| 233 } | |
| 228 } | 234 } |
| 229 | 235 |
| 230 if (is_android_assets) { | 236 if (is_android_assets) { |
| 231 if (defined(invoker.asset_sources)) { | 237 if (defined(invoker.asset_sources)) { |
| 232 _rebased_asset_sources = | 238 _rebased_asset_sources = |
| 233 rebase_path(invoker.asset_sources, root_build_dir) | 239 rebase_path(invoker.asset_sources, root_build_dir) |
| 234 args += [ "--asset-sources=$_rebased_asset_sources" ] | 240 args += [ "--asset-sources=$_rebased_asset_sources" ] |
| 235 } | 241 } |
| 236 if (defined(invoker.asset_renaming_sources)) { | 242 if (defined(invoker.asset_renaming_sources)) { |
| 237 _rebased_asset_renaming_sources = | 243 _rebased_asset_renaming_sources = |
| (...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2561 outputs = [ | 2567 outputs = [ |
| 2562 depfile, | 2568 depfile, |
| 2563 invoker.out_manifest, | 2569 invoker.out_manifest, |
| 2564 ] | 2570 ] |
| 2565 inputs = [ | 2571 inputs = [ |
| 2566 invoker.main_manifest, | 2572 invoker.main_manifest, |
| 2567 ] | 2573 ] |
| 2568 } | 2574 } |
| 2569 } | 2575 } |
| 2570 } | 2576 } |
| OLD | NEW |