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 # Do not add any imports to non-//build directories here. | 5 # Do not add any imports to non-//build directories here. |
6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. | 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. |
7 import("//build_overrides/build.gni") | 7 import("//build_overrides/build.gni") |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 import("//build/config/dcheck_always_on.gni") | 9 import("//build/config/dcheck_always_on.gni") |
10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 "--coverage-dir", | 546 "--coverage-dir", |
547 rebase_path("$root_out_dir/coverage", root_build_dir), | 547 rebase_path("$root_out_dir/coverage", root_build_dir), |
548 ] | 548 ] |
549 } | 549 } |
550 } else if (_test_type == "junit") { | 550 } else if (_test_type == "junit") { |
551 assert(defined(invoker.test_suite)) | 551 assert(defined(invoker.test_suite)) |
552 test_runner_args += [ | 552 test_runner_args += [ |
553 "--test-suite", | 553 "--test-suite", |
554 invoker.test_suite, | 554 invoker.test_suite, |
555 ] | 555 ] |
| 556 } else if (_test_type == "linker") { |
| 557 test_runner_args += [ |
| 558 "--test-apk", |
| 559 "@FileArg($_rebased_apk_build_config:deps_info:apk_path)", |
| 560 ] |
556 } else { | 561 } else { |
557 assert(false, "Invalid test type: $_test_type.") | 562 assert(false, "Invalid test type: $_test_type.") |
558 } | 563 } |
559 | 564 |
560 if (defined(invoker.additional_apks)) { | 565 if (defined(invoker.additional_apks)) { |
561 foreach(additional_apk, invoker.additional_apks) { | 566 foreach(additional_apk, invoker.additional_apks) { |
562 deps += [ "${additional_apk}__build_config" ] | 567 deps += [ "${additional_apk}__build_config" ] |
563 _build_config = get_label_info(additional_apk, "target_gen_dir") + "/" + | 568 _build_config = get_label_info(additional_apk, "target_gen_dir") + "/" + |
564 get_label_info(additional_apk, "name") + ".build_config" | 569 get_label_info(additional_apk, "name") + ".build_config" |
565 _rebased_build_config = rebase_path(_build_config, root_build_dir) | 570 _rebased_build_config = rebase_path(_build_config, root_build_dir) |
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2815 rebase_path(root_build_dir, root_build_dir), | 2820 rebase_path(root_build_dir, root_build_dir), |
2816 "--packed-libraries-dir", | 2821 "--packed-libraries-dir", |
2817 rebase_path(_packed_libraries_dir, root_build_dir), | 2822 rebase_path(_packed_libraries_dir, root_build_dir), |
2818 "--libraries=${invoker.libraries_filearg}", | 2823 "--libraries=${invoker.libraries_filearg}", |
2819 "--filelistjson", | 2824 "--filelistjson", |
2820 rebase_path(invoker.file_list_json, root_build_dir), | 2825 rebase_path(invoker.file_list_json, root_build_dir), |
2821 ] | 2826 ] |
2822 } | 2827 } |
2823 } | 2828 } |
2824 } | 2829 } |
OLD | NEW |