| 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 import("//build/config/zip.gni") | 7 import("//build/config/zip.gni") |
| 8 import("//third_party/ijar/ijar.gni") | 8 import("//third_party/ijar/ijar.gni") |
| 9 | 9 |
| 10 assert(is_android) | 10 assert(is_android) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 rebase_path(invoker.android_manifest, root_build_dir), | 68 rebase_path(invoker.android_manifest, root_build_dir), |
| 69 "--product-dir=.", | 69 "--product-dir=.", |
| 70 "--processed-config-path", | 70 "--processed-config-path", |
| 71 rebase_path(_config_path, root_build_dir), | 71 rebase_path(_config_path, root_build_dir), |
| 72 "--result-path", | 72 "--result-path", |
| 73 rebase_path(_result_path, root_build_dir), | 73 rebase_path(_result_path, root_build_dir), |
| 74 "--enable", | 74 "--enable", |
| 75 ] | 75 ] |
| 76 | 76 |
| 77 if (defined(invoker.create_cache) && invoker.create_cache) { | 77 if (defined(invoker.create_cache) && invoker.create_cache) { |
| 78 args += [ | 78 args += [ "--silent" ] |
| 79 "--create-cache", | |
| 80 "--silent", | |
| 81 ] | |
| 82 } else { | 79 } else { |
| 83 inputs += [ invoker.jar_path ] + invoker.java_files | 80 inputs += [ invoker.jar_path ] + invoker.java_files |
| 84 deps += [ "//build/android:prepare_android_lint_cache" ] | 81 deps += [ "//build/android:prepare_android_lint_cache" ] |
| 85 _rebased_java_files = rebase_path(invoker.java_files, root_build_dir) | 82 _rebased_java_files = rebase_path(invoker.java_files, root_build_dir) |
| 86 args += [ | 83 args += [ |
| 87 "--jar-path", | 84 "--jar-path", |
| 88 rebase_path(invoker.jar_path, root_build_dir), | 85 rebase_path(invoker.jar_path, root_build_dir), |
| 89 "--java-files=$_rebased_java_files", | 86 "--java-files=$_rebased_java_files", |
| 87 "--can-fail-build", |
| 90 ] | 88 ] |
| 91 } | 89 } |
| 92 } | 90 } |
| 93 } | 91 } |
| 94 | 92 |
| 95 template("proguard") { | 93 template("proguard") { |
| 96 action(target_name) { | 94 action(target_name) { |
| 97 set_sources_assignment_filter([]) | 95 set_sources_assignment_filter([]) |
| 98 forward_variables_from(invoker, | 96 forward_variables_from(invoker, |
| 99 [ | 97 [ |
| (...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2175 ] | 2173 ] |
| 2176 args = [ | 2174 args = [ |
| 2177 "--depfile", | 2175 "--depfile", |
| 2178 rebase_path(depfile, root_build_dir), | 2176 rebase_path(depfile, root_build_dir), |
| 2179 "--script-output-path", | 2177 "--script-output-path", |
| 2180 rebase_path(generated_script, root_build_dir), | 2178 rebase_path(generated_script, root_build_dir), |
| 2181 ] | 2179 ] |
| 2182 args += test_runner_args | 2180 args += test_runner_args |
| 2183 } | 2181 } |
| 2184 } | 2182 } |
| OLD | NEW |