| 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("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
| 8 import("//third_party/android_platform/config.gni") | 8 import("//third_party/android_platform/config.gni") |
| 9 import("//tools/grit/grit_rule.gni") | 9 import("//tools/grit/grit_rule.gni") |
| 10 | 10 |
| (...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1792 # after the .apk is). | 1792 # after the .apk is). |
| 1793 # deps: List of dependencies. All Android java resources and libraries in the | 1793 # deps: List of dependencies. All Android java resources and libraries in the |
| 1794 # "transitive closure" of these dependencies will be included in the apk. | 1794 # "transitive closure" of these dependencies will be included in the apk. |
| 1795 # Note: this "transitive closure" actually only includes such targets if | 1795 # Note: this "transitive closure" actually only includes such targets if |
| 1796 # they are depended on through android_library or android_resources targets | 1796 # they are depended on through android_library or android_resources targets |
| 1797 # (and so not through builtin targets like 'action', 'group', etc). | 1797 # (and so not through builtin targets like 'action', 'group', etc). |
| 1798 # java_files: List of .java files to include in the apk. | 1798 # java_files: List of .java files to include in the apk. |
| 1799 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars | 1799 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars |
| 1800 # will be added to java_files and be included in this apk. | 1800 # will be added to java_files and be included in this apk. |
| 1801 # apk_name: Name for final apk. | 1801 # apk_name: Name for final apk. |
| 1802 # support_apk_path: Path to a support apk. If present, the test runner script |
| 1803 # will install it on the device before running the instrumentation tests. |
| 1802 # final_apk_path: Path to final built apk. Default is | 1804 # final_apk_path: Path to final built apk. Default is |
| 1803 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. | 1805 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. |
| 1804 # native_libs: List paths of native libraries to include in this apk. If these | 1806 # native_libs: List paths of native libraries to include in this apk. If these |
| 1805 # libraries depend on other shared_library targets, those dependencies will | 1807 # libraries depend on other shared_library targets, those dependencies will |
| 1806 # also be included in the apk. | 1808 # also be included in the apk. |
| 1807 # apk_under_test: The apk being tested. | 1809 # apk_under_test: The apk being tested. |
| 1808 # isolate_file: Isolate file containing the list of test data dependencies. | 1810 # isolate_file: Isolate file containing the list of test data dependencies. |
| 1809 # | 1811 # |
| 1810 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in | 1812 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in |
| 1811 # this directory will be included in the library. This is only supported to | 1813 # this directory will be included in the library. This is only supported to |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1831 | 1833 |
| 1832 if (defined(invoker.apk_name)) { | 1834 if (defined(invoker.apk_name)) { |
| 1833 test_runner_data_dep = [ ":${_template_name}__test_runner_script" ] | 1835 test_runner_data_dep = [ ":${_template_name}__test_runner_script" ] |
| 1834 test_runner_script("${_template_name}__test_runner_script") { | 1836 test_runner_script("${_template_name}__test_runner_script") { |
| 1835 test_name = invoker.target_name | 1837 test_name = invoker.target_name |
| 1836 test_type = "instrumentation" | 1838 test_type = "instrumentation" |
| 1837 test_apk = invoker.apk_name | 1839 test_apk = invoker.apk_name |
| 1838 if (defined(invoker.isolate_file)) { | 1840 if (defined(invoker.isolate_file)) { |
| 1839 isolate_file = invoker.isolate_file | 1841 isolate_file = invoker.isolate_file |
| 1840 } | 1842 } |
| 1843 if (defined(invoker.support_apk_path)) { |
| 1844 support_apk_path = invoker.support_apk_path |
| 1845 } |
| 1841 } | 1846 } |
| 1842 } | 1847 } |
| 1843 | 1848 |
| 1844 android_apk(target_name) { | 1849 android_apk(target_name) { |
| 1845 if (defined(invoker.android_manifest)) { | 1850 if (defined(invoker.android_manifest)) { |
| 1846 android_manifest = invoker.android_manifest | 1851 android_manifest = invoker.android_manifest |
| 1847 } | 1852 } |
| 1848 data_deps = [ | 1853 data_deps = [ |
| 1849 "//testing/android/driver:driver_apk", | 1854 "//testing/android/driver:driver_apk", |
| 1850 "//tools/android/forwarder2", | 1855 "//tools/android/forwarder2", |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2207 template("uiautomator_test") { | 2212 template("uiautomator_test") { |
| 2208 set_sources_assignment_filter([]) | 2213 set_sources_assignment_filter([]) |
| 2209 if (defined(invoker.testonly)) { | 2214 if (defined(invoker.testonly)) { |
| 2210 testonly = invoker.testonly | 2215 testonly = invoker.testonly |
| 2211 } | 2216 } |
| 2212 assert(target_name != "") | 2217 assert(target_name != "") |
| 2213 assert(invoker.deps != [] || true) | 2218 assert(invoker.deps != [] || true) |
| 2214 group(target_name) { | 2219 group(target_name) { |
| 2215 } | 2220 } |
| 2216 } | 2221 } |
| OLD | NEW |