| Index: build/config/android/rules.gni
|
| diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni
|
| index 5c3bc24bf8d812241572bb69292335eedadaaa20..7a49a5e37aedfa62db624d321edc8880ec19ec18 100644
|
| --- a/build/config/android/rules.gni
|
| +++ b/build/config/android/rules.gni
|
| @@ -1161,6 +1161,8 @@ template("android_java_prebuilt") {
|
| # native_libs: List paths of native libraries to include in this apk. If these
|
| # libraries depend on other shared_library targets, those dependencies will
|
| # also be included in the apk.
|
| +# apk_under_test: For an instrumentation test apk, this is the target of the
|
| +# tested apk.
|
| # testonly: Marks this target as "test-only".
|
| #
|
| # DEPRECATED_java_in_dir: Directory containing java files. All .java files in
|
| @@ -1194,7 +1196,7 @@ template("android_apk") {
|
| assert(defined(invoker.final_apk_path) || defined(invoker.apk_name))
|
| gen_dir = "$target_gen_dir/$target_name"
|
| base_path = "$gen_dir/$target_name"
|
| - _build_config = "$base_path.build_config"
|
| + _build_config = "$target_gen_dir/$target_name.build_config"
|
| resources_zip_path = "$base_path.resources.zip"
|
| all_resources_zip_path = "$base_path.resources.all.zip"
|
| jar_path = "$base_path.jar"
|
| @@ -1289,6 +1291,10 @@ template("android_apk") {
|
| deps = invoker.deps
|
| }
|
|
|
| + if (defined(invoker.apk_under_test)) {
|
| + apk_under_test = invoker.apk_under_test
|
| + }
|
| +
|
| native_libs = _native_libs
|
| }
|
|
|
|
|