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

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: Rebase Created 5 years, 5 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
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1796 # after the .apk is). 1796 # after the .apk is).
1797 # deps: List of dependencies. All Android java resources and libraries in the 1797 # deps: List of dependencies. All Android java resources and libraries in the
1798 # "transitive closure" of these dependencies will be included in the apk. 1798 # "transitive closure" of these dependencies will be included in the apk.
1799 # Note: this "transitive closure" actually only includes such targets if 1799 # Note: this "transitive closure" actually only includes such targets if
1800 # they are depended on through android_library or android_resources targets 1800 # they are depended on through android_library or android_resources targets
1801 # (and so not through builtin targets like 'action', 'group', etc). 1801 # (and so not through builtin targets like 'action', 'group', etc).
1802 # java_files: List of .java files to include in the apk. 1802 # java_files: List of .java files to include in the apk.
1803 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars 1803 # srcjar_deps: List of srcjar dependencies. The .java files in the srcjars
1804 # will be added to java_files and be included in this apk. 1804 # will be added to java_files and be included in this apk.
1805 # apk_name: Name for final apk. 1805 # apk_name: Name for final apk.
1806 # support_apk_path: Path to a support apk. If present, the test runner script
1807 # will install it on the device before running the instrumentation tests.
1808 # Should be a path relative to the src root.
1806 # final_apk_path: Path to final built apk. Default is 1809 # final_apk_path: Path to final built apk. Default is
1807 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. 1810 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name.
1808 # native_libs: List paths of native libraries to include in this apk. If these 1811 # native_libs: List paths of native libraries to include in this apk. If these
1809 # libraries depend on other shared_library targets, those dependencies will 1812 # libraries depend on other shared_library targets, those dependencies will
1810 # also be included in the apk. 1813 # also be included in the apk.
1811 # apk_under_test: The apk being tested. 1814 # apk_under_test: The apk being tested.
1812 # isolate_file: Isolate file containing the list of test data dependencies. 1815 # isolate_file: Isolate file containing the list of test data dependencies.
1813 # 1816 #
1814 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 1817 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
1815 # this directory will be included in the library. This is only supported to 1818 # this directory will be included in the library. This is only supported to
(...skipping 19 matching lines...) Expand all
1835 1838
1836 if (defined(invoker.apk_name)) { 1839 if (defined(invoker.apk_name)) {
1837 test_runner_data_dep = [ ":${_template_name}__test_runner_script" ] 1840 test_runner_data_dep = [ ":${_template_name}__test_runner_script" ]
1838 test_runner_script("${_template_name}__test_runner_script") { 1841 test_runner_script("${_template_name}__test_runner_script") {
1839 test_name = invoker.target_name 1842 test_name = invoker.target_name
1840 test_type = "instrumentation" 1843 test_type = "instrumentation"
1841 test_apk = invoker.apk_name 1844 test_apk = invoker.apk_name
1842 if (defined(invoker.isolate_file)) { 1845 if (defined(invoker.isolate_file)) {
1843 isolate_file = invoker.isolate_file 1846 isolate_file = invoker.isolate_file
1844 } 1847 }
1848 if (defined(invoker.support_apk_path)) {
1849 support_apk_path = invoker.support_apk_path
1850 }
1845 } 1851 }
1846 } 1852 }
1847 1853
1848 android_apk(target_name) { 1854 android_apk(target_name) {
1849 if (defined(invoker.android_manifest)) { 1855 if (defined(invoker.android_manifest)) {
1850 android_manifest = invoker.android_manifest 1856 android_manifest = invoker.android_manifest
1851 } 1857 }
1852 data_deps = [ 1858 data_deps = [
1853 "//testing/android/driver:driver_apk", 1859 "//testing/android/driver:driver_apk",
1854 "//tools/android/forwarder2", 1860 "//tools/android/forwarder2",
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 template("uiautomator_test") { 2217 template("uiautomator_test") {
2212 set_sources_assignment_filter([]) 2218 set_sources_assignment_filter([])
2213 if (defined(invoker.testonly)) { 2219 if (defined(invoker.testonly)) {
2214 testonly = invoker.testonly 2220 testonly = invoker.testonly
2215 } 2221 }
2216 assert(target_name != "") 2222 assert(target_name != "")
2217 assert(invoker.deps != [] || true) 2223 assert(invoker.deps != [] || true)
2218 group(target_name) { 2224 group(target_name) {
2219 } 2225 }
2220 } 2226 }
OLDNEW
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698