| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 if (defined(invoker.proguard_enabled) && invoker.proguard_enabled) { | 298 if (defined(invoker.proguard_enabled) && invoker.proguard_enabled) { |
| 299 args += [ | 299 args += [ |
| 300 "--proguard-enabled", | 300 "--proguard-enabled", |
| 301 "--proguard-info", | 301 "--proguard-info", |
| 302 rebase_path(invoker.proguard_info, root_build_dir), | 302 rebase_path(invoker.proguard_info, root_build_dir), |
| 303 ] | 303 ] |
| 304 } | 304 } |
| 305 | 305 |
| 306 if (defined(invoker.apk_path)) { | 306 if (defined(invoker.apk_path)) { |
| 307 _rebased_apk_path = rebase_path(invoker.apk_path, root_build_dir) | 307 _rebased_apk_path = rebase_path(invoker.apk_path, root_build_dir) |
| 308 _rebased_apk_for_test_path = _rebased_apk_path |
| 309 if (defined(invoker.apk_for_test_path)) { |
| 310 _rebased_apk_for_test_path = |
| 311 rebase_path(invoker.apk_for_test_path, root_build_dir) |
| 312 } |
| 308 _rebased_incremental_apk_path = | 313 _rebased_incremental_apk_path = |
| 309 rebase_path(invoker.incremental_apk_path, root_build_dir) | 314 rebase_path(invoker.incremental_apk_path, root_build_dir) |
| 310 _rebased_incremental_install_script_path = | 315 _rebased_incremental_install_script_path = |
| 311 rebase_path(invoker.incremental_install_script_path, root_build_dir) | 316 rebase_path(invoker.incremental_install_script_path, root_build_dir) |
| 312 args += [ "--apk-path=$_rebased_apk_path" ] | 317 args += [ "--apk-path=$_rebased_apk_path" ] |
| 318 args += [ "--apk-for-test-path=$_rebased_apk_for_test_path" ] |
| 313 args += [ "--incremental-apk-path=$_rebased_incremental_apk_path" ] | 319 args += [ "--incremental-apk-path=$_rebased_incremental_apk_path" ] |
| 314 args += [ "--incremental-install-script-path=$_rebased_incremental_insta
ll_script_path" ] | 320 args += [ "--incremental-install-script-path=$_rebased_incremental_insta
ll_script_path" ] |
| 315 } | 321 } |
| 316 } | 322 } |
| 317 | 323 |
| 318 if (defined(invoker.java_sources_file)) { | 324 if (defined(invoker.java_sources_file)) { |
| 319 args += [ | 325 args += [ |
| 320 "--java-sources-file", | 326 "--java-sources-file", |
| 321 rebase_path(invoker.java_sources_file, root_build_dir), | 327 rebase_path(invoker.java_sources_file, root_build_dir), |
| 322 ] | 328 ] |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 _test_apk = "@FileArg($_rebased_apk_build_config:deps_info:incremental_a
pk_path)" | 454 _test_apk = "@FileArg($_rebased_apk_build_config:deps_info:incremental_a
pk_path)" |
| 449 } | 455 } |
| 450 test_runner_args += [ "--test-apk=$_test_apk" ] | 456 test_runner_args += [ "--test-apk=$_test_apk" ] |
| 451 if (defined(invoker.apk_under_test)) { | 457 if (defined(invoker.apk_under_test)) { |
| 452 deps += [ "${invoker.apk_under_test}__build_config" ] | 458 deps += [ "${invoker.apk_under_test}__build_config" ] |
| 453 _apk_under_test_build_config = | 459 _apk_under_test_build_config = |
| 454 get_label_info(invoker.apk_under_test, "target_gen_dir") + "/" + | 460 get_label_info(invoker.apk_under_test, "target_gen_dir") + "/" + |
| 455 get_label_info(invoker.apk_under_test, "name") + ".build_config" | 461 get_label_info(invoker.apk_under_test, "name") + ".build_config" |
| 456 _rebased_apk_under_test_build_config = | 462 _rebased_apk_under_test_build_config = |
| 457 rebase_path(_apk_under_test_build_config, root_build_dir) | 463 rebase_path(_apk_under_test_build_config, root_build_dir) |
| 458 _apk_under_test = | 464 _apk_under_test = "@FileArg($_rebased_apk_under_test_build_config:deps_i
nfo:apk_for_test_path)" |
| 459 "@FileArg($_rebased_apk_under_test_build_config:deps_info:apk_path)" | |
| 460 if (_incremental_install) { | 465 if (_incremental_install) { |
| 461 _apk_under_test = "@FileArg($_rebased_apk_under_test_build_config:deps
_info:incremental_apk_path)" | 466 _apk_under_test = "@FileArg($_rebased_apk_under_test_build_config:deps
_info:incremental_apk_path)" |
| 462 } | 467 } |
| 463 test_runner_args += [ "--apk-under-test=$_apk_under_test" ] | 468 test_runner_args += [ "--apk-under-test=$_apk_under_test" ] |
| 464 } | 469 } |
| 465 if (emma_coverage) { | 470 if (emma_coverage) { |
| 466 # Set a default coverage output directory (can be overridden by user | 471 # Set a default coverage output directory (can be overridden by user |
| 467 # passing the same flag). | 472 # passing the same flag). |
| 468 test_runner_args += [ | 473 test_runner_args += [ |
| 469 "--coverage-dir", | 474 "--coverage-dir", |
| (...skipping 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2535 outputs = [ | 2540 outputs = [ |
| 2536 depfile, | 2541 depfile, |
| 2537 invoker.out_manifest, | 2542 invoker.out_manifest, |
| 2538 ] | 2543 ] |
| 2539 inputs = [ | 2544 inputs = [ |
| 2540 invoker.main_manifest, | 2545 invoker.main_manifest, |
| 2541 ] | 2546 ] |
| 2542 } | 2547 } |
| 2543 } | 2548 } |
| 2544 } | 2549 } |
| OLD | NEW |