xref: /aosp_15_r20/external/bazelbuild-rules_android/toolchains/android_sdk/BUILD (revision 9e965d6fece27a77de5377433c2f7e6999b8cc0b)
1# Description:
2#   Defines the Android SDK toolchain.
3
4licenses(["notice"])
5
6filegroup(
7    name = "all_files",
8    srcs = glob(["**"]),
9)
10
11# Android SDK Toolchain Type
12toolchain_type(
13    name = "toolchain_type",
14    visibility = ["//visibility:public"],
15)
16
17toolchain(
18    name = "android_sdk_tools",
19    # This causes the toolchain to not be selected under arm, so
20    # disable for now.
21    # To be refined as part of https://github.com/bazelbuild/rules_android/issues/72
22    #exec_compatible_with = [
23    #    "@platforms//cpu:x86_64",
24    #    "@platforms//os:linux",
25    #],
26    # TODO(b/175833893): This causes the toolchain to not be selected, so
27    # disable for now.
28    #target_compatible_with = [
29    #    "@bazel_tools//platforms:android",
30    #],
31    toolchain = "@androidsdk//:sdk",
32    toolchain_type = ":toolchain_type",
33)
34