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

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

Issue 1237983004: Revert of Make instrumentation test dependency on a support APK explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.
1809 # final_apk_path: Path to final built apk. Default is 1806 # final_apk_path: Path to final built apk. Default is
1810 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name. 1807 # $root_out_dir/apks/$apk_name.apk. Setting this will override apk_name.
1811 # native_libs: List paths of native libraries to include in this apk. If these 1808 # native_libs: List paths of native libraries to include in this apk. If these
1812 # libraries depend on other shared_library targets, those dependencies will 1809 # libraries depend on other shared_library targets, those dependencies will
1813 # also be included in the apk. 1810 # also be included in the apk.
1814 # apk_under_test: The apk being tested. 1811 # apk_under_test: The apk being tested.
1815 # isolate_file: Isolate file containing the list of test data dependencies. 1812 # isolate_file: Isolate file containing the list of test data dependencies.
1816 # 1813 #
1817 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in 1814 # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
1818 # this directory will be included in the library. This is only supported to 1815 # this directory will be included in the library. This is only supported to
(...skipping 19 matching lines...) Expand all
1838 1835
1839 if (defined(invoker.apk_name)) { 1836 if (defined(invoker.apk_name)) {
1840 test_runner_data_dep = [ ":${_template_name}__test_runner_script" ] 1837 test_runner_data_dep = [ ":${_template_name}__test_runner_script" ]
1841 test_runner_script("${_template_name}__test_runner_script") { 1838 test_runner_script("${_template_name}__test_runner_script") {
1842 test_name = invoker.target_name 1839 test_name = invoker.target_name
1843 test_type = "instrumentation" 1840 test_type = "instrumentation"
1844 test_apk = invoker.apk_name 1841 test_apk = invoker.apk_name
1845 if (defined(invoker.isolate_file)) { 1842 if (defined(invoker.isolate_file)) {
1846 isolate_file = invoker.isolate_file 1843 isolate_file = invoker.isolate_file
1847 } 1844 }
1848 if (defined(invoker.support_apk_path)) {
1849 support_apk_path = invoker.support_apk_path
1850 }
1851 } 1845 }
1852 } 1846 }
1853 1847
1854 android_apk(target_name) { 1848 android_apk(target_name) {
1855 if (defined(invoker.android_manifest)) { 1849 if (defined(invoker.android_manifest)) {
1856 android_manifest = invoker.android_manifest 1850 android_manifest = invoker.android_manifest
1857 } 1851 }
1858 data_deps = [ 1852 data_deps = [
1859 "//testing/android/driver:driver_apk", 1853 "//testing/android/driver:driver_apk",
1860 "//tools/android/forwarder2", 1854 "//tools/android/forwarder2",
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2217 template("uiautomator_test") { 2211 template("uiautomator_test") {
2218 set_sources_assignment_filter([]) 2212 set_sources_assignment_filter([])
2219 if (defined(invoker.testonly)) { 2213 if (defined(invoker.testonly)) {
2220 testonly = invoker.testonly 2214 testonly = invoker.testonly
2221 } 2215 }
2222 assert(target_name != "") 2216 assert(target_name != "")
2223 assert(invoker.deps != [] || true) 2217 assert(invoker.deps != [] || true)
2224 group(target_name) { 2218 group(target_name) {
2225 } 2219 }
2226 } 2220 }
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