-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbazel.WORKSPACE
46 lines (35 loc) · 1000 Bytes
/
bazel.WORKSPACE
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
toplevel_output_directories(paths = ["out"])
load("//build/bazel/rules:lunch.bzl", "lunch")
load("//build/bazel/rules:soong_injection.bzl", "soong_injection_repository")
lunch()
register_toolchains(
"//prebuilts/clang/host/linux-x86:all"
)
soong_injection_repository(name="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",
)