aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/android/android_sdk_repository_template.bzl
diff options
context:
space:
mode:
authorGravatar ajmichael <ajmichael@google.com>2017-12-05 11:05:21 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-05 11:07:26 -0800
commit5a163fb41963c5e9481f0a2d22c4810eee76dd2a (patch)
tree4ba6ffe7f18d6ce41938f0ee8e6206c0ff728edf /tools/android/android_sdk_repository_template.bzl
parente4eb23fe5512760b0e4a80c19a98f43875051fb1 (diff)
Add aapt2 to the filegroup of integration test dependencies.
This will allow us to write a bazel integration test for --android_aapt=aapt2. Necessary for https://github.com/bazelbuild/bazel/issues/4103. RELNOTES: None PiperOrigin-RevId: 177980382
Diffstat (limited to 'tools/android/android_sdk_repository_template.bzl')
-rw-r--r--tools/android/android_sdk_repository_template.bzl7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/android/android_sdk_repository_template.bzl b/tools/android/android_sdk_repository_template.bzl
index 7412aa67dc..e657eaafc9 100644
--- a/tools/android/android_sdk_repository_template.bzl
+++ b/tools/android/android_sdk_repository_template.bzl
@@ -52,14 +52,17 @@ def create_android_sdk_rules(
"build-tools/%s/aidl.exe" % build_tools_directory,
"build-tools/%s/zipalign.exe" % build_tools_directory,
"platform-tools/adb.exe",
- ]
+ ] + native.glob(["build-tools/%s/aapt2.exe" % build_tools_directory])
linux_only_files = [
"build-tools/%s/aapt" % build_tools_directory,
"build-tools/%s/aidl" % build_tools_directory,
"build-tools/%s/zipalign" % build_tools_directory,
"platform-tools/adb",
- ] + native.glob(["extras"], exclude_directories = 0)
+ ] + native.glob(
+ ["extras", "build-tools/%s/aapt2" % build_tools_directory],
+ exclude_directories = 0,
+ )
# This filegroup is used to pass the minimal contents of the SDK to the
# Android integration tests. Note that in order to work on Windows, we cannot