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 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 } | 2042 } |
2043 foreach(e, _provider_configurations) { | 2043 foreach(e, _provider_configurations) { |
2044 args += [ "--provider-configuration=" + rebase_path(e, root_build_dir) ] | 2044 args += [ "--provider-configuration=" + rebase_path(e, root_build_dir) ] |
2045 } | 2045 } |
2046 foreach(e, _processors) { | 2046 foreach(e, _processors) { |
2047 args += [ "--processor=" + e ] | 2047 args += [ "--processor=" + e ] |
2048 } | 2048 } |
2049 foreach(e, _processor_args) { | 2049 foreach(e, _processor_args) { |
2050 args += [ "--processor-arg=" + e ] | 2050 args += [ "--processor-arg=" + e ] |
2051 } | 2051 } |
2052 foreach(e, _additional_jar_files) { | 2052 foreach(file_tuple, _additional_jar_files) { |
2053 args += [ "--additional-jar-file=" + e ] | 2053 # Each element is of length two, [ path_to_file, path_to_put_in_jar ] |
| 2054 inputs += [ file_tuple[0] ] |
| 2055 args += |
| 2056 [ "--additional-jar-file=" + file_tuple[0] + ":" + file_tuple[1] ] |
2054 } | 2057 } |
2055 if (invoker.java_files != []) { | 2058 if (invoker.java_files != []) { |
2056 args += [ "@" + rebase_path(invoker.java_sources_file, root_build_dir) ] | 2059 args += [ "@" + rebase_path(invoker.java_sources_file, root_build_dir) ] |
2057 } | 2060 } |
2058 } | 2061 } |
2059 | 2062 |
2060 process_java_prebuilt(_process_prebuilt_target_name) { | 2063 process_java_prebuilt(_process_prebuilt_target_name) { |
2061 forward_variables_from(invoker, [ "jar_excluded_patterns" ]) | 2064 forward_variables_from(invoker, [ "jar_excluded_patterns" ]) |
2062 build_config = _build_config | 2065 build_config = _build_config |
2063 input_jar_path = _javac_jar_path | 2066 input_jar_path = _javac_jar_path |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2617 outputs = [ | 2620 outputs = [ |
2618 depfile, | 2621 depfile, |
2619 invoker.out_manifest, | 2622 invoker.out_manifest, |
2620 ] | 2623 ] |
2621 inputs = [ | 2624 inputs = [ |
2622 invoker.main_manifest, | 2625 invoker.main_manifest, |
2623 ] | 2626 ] |
2624 } | 2627 } |
2625 } | 2628 } |
2626 } | 2629 } |
OLD | NEW |