aboutsummaryrefslogtreecommitdiff
path: root/rules/toolchains/emulator/BUILD
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:37:25 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:37:25 +0000
commita655eeb3206656294ec9f07dc3fec4a7eb2959f9 (patch)
tree4ff6434731886c36f5a6eef7606a7d31696542df /rules/toolchains/emulator/BUILD
parent021f974de63637b192e05e71c82065682f098f76 (diff)
parent21b742bc1da1235309d33fdb4d20980e40eaef34 (diff)
downloadbazelbuild-rules_android-android12-mainline-tzdata3-release.tar.gz
Change-Id: I5363bc10de94542cdf609a2a1227e99b14e086ec
Diffstat (limited to 'rules/toolchains/emulator/BUILD')
-rw-r--r--rules/toolchains/emulator/BUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/rules/toolchains/emulator/BUILD b/rules/toolchains/emulator/BUILD
new file mode 100644
index 0000000..a02375a
--- /dev/null
+++ b/rules/toolchains/emulator/BUILD
@@ -0,0 +1,27 @@
+# Description:
+# Defines an emulator toolchain so that the emulator used for android_device
+# can be configured at build-time.
+
+load(":toolchain.bzl", "emulator_toolchain")
+
+package(default_visibility = ["//visibility:public"])
+
+# By convention, toolchain_type targets are named "toolchain_type"
+# and distinguished by their package path.
+toolchain_type(
+ name = "toolchain_type",
+)
+
+emulator_toolchain(
+ name = "emulator_default",
+ emulator = "@androidsdk//:emulator",
+ emulator_deps = [
+ "@androidsdk//:emulator_shared_libs",
+ ],
+)
+
+toolchain(
+ name = "emulator_default_toolchain",
+ toolchain = ":emulator_default",
+ toolchain_type = ":toolchain_type",
+)