aboutsummaryrefslogtreecommitdiff
path: root/toolchains/emulator/BUILD
blob: a02375a7f8448c20dba3b9017474a47255bdf4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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",
)