| 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 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1823 | 1823 |
| 1824 _provider_configurations = [] | 1824 _provider_configurations = [] |
| 1825 if (defined(invoker.provider_configurations)) { | 1825 if (defined(invoker.provider_configurations)) { |
| 1826 _provider_configurations = invoker.provider_configurations | 1826 _provider_configurations = invoker.provider_configurations |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 _processors = [] | 1829 _processors = [] |
| 1830 _enable_interface_jars_javac = true | 1830 _enable_interface_jars_javac = true |
| 1831 if (defined(invoker.processors_javac)) { | 1831 if (defined(invoker.processors_javac)) { |
| 1832 _processors = invoker.processors_javac | 1832 _processors = invoker.processors_javac |
| 1833 _enable_iterface_jars_javac = _processors == [] | 1833 _enable_interface_jars_javac = _processors == [] |
| 1834 } | 1834 } |
| 1835 | 1835 |
| 1836 _processor_args = [] | 1836 _processor_args = [] |
| 1837 if (defined(invoker.processor_args_javac)) { | 1837 if (defined(invoker.processor_args_javac)) { |
| 1838 _processor_args = invoker.processor_args_javac | 1838 _processor_args = invoker.processor_args_javac |
| 1839 } | 1839 } |
| 1840 | 1840 |
| 1841 _additional_jar_files = [] |
| 1842 if (defined(invoker.additional_jar_files)) { |
| 1843 _additional_jar_files = invoker.additional_jar_files |
| 1844 } |
| 1845 |
| 1841 if (defined(invoker.enable_incremental_javac_override)) { | 1846 if (defined(invoker.enable_incremental_javac_override)) { |
| 1842 # Use invoker-specified override. | 1847 # Use invoker-specified override. |
| 1843 _enable_incremental_javac = invoker.enable_incremental_javac_override | 1848 _enable_incremental_javac = invoker.enable_incremental_javac_override |
| 1844 } else { | 1849 } else { |
| 1845 # Default to build arg if not overridden. | 1850 # Default to build arg if not overridden. |
| 1846 _enable_incremental_javac = enable_incremental_javac | 1851 _enable_incremental_javac = enable_incremental_javac |
| 1847 } | 1852 } |
| 1848 | 1853 |
| 1849 _manifest_entries = [] | 1854 _manifest_entries = [] |
| 1850 if (defined(invoker.manifest_entries)) { | 1855 if (defined(invoker.manifest_entries)) { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1963 } | 1968 } |
| 1964 foreach(e, _provider_configurations) { | 1969 foreach(e, _provider_configurations) { |
| 1965 args += [ "--provider-configuration=" + rebase_path(e, root_build_dir) ] | 1970 args += [ "--provider-configuration=" + rebase_path(e, root_build_dir) ] |
| 1966 } | 1971 } |
| 1967 foreach(e, _processors) { | 1972 foreach(e, _processors) { |
| 1968 args += [ "--processor=" + e ] | 1973 args += [ "--processor=" + e ] |
| 1969 } | 1974 } |
| 1970 foreach(e, _processor_args) { | 1975 foreach(e, _processor_args) { |
| 1971 args += [ "--processor-arg=" + e ] | 1976 args += [ "--processor-arg=" + e ] |
| 1972 } | 1977 } |
| 1978 foreach(e, _additional_jar_files) { |
| 1979 args += [ "--additional-jar-file=" + e ] |
| 1980 } |
| 1973 if (invoker.java_files != []) { | 1981 if (invoker.java_files != []) { |
| 1974 args += [ "@" + rebase_path(invoker.java_sources_file, root_build_dir) ] | 1982 args += [ "@" + rebase_path(invoker.java_sources_file, root_build_dir) ] |
| 1975 } | 1983 } |
| 1976 } | 1984 } |
| 1977 | 1985 |
| 1978 process_java_prebuilt(_process_prebuilt_target_name) { | 1986 process_java_prebuilt(_process_prebuilt_target_name) { |
| 1979 forward_variables_from(invoker, [ "jar_excluded_patterns" ]) | 1987 forward_variables_from(invoker, [ "jar_excluded_patterns" ]) |
| 1980 build_config = _build_config | 1988 build_config = _build_config |
| 1981 input_jar_path = _javac_jar_path | 1989 input_jar_path = _javac_jar_path |
| 1982 output_jar_path = _process_prebuilt_jar_path | 1990 output_jar_path = _process_prebuilt_jar_path |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2171 _srcjars = invoker.srcjars | 2179 _srcjars = invoker.srcjars |
| 2172 } | 2180 } |
| 2173 | 2181 |
| 2174 assert(_java_files != [] || _srcjar_deps != [] || _srcjars != []) | 2182 assert(_java_files != [] || _srcjar_deps != [] || _srcjars != []) |
| 2175 | 2183 |
| 2176 _compile_java_target = "${_template_name}__compile_java" | 2184 _compile_java_target = "${_template_name}__compile_java" |
| 2177 _final_deps += [ ":$_compile_java_target" ] | 2185 _final_deps += [ ":$_compile_java_target" ] |
| 2178 compile_java(_compile_java_target) { | 2186 compile_java(_compile_java_target) { |
| 2179 forward_variables_from(invoker, | 2187 forward_variables_from(invoker, |
| 2180 [ | 2188 [ |
| 2189 "additional_jar_files", |
| 2181 "alternative_android_sdk_ijar", | 2190 "alternative_android_sdk_ijar", |
| 2182 "alternative_android_sdk_ijar_dep", | 2191 "alternative_android_sdk_ijar_dep", |
| 2183 "dist_jar_path", | 2192 "dist_jar_path", |
| 2184 "enable_errorprone", | 2193 "enable_errorprone", |
| 2185 "enable_incremental_javac_override", | 2194 "enable_incremental_javac_override", |
| 2186 "input_jars_paths", | 2195 "input_jars_paths", |
| 2187 "jar_excluded_patterns", | 2196 "jar_excluded_patterns", |
| 2188 "manifest_entries", | 2197 "manifest_entries", |
| 2189 "processors_javac", | 2198 "processors_javac", |
| 2190 "processor_args_javac", | 2199 "processor_args_javac", |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2521 outputs = [ | 2530 outputs = [ |
| 2522 depfile, | 2531 depfile, |
| 2523 invoker.out_manifest, | 2532 invoker.out_manifest, |
| 2524 ] | 2533 ] |
| 2525 inputs = [ | 2534 inputs = [ |
| 2526 invoker.main_manifest, | 2535 invoker.main_manifest, |
| 2527 ] | 2536 ] |
| 2528 } | 2537 } |
| 2529 } | 2538 } |
| 2530 } | 2539 } |
| OLD | NEW |