-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathWORKSPACE
More file actions
40 lines (34 loc) · 1.45 KB
/
WORKSPACE
File metadata and controls
40 lines (34 loc) · 1.45 KB
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
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rapidjson",
build_file = "@//:rapidjson-BUILD.bazel",
sha256 = "926cb949eb0fdb6154c1104985aee0bf0a6eac38f0b90da05eaf5f079f320672",
strip_prefix = "rapidjson-ce81bc9edfe773667a7a4454ba81dac72ed4364c",
urls = [
"https://github.com/Tencent/rapidjson/archive/ce81bc9edfe773667a7a4454ba81dac72ed4364c.tar.gz",
],
)
http_archive(
name = "com_google_protobuf",
sha256 = "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
strip_prefix = "protobuf-3.13.0",
urls = [
"https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
],
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
http_archive(
name = "bazel_compile_commands",
sha256 = "810b9c00cb278fe8e2f8331cd70a4f87605ce825e10166fd2d36ee171e7b8521",
strip_prefix = "bazel_compile_commands-0.1.2",
urls = [
"https://github.com/cdump/bazel_compile_commands/archive/0.1.2.zip",
],
# bazel_compile_commands uses '@com_github_tencent_rapidjson' name from rapidjson and '@com_google_protobuf' for protobuf
# In our WORKSPACE file we connect rapidjson by '@rapidjson' name, so we need repo_remapping
# Don't need '@com_google_protobuf' here, because our and '@bazel_compile_commands' names are the same
repo_mapping = {
"@com_github_tencent_rapidjson": "@rapidjson",
},
)