Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: build/config/android/rules.gni

Issue 1208483004: Make instrumentation test dependency on a support APK explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make paths relative to the output directory Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 # after the .apk is). 1781 # after the .apk is).
1782 # deps: List of dependencies. All Android java resources and libraries in the 1782 # deps: List of dependencies. All Android java resources and libraries in the
1783 # "transitive closure" of these dependencies will be included in the apk. 1783 # "transitive closure" of these dependencies will be included in the apk.
1784 # Note: this "transitive closure" actually only includes such targets if 1784 # Note: this "transitive closure" actually only includes such targets if
1785 # they are depended on through android_library or android_resources targets 1785 # they are depended on through android_library or android_resources targets
1786 # (and so not through builtin targets like 'action', 'group', etc). 1786 # (and so not through builtin targets like 'action', 'group', etc).
1787 # java_files: List of .java files to include in the apk. 1787 # java_files: List of .java files to include in the apk.
1788 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 1788 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
1789 # will be added to java_files and be included in this apk. 1789 # will be added to java_files and be included in this apk.
1790 # apk_name: Name for final apk. 1790 # apk_name: Name for final apk.
1791 # support_apk_name: Name of a support apk. If present, the test runner script
1792 # will install it on the device before running the instrumentation tests.
1793 # That apk will need to be generated beside the test apk.
1791 # final_apk_path: Path to final built apk. Default is 1794 # final_apk_path: Path to final built apk. Default is
1792 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. 1795 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name.
1793 # native_libs: List paths of native libraries to include in this apk. If these 1796 # native_libs: List paths of native libraries to include in this apk. If these
1794 # libraries depend on other shared_library targets, those dependencies will 1797 # libraries depend on other shared_library targets, those dependencies will
1795 # also be included in the apk. 1798 # also be included in the apk.
1796 # apk_under_test: The apk being tested. 1799 # apk_under_test: The apk being tested.
1797 # isolate_file: Isolate file containing the list of test data dependencies. 1800 # isolate_file: Isolate file containing the list of test data dependencies.
1798 # 1801 #
1799 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 1802 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
1800 # this directory will be included in the library. This is only supported to 1803 # this directory will be included in the library. This is only supported to
(...skipping 19 matching lines...) Expand all
1820 1823
1821 if (defined(invoker.apk_name)) { 1824 if (defined(invoker.apk_name)) {
1822 test_runner_data_dep = [ ":${_template_name}__test_runner_script" ] 1825 test_runner_data_dep = [ ":${_template_name}__test_runner_script" ]
1823 test_runner_script("${_template_name}__test_runner_script") { 1826 test_runner_script("${_template_name}__test_runner_script") {
1824 test_name = invoker.target_name 1827 test_name = invoker.target_name
1825 test_type = "instrumentation" 1828 test_type = "instrumentation"
1826 test_apk = invoker.apk_name 1829 test_apk = invoker.apk_name
1827 if (defined(invoker.isolate_file)) { 1830 if (defined(invoker.isolate_file)) {
1828 isolate_file = invoker.isolate_file 1831 isolate_file = invoker.isolate_file
1829 } 1832 }
1833 if (defined(invoker.support_apk_name)) {
1834 support_apk_name = invoker.support_apk_name
1835 }
1830 } 1836 }
1831 } 1837 }
1832 1838
1833 android_apk(target_name) { 1839 android_apk(target_name) {
1834 if (defined(invoker.android_manifest)) { 1840 if (defined(invoker.android_manifest)) {
1835 android_manifest = invoker.android_manifest 1841 android_manifest = invoker.android_manifest
1836 } 1842 }
1837 data_deps = [ 1843 data_deps = [
1838 "//testing/android/driver:driver_apk", 1844 "//testing/android/driver:driver_apk",
1839 "//tools/android/forwarder2", 1845 "//tools/android/forwarder2",
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 template("uiautomator_test") { 2202 template("uiautomator_test") {
2197 set_sources_assignment_filter([]) 2203 set_sources_assignment_filter([])
2198 if (defined(invoker.testonly)) { 2204 if (defined(invoker.testonly)) {
2199 testonly = invoker.testonly 2205 testonly = invoker.testonly
2200 } 2206 }
2201 assert(target_name != "") 2207 assert(target_name != "")
2202 assert(invoker.deps != [] || true) 2208 assert(invoker.deps != [] || true)
2203 group(target_name) { 2209 group(target_name) {
2204 } 2210 }
2205 } 2211 }
OLDNEW
« build/config/android/internal_rules.gni ('K') | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698