1# Description: 2# Defines an emulator toolchain so that the emulator used for android_device 3# can be configured at build-time. 4 5load(":toolchain.bzl", "emulator_toolchain") 6 7package(default_visibility = ["//visibility:public"]) 8 9# By convention, toolchain_type targets are named "toolchain_type" 10# and distinguished by their package path. 11toolchain_type( 12 name = "toolchain_type", 13) 14 15emulator_toolchain( 16 name = "emulator_default", 17 emulator = "@androidsdk//:emulator", 18 emulator_deps = [ 19 "@androidsdk//:emulator_shared_libs", 20 ], 21) 22 23toolchain( 24 name = "emulator_default_toolchain", 25 toolchain = ":emulator_default", 26 toolchain_type = ":toolchain_type", 27) 28