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 | 6 |
7 assert(is_android) | 7 assert(is_android) |
8 | 8 |
9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) | 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) |
10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) | 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 build_config = invoker.build_config | 79 build_config = invoker.build_config |
80 | 80 |
81 action(target_name) { | 81 action(target_name) { |
82 script = "//build/android/findbugs_diff.py" | 82 script = "//build/android/findbugs_diff.py" |
83 depfile = "$target_gen_dir/$target_name.d" | 83 depfile = "$target_gen_dir/$target_name.d" |
84 result_path = "$target_gen_dir/$target_name/result.xml" | 84 result_path = "$target_gen_dir/$target_name/result.xml" |
85 exclusions_file = "//build/android/findbugs_filter/findbugs_exclude.xml" | 85 exclusions_file = "//build/android/findbugs_filter/findbugs_exclude.xml" |
86 | 86 |
87 rebased_build_config = rebase_path(build_config, root_build_dir) | 87 rebased_build_config = rebase_path(build_config, root_build_dir) |
88 | 88 |
| 89 if (defined(invoker.deps)) { |
| 90 deps = invoker.deps |
| 91 } |
| 92 |
| 93 if (defined(invoker.testonly)) { |
| 94 testonly = invoker.testonly |
| 95 } |
| 96 |
89 inputs = [ | 97 inputs = [ |
90 "//build/android/pylib/utils/findbugs.py", | 98 "//build/android/pylib/utils/findbugs.py", |
91 exclusions_file, | 99 exclusions_file, |
92 jar_path, | 100 jar_path, |
93 ] | 101 ] |
94 | 102 |
95 outputs = [ | 103 outputs = [ |
96 depfile, | 104 depfile, |
97 result_path, | 105 result_path, |
98 ] | 106 ] |
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 ] | 1510 ] |
1503 args = [ | 1511 args = [ |
1504 "--depfile", | 1512 "--depfile", |
1505 rebase_path(depfile, root_build_dir), | 1513 rebase_path(depfile, root_build_dir), |
1506 "--script-output-path", | 1514 "--script-output-path", |
1507 rebase_path(generated_script, root_build_dir), | 1515 rebase_path(generated_script, root_build_dir), |
1508 ] | 1516 ] |
1509 args += test_runner_args | 1517 args += test_runner_args |
1510 } | 1518 } |
1511 } | 1519 } |
OLD | NEW |