-
Notifications
You must be signed in to change notification settings - Fork 49
/
WORKSPACE
49 lines (28 loc) · 1.32 KB
/
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
47
48
49
workspace(name = "rules_android")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("prereqs.bzl", "rules_android_prereqs")
rules_android_prereqs(dev_mode = True)
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
rules_java_dependencies()
# note that the following line is what is minimally required from protobuf for the java rules
# consider using the protobuf_deps() public API from @com_google_protobuf//:protobuf_deps.bzl
load("@com_google_protobuf//bazel/private:proto_bazel_features.bzl", "proto_bazel_features") # buildifier: disable=bzl-visibility
proto_bazel_features(name = "proto_bazel_features")
# register toolchains
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
rules_java_toolchains()
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
rules_jvm_external_deps()
load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
rules_jvm_external_setup()
load("defs_dev.bzl", "rules_android_workspace")
rules_android_workspace()
load("//rules:rules.bzl", "android_sdk_repository")
maybe(
android_sdk_repository,
name = "androidsdk",
)
register_toolchains("//toolchains/android:all")
register_toolchains("//toolchains/android_sdk:all")