• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1toplevel_output_directories(paths = ["out"])
2
3load("//build/bazel/rules:lunch.bzl", "lunch")
4load("//build/bazel/rules:soong_injection.bzl", "soong_injection_repository")
5
6lunch()
7
8register_toolchains(
9    "//prebuilts/clang/host/linux-x86:all"
10)
11
12soong_injection_repository(name="soong_injection")
13
14local_repository(
15    name = "rules_cc",
16    path = "build/bazel/rules_cc",
17)
18
19local_repository(
20    name = "bazel_skylib",
21    path = "build/bazel/bazel_skylib",
22)
23
24local_repository(
25    name = "rules_android",
26    path = "external/bazelbuild-rules_android",
27)
28
29register_toolchains(
30  # For Starlark Android rules
31  "//prebuilts/sdk:android_default_toolchain",
32  "//prebuilts/sdk:android_sdk_tools",
33
34  # For native android_binary
35  "//prebuilts/sdk:android_sdk_tools_for_native_android_binary",
36)
37
38bind(
39  name = "databinding_annotation_processor",
40  actual = "//prebuilts/sdk:compiler_annotation_processor",
41)
42
43bind(
44  name = "android/dx_jar_import",
45  actual = "//prebuilts/sdk:dx_jar_import",
46)
47