| 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 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1792 ]) | 1792 ]) |
| 1793 jar_path = _jar_path | 1793 jar_path = _jar_path |
| 1794 build_config = _build_config | 1794 build_config = _build_config |
| 1795 java_files = _java_files | 1795 java_files = _java_files |
| 1796 srcjar_deps = _srcjar_deps | 1796 srcjar_deps = _srcjar_deps |
| 1797 srcjars = _srcjars | 1797 srcjars = _srcjars |
| 1798 chromium_code = _chromium_code | 1798 chromium_code = _chromium_code |
| 1799 supports_android = _supports_android | 1799 supports_android = _supports_android |
| 1800 emma_instrument = _emma_instrument | 1800 emma_instrument = _emma_instrument |
| 1801 deps = build_config_deps | 1801 deps = build_config_deps |
| 1802 if (defined(invoker.java_deps)) { |
| 1803 deps += invoker.java_deps |
| 1804 } |
| 1802 } | 1805 } |
| 1803 | 1806 |
| 1804 if (defined(invoker.main_class)) { | 1807 if (defined(invoker.main_class)) { |
| 1805 # Targets might use the generated script while building, so make it a dep | 1808 # Targets might use the generated script while building, so make it a dep |
| 1806 # rather than a data_dep. | 1809 # rather than a data_dep. |
| 1807 _final_deps += [ ":${_template_name}__java_binary_script" ] | 1810 _final_deps += [ ":${_template_name}__java_binary_script" ] |
| 1808 java_binary_script("${_template_name}__java_binary_script") { | 1811 java_binary_script("${_template_name}__java_binary_script") { |
| 1809 forward_variables_from(invoker, | 1812 forward_variables_from(invoker, |
| 1810 [ | 1813 [ |
| 1811 "bootclasspath", | 1814 "bootclasspath", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1828 _has_lint_target = true | 1831 _has_lint_target = true |
| 1829 android_lint("${_template_name}__lint") { | 1832 android_lint("${_template_name}__lint") { |
| 1830 android_manifest = _android_manifest | 1833 android_manifest = _android_manifest |
| 1831 build_config = _build_config | 1834 build_config = _build_config |
| 1832 jar_path = _jar_path | 1835 jar_path = _jar_path |
| 1833 java_files = _java_files | 1836 java_files = _java_files |
| 1834 deps = build_config_deps + [ ":$_compile_java_target" ] | 1837 deps = build_config_deps + [ ":$_compile_java_target" ] |
| 1835 if (defined(invoker.deps)) { | 1838 if (defined(invoker.deps)) { |
| 1836 deps += invoker.deps | 1839 deps += invoker.deps |
| 1837 } | 1840 } |
| 1841 if (defined(invoker.java_deps)) { |
| 1842 deps += invoker.java_deps |
| 1843 } |
| 1838 } | 1844 } |
| 1839 | 1845 |
| 1840 if (_run_findbugs) { | 1846 if (_run_findbugs) { |
| 1841 findbugs("${_template_name}__findbugs") { | 1847 findbugs("${_template_name}__findbugs") { |
| 1842 build_config = _build_config | 1848 build_config = _build_config |
| 1843 jar_path = _jar_path | 1849 jar_path = _jar_path |
| 1844 deps = build_config_deps + [ ":$_compile_java_target" ] | 1850 deps = build_config_deps + [ ":$_compile_java_target" ] |
| 1845 } | 1851 } |
| 1846 } | 1852 } |
| 1847 | 1853 |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2321 | 2327 |
| 2322 args = [ | 2328 args = [ |
| 2323 "--depfile", | 2329 "--depfile", |
| 2324 rebase_path(depfile, root_build_dir), | 2330 rebase_path(depfile, root_build_dir), |
| 2325 "--script-output-path", | 2331 "--script-output-path", |
| 2326 rebase_path(generated_script, root_build_dir), | 2332 rebase_path(generated_script, root_build_dir), |
| 2327 ] | 2333 ] |
| 2328 args += test_runner_args | 2334 args += test_runner_args |
| 2329 } | 2335 } |
| 2330 } | 2336 } |
| OLD | NEW |