forked from davidzchen/bazel-ycm-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
140 lines (106 loc) · 4.16 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("//tools:repository.bzl", "github_archive")
# Skylib
http_archive(
name = "bazel_skylib",
sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
],
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
# C++
http_archive(
name = "rules_cc",
sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf",
strip_prefix = "rules_cc-0.0.9",
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz"],
)
http_archive(
name = "com_google_absl",
sha256 = "e639cb99f35c8754dab55ce9408b6a98457c8880b0fd1cb8926cd104a08517ce",
strip_prefix = "abseil-cpp-ad5499a290fd98de54ee54dcf8120f8d287640ce",
urls = ["https://github.com/abseil/abseil-cpp/archive/ad5499a290fd98de54ee54dcf8120f8d287640ce.zip"],
)
github_archive(
name = "com_google_abxl",
commit = "0192333177261c1b8fc94ed355a60fd441e4a2e9",
repo_name = "davidzchen/abxl",
)
# Protocol Buffers
http_archive(
name = "rules_proto",
sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd",
strip_prefix = "rules_proto-5.3.0-21.7",
urls = [
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz",
],
)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()
# Testing
http_archive(
name = "com_google_googletest",
strip_prefix = "googletest-71140c3ca7a87bb1b5b9c9f1500fea8858cce344",
urls = ["https://github.com/google/googletest/archive/71140c3ca7a87bb1b5b9c9f1500fea8858cce344.zip"],
)
http_archive(
name = "com_github_google_benchmark",
strip_prefix = "benchmark-62edc4fb00e1aeab86cc69c70eafffb17219d047",
urls = ["https://github.com/google/benchmark/archive/62edc4fb00e1aeab86cc69c70eafffb17219d047.zip"],
)
# clang-tidy
git_repository(
name = "bazel_clang_tidy",
commit = "43bef6852a433f3b2a6b001daecc8bc91d791b92",
remote = "https://github.com/erenon/bazel_clang_tidy.git",
)
# github_archive(
# name = "toolchains_llvm",
# commit = "c5f221a3bdb7bcca9a3079eb032c9fa7333f52cc",
# repo_name = "bazel-contrib/toolchains_llvm",
# )
# load("@toolchains_llvm//toolchain:deps.bzl", "bazel_toolchain_dependencies")
# bazel_toolchain_dependencies()
# load("@toolchains_llvm//toolchain:rules.bzl", "llvm_toolchain")
# llvm_toolchain(
# name = "llvm_toolchain",
# llvm_versions = {
# "": "15.0.6",
# "darwin-aarch64": "15.0.7",
# "darwin-x86_64": "15.0.7",
# },
# )
# load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
# llvm_register_toolchains()
# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
http_archive(
name = "hedron_compile_commands",
strip_prefix = "bazel-compile-commands-extractor-5bcb0bd8a917b2b48fb5dc55818515f4be3b63ff",
url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/5bcb0bd8a917b2b48fb5dc55818515f4be3b63ff.tar.gz",
)
load(
"@hedron_compile_commands//:workspace_setup.bzl",
"hedron_compile_commands_setup",
)
hedron_compile_commands_setup()
load(
"@hedron_compile_commands//:workspace_setup_transitive.bzl",
"hedron_compile_commands_setup_transitive",
)
hedron_compile_commands_setup_transitive()
load(
"@hedron_compile_commands//:workspace_setup_transitive_transitive.bzl",
"hedron_compile_commands_setup_transitive_transitive",
)
hedron_compile_commands_setup_transitive_transitive()
load(
"@hedron_compile_commands//:workspace_setup_transitive_transitive_transitive.bzl",
"hedron_compile_commands_setup_transitive_transitive_transitive",
)
hedron_compile_commands_setup_transitive_transitive_transitive()