forked from nsdown/ZhihuDailyPurify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
51 lines (40 loc) · 1.12 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
50
51
workspace(name = "ZhihuDailyPurify")
API_LEVEL = 27
BUILD_TOOLS_VERSION = "27.0.2"
android_sdk_repository(
name = "androidsdk",
api_level = API_LEVEL,
build_tools_version = BUILD_TOOLS_VERSION,
)
load("//third_party:gen_deps.bzl",
"generate_android_support_libs_dependency",
"generate_java_dependencies",
"generate_other_android_dependencies",
"setup_protobuf",
"setup_rules_python",
"setup_rules_docker",
"setup_rules_apple",
"swift_protobuf",
)
generate_android_support_libs_dependency(BUILD_TOOLS_VERSION)
generate_java_dependencies()
generate_other_android_dependencies()
setup_protobuf()
setup_rules_python()
setup_rules_docker()
setup_rules_apple()
swift_protobuf()
# Set up pip dependencies
load("@io_bazel_rules_python//python:pip.bzl", "pip_import")
pip_import(
name = "pip_dependencies",
requirements = "//server:requirements.txt",
)
load("@pip_dependencies//:requirements.bzl", "pip_install")
pip_install()
# Set up docker
load(
"@io_bazel_rules_docker//python:image.bzl",
_py_image_repos = "repositories",
)
_py_image_repos()