-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE.bazel
70 lines (57 loc) · 2.18 KB
/
WORKSPACE.bazel
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Compile commands for clangd server
http_archive(
name = "hedron_compile_commands",
sha256 = "085bde6c5212c8c1603595341ffe7133108034808d8c819f8978b2b303afc9e7",
strip_prefix = "bazel-compile-commands-extractor-ed994039a951b736091776d677f324b3903ef939",
urls = [
"https://github.com/hedronvision/bazel-compile-commands-extractor/archive/ed994039a951b736091776d677f324b3903ef939.tar.gz",
],
)
load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
hedron_compile_commands_setup()
# Google Googletest
git_repository(
name = "com_google_googletest",
commit = "58d77fa8070e8cec2dc1ed015d66b454c8d78850",
remote = "https://github.com/google/googletest.git",
shallow_since = "1656350095 -0400",
)
# Google Benchmark
git_repository(
name = "com_google_benchmark",
commit = "398a8ac2e8e0b852fa1568dc1c8ebdfc743a380a",
remote = "https://github.com/google/benchmark.git",
shallow_since = "1667214239 +0000",
)
# Google Abseil
git_repository(
name = "com_google_absl",
commit = "db5c79932e16e97e8b2f9ecd0e74f99f0e74e0d7",
remote = "https://github.com/abseil/abseil-cpp.git",
repo_mapping = {
"@com_github_google_benchmark": "@com_google_benchmark",
},
shallow_since = "1700521129 -0800",
)
# Google Protobuf
http_archive(
name = "com_google_protobuf",
sha256 = "1add10f9bd92775b91f326da259f243881e904dd509367d5031d4c782ba82810",
strip_prefix = "protobuf-3.21.9",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.9.tar.gz"],
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
http_archive(
name = "rules_proto",
sha256 = "80d3a4ec17354cccc898bfe32118edd934f851b03029d63ef3fc7c8663a7415c",
strip_prefix = "rules_proto-5.3.0-21.5",
urls = [
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.5.tar.gz",
],
)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()