Skip to content

Commit

Permalink
Add aapt2 to Bazel-generated android_sdks.
Browse files Browse the repository at this point in the history
RELNOTES: None
PiperOrigin-RevId: 172481590
  • Loading branch information
aj-michael authored and buchgr committed Oct 18, 2017
1 parent 85b7af7 commit 0f8a9b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/android/android_sdk_repository_template.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ def create_android_sdk_rules(
":windows_msys": "build-tools/%s/aapt.exe" % build_tools_directory,
"//conditions:default": ":aapt_binary",
}),
aapt2 = select({
":windows": "build-tools/%s/aapt2.exe" % build_tools_directory,
":windows_msvc": "build-tools/%s/aapt2.exe" % build_tools_directory,
":windows_msys": "build-tools/%s/aapt2.exe" % build_tools_directory,
"//conditions:default": ":aapt2_binary",
}),
dx = ":dx_binary",
main_dex_list_creator = ":main_dex_list_creator",
adb = select({
Expand Down Expand Up @@ -156,7 +162,7 @@ def create_android_sdk_rules(
])
)

for tool in ["aapt", "aidl", "zipalign"]:
for tool in ["aapt", "aapt2", "aidl", "zipalign"]:
native.genrule(
name = tool + "_runner",
outs = [tool + "_runner.sh"],
Expand Down

0 comments on commit 0f8a9b8

Please sign in to comment.