1# Description: 2# Defines the Android toolchain. 3 4load(":toolchain.bzl", "android_toolchain") 5load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 6 7licenses(["notice"]) 8 9filegroup( 10 name = "all_files", 11 srcs = glob(["**"]), 12) 13 14# Android Toolchain Type 15toolchain_type( 16 name = "toolchain_type", 17 visibility = ["//visibility:public"], 18) 19 20# Default Android Toolchain 21android_toolchain( 22 name = "android_default", 23 visibility = ["//visibility:public"], 24) 25 26toolchain( 27 name = "android_default_toolchain", 28 toolchain = ":android_default", 29 toolchain_type = ":toolchain_type", 30) 31 32bzl_library( 33 name = "bzl", 34 srcs = glob(["*.bzl"]), 35) 36 37genrule( 38 name = "gen_unzip", 39 outs = ["unzip.sh"], 40 cmd = """cat > $@ <<EOF 41unzip \\$$@ 42EOF 43""", 44 executable = True, 45) 46 47sh_binary( 48 name = "zip", 49 srcs = [":zip.sh"], 50 visibility = ["//visibility:public"], 51) 52 53sh_binary( 54 name = "unzip", 55 srcs = [":unzip.sh"], 56 visibility = ["//visibility:public"], 57) 58