-
Notifications
You must be signed in to change notification settings - Fork 44
/
WORKSPACE
43 lines (33 loc) · 1.4 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
workspace(name = "rules_android")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("prereqs.bzl", "rules_android_prereqs")
# Required by protobuf and rules_proto
BAZEL_FEATURES_VERSION = "1.20.0"
BAZEL_FEATURES_HASH = "c2596994cf63513bd44180411a4ac3ae95d32bf59148fcb6087a4642b3ffef11"
maybe(
http_archive,
name = "bazel_features",
sha256 = BAZEL_FEATURES_HASH,
strip_prefix = "bazel_features-" + BAZEL_FEATURES_VERSION,
url = "https://github.com/bazel-contrib/bazel_features/releases/download/v" + BAZEL_FEATURES_VERSION + "/bazel_features-v" + BAZEL_FEATURES_VERSION + ".tar.gz",
)
maybe(
http_archive,
name = "proto_bazel_features",
sha256 = BAZEL_FEATURES_HASH,
strip_prefix = "bazel_features-" + BAZEL_FEATURES_VERSION,
url = "https://github.com/bazel-contrib/bazel_features/releases/download/v" + BAZEL_FEATURES_VERSION + "/bazel_features-v" + BAZEL_FEATURES_VERSION + ".tar.gz",
)
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
rules_android_prereqs(dev_mode = True)
load("//rules:rules.bzl", "android_sdk_repository")
maybe(
android_sdk_repository,
name = "androidsdk",
)
load("defs_dev.bzl", "rules_android_workspace")
rules_android_workspace()
register_toolchains("//toolchains/android:all")
register_toolchains("//toolchains/android_sdk:all")