blob: 5f86be1dd5065ed343e767a15eea78e2ed9a1161 [file] [log] [blame]
toplevel_output_directories(paths = ["out"])
load("//build/bazel/rules:lunch.bzl", "lunch")
lunch()
register_toolchains(
"//prebuilts/clang/host/linux-x86:all"
)
# This references $OUTDIR/soong/soong_injection.
# It works because the synthetic Bazel workspace (where this file is evaluated)
# lives under $OUTDIR/soong/workspace. This way, this file is not a function of
# $OUTDIR and thus doesn't need to be generated.
local_repository(
name = "soong_injection",
path = "../soong_injection",
)
local_repository(
name = "rules_cc",
path = "build/bazel/rules_cc",
)
local_repository(
name = "bazel_skylib",
path = "build/bazel/bazel_skylib",
)
local_repository(
name = "rules_android",
path = "external/bazelbuild-rules_android",
)
register_toolchains(
# For Starlark Android rules
"//prebuilts/sdk:android_default_toolchain",
"//prebuilts/sdk:android_sdk_tools",
# For native android_binary
"//prebuilts/sdk:android_sdk_tools_for_native_android_binary",
)
bind(
name = "databinding_annotation_processor",
actual = "//prebuilts/sdk:compiler_annotation_processor",
)
bind(
name = "android/dx_jar_import",
actual = "//prebuilts/sdk:dx_jar_import",
)