| 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_overrides/build.gni") | 5 import("//build_overrides/build.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
| 8 | 8 |
| 9 assert(is_android) | 9 assert(is_android) |
| 10 | 10 |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 rebase_path(_filtered_jar_path, root_build_dir), | 1068 rebase_path(_filtered_jar_path, root_build_dir), |
| 1069 "--excluded-classes=$_jar_excluded_patterns", | 1069 "--excluded-classes=$_jar_excluded_patterns", |
| 1070 ] | 1070 ] |
| 1071 if (_strip_resource_classes) { | 1071 if (_strip_resource_classes) { |
| 1072 args += [ "--strip-resource-classes-for=@FileArg($_rebased_build_confi
g:javac:resource_packages)" ] | 1072 args += [ "--strip-resource-classes-for=@FileArg($_rebased_build_confi
g:javac:resource_packages)" ] |
| 1073 } | 1073 } |
| 1074 } | 1074 } |
| 1075 } | 1075 } |
| 1076 | 1076 |
| 1077 if (_proguard_preprocess) { | 1077 if (_proguard_preprocess) { |
| 1078 _proguard_config_path = invoker.proguard_config | 1078 _proguard_config_path = invoker.proguard_preprocess_config |
| 1079 proguard(_proguard_target) { | 1079 proguard(_proguard_target) { |
| 1080 if (_filter_jar) { | 1080 if (_filter_jar) { |
| 1081 _proguard_input_jar = _filtered_jar_path | 1081 _proguard_input_jar = _filtered_jar_path |
| 1082 public_deps = [ | 1082 public_deps = [ |
| 1083 ":$_filter_target", | 1083 ":$_filter_target", |
| 1084 ] | 1084 ] |
| 1085 } else { | 1085 } else { |
| 1086 _proguard_input_jar = _input_jar_path | 1086 _proguard_input_jar = _input_jar_path |
| 1087 public_deps = [] | 1087 public_deps = [] |
| 1088 } | 1088 } |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 jar_path = _jar_path | 1778 jar_path = _jar_path |
| 1779 if (_supports_android) { | 1779 if (_supports_android) { |
| 1780 dex_path = _dex_path | 1780 dex_path = _dex_path |
| 1781 } | 1781 } |
| 1782 } | 1782 } |
| 1783 | 1783 |
| 1784 process_java_prebuilt(_process_jar_target_name) { | 1784 process_java_prebuilt(_process_jar_target_name) { |
| 1785 forward_variables_from(invoker, | 1785 forward_variables_from(invoker, |
| 1786 [ | 1786 [ |
| 1787 "jar_excluded_patterns", | 1787 "jar_excluded_patterns", |
| 1788 "proguard_preprocess", |
| 1789 "proguard_preprocess_config", |
| 1788 "strip_resource_classes", | 1790 "strip_resource_classes", |
| 1789 ]) | 1791 ]) |
| 1790 | 1792 |
| 1791 visibility = [ | 1793 visibility = [ |
| 1792 ":$_ijar_target_name", | 1794 ":$_ijar_target_name", |
| 1793 ":$_template_name", | 1795 ":$_template_name", |
| 1794 ] | 1796 ] |
| 1795 if (_supports_android) { | 1797 if (_supports_android) { |
| 1796 visibility += [ ":$_dex_target_name" ] | 1798 visibility += [ ":$_dex_target_name" ] |
| 1797 } | 1799 } |
| 1798 | 1800 |
| 1799 if (defined(invoker.proguard_preprocess) && invoker.proguard_preprocess) { | 1801 # TODO(agrieve): Delete proguard_config once all usages are move to |
| 1800 proguard_preprocess = true | 1802 # proguard_preprocess_config. |
| 1801 proguard_config = invoker.proguard_config | 1803 if (defined(invoker.proguard_config)) { |
| 1804 proguard_preprocess_config = invoker.proguard_config |
| 1802 } | 1805 } |
| 1803 | 1806 |
| 1804 build_config = _build_config | 1807 build_config = _build_config |
| 1805 input_jar_path = invoker.jar_path | 1808 input_jar_path = invoker.jar_path |
| 1806 output_jar_path = _jar_path | 1809 output_jar_path = _jar_path |
| 1807 | 1810 |
| 1808 deps = [ ":$_build_config_target_name" ] + _deps + _jar_deps | 1811 deps = [ ":$_build_config_target_name" ] + _deps + _jar_deps |
| 1809 } | 1812 } |
| 1810 | 1813 |
| 1811 generate_interface_jar(_ijar_target_name) { | 1814 generate_interface_jar(_ijar_target_name) { |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2068 inputs += [ file_tuple[0] ] | 2071 inputs += [ file_tuple[0] ] |
| 2069 args += | 2072 args += |
| 2070 [ "--additional-jar-file=" + file_tuple[0] + ":" + file_tuple[1] ] | 2073 [ "--additional-jar-file=" + file_tuple[0] + ":" + file_tuple[1] ] |
| 2071 } | 2074 } |
| 2072 if (invoker.java_files != []) { | 2075 if (invoker.java_files != []) { |
| 2073 args += [ "@" + rebase_path(invoker.java_sources_file, root_build_dir) ] | 2076 args += [ "@" + rebase_path(invoker.java_sources_file, root_build_dir) ] |
| 2074 } | 2077 } |
| 2075 } | 2078 } |
| 2076 | 2079 |
| 2077 process_java_prebuilt(_process_prebuilt_target_name) { | 2080 process_java_prebuilt(_process_prebuilt_target_name) { |
| 2078 forward_variables_from(invoker, [ "jar_excluded_patterns" ]) | 2081 forward_variables_from(invoker, |
| 2082 [ |
| 2083 "jar_excluded_patterns", |
| 2084 "proguard_preprocess", |
| 2085 "proguard_preprocess_config", |
| 2086 ]) |
| 2079 build_config = _build_config | 2087 build_config = _build_config |
| 2080 input_jar_path = _javac_jar_path | 2088 input_jar_path = _javac_jar_path |
| 2081 output_jar_path = _process_prebuilt_jar_path | 2089 output_jar_path = _process_prebuilt_jar_path |
| 2082 if (defined(invoker.proguard_preprocess) && invoker.proguard_preprocess) { | 2090 |
| 2083 proguard_preprocess = invoker.proguard_preprocess | 2091 # TODO(agrieve): Delete proguard_config once all usages are move to |
| 2084 proguard_config = invoker.proguard_config | 2092 # proguard_preprocess_config. |
| 2093 if (defined(invoker.proguard_config)) { |
| 2094 proguard_preprocess_config = invoker.proguard_config |
| 2085 } | 2095 } |
| 2086 deps = [ | 2096 deps = [ |
| 2087 ":$_javac_target_name", | 2097 ":$_javac_target_name", |
| 2088 ] | 2098 ] |
| 2089 if (defined(invoker.deps)) { | 2099 if (defined(invoker.deps)) { |
| 2090 deps += invoker.deps | 2100 deps += invoker.deps |
| 2091 } | 2101 } |
| 2092 } | 2102 } |
| 2093 | 2103 |
| 2094 if (_emma_instrument) { | 2104 if (_emma_instrument) { |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 "additional_jar_files", | 2300 "additional_jar_files", |
| 2291 "alternative_android_sdk_ijar", | 2301 "alternative_android_sdk_ijar", |
| 2292 "alternative_android_sdk_ijar_dep", | 2302 "alternative_android_sdk_ijar_dep", |
| 2293 "dist_jar_path", | 2303 "dist_jar_path", |
| 2294 "enable_errorprone", | 2304 "enable_errorprone", |
| 2295 "enable_incremental_javac_override", | 2305 "enable_incremental_javac_override", |
| 2296 "jar_excluded_patterns", | 2306 "jar_excluded_patterns", |
| 2297 "manifest_entries", | 2307 "manifest_entries", |
| 2298 "processors_javac", | 2308 "processors_javac", |
| 2299 "processor_args_javac", | 2309 "processor_args_javac", |
| 2300 "proguard_config", | 2310 "proguard_preprocess_config", |
| 2301 "proguard_preprocess", | 2311 "proguard_preprocess", |
| 2302 "provider_configurations", | 2312 "provider_configurations", |
| 2303 ]) | 2313 ]) |
| 2304 jar_path = _jar_path | 2314 jar_path = _jar_path |
| 2305 build_config = _build_config | 2315 build_config = _build_config |
| 2306 java_files = _java_files | 2316 java_files = _java_files |
| 2307 if (_java_files != []) { | 2317 if (_java_files != []) { |
| 2308 java_sources_file = _java_sources_file | 2318 java_sources_file = _java_sources_file |
| 2309 } | 2319 } |
| 2310 srcjar_deps = _srcjar_deps | 2320 srcjar_deps = _srcjar_deps |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2635 outputs = [ | 2645 outputs = [ |
| 2636 depfile, | 2646 depfile, |
| 2637 invoker.out_manifest, | 2647 invoker.out_manifest, |
| 2638 ] | 2648 ] |
| 2639 inputs = [ | 2649 inputs = [ |
| 2640 invoker.main_manifest, | 2650 invoker.main_manifest, |
| 2641 ] | 2651 ] |
| 2642 } | 2652 } |
| 2643 } | 2653 } |
| 2644 } | 2654 } |
| OLD | NEW |