-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrepos.bzl
137 lines (120 loc) · 4.92 KB
/
repos.bzl
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
"""Adds repositories/archives."""
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@com_github_3rdparty_bazel_rules_jemalloc//bazel:repos.bzl", jemalloc_repos = "repos")
load("@com_github_3rdparty_stout//bazel:repos.bzl", stout_repos = "repos")
load("@com_github_reboot_dev_pyprotoc_plugin//bazel:repos.bzl", pyprotoc_plugin_repos = "repos")
def repos(repo_mapping = {}):
"""Adds external repositories/archives needed by eventuals (phase 1).
Args:
repo_mapping: passed through to all other functions that expect/use
repo_mapping, e.g., 'git_repository'
"""
jemalloc_repos(
external = False,
repo_mapping = repo_mapping,
)
stout_repos(
external = False,
repo_mapping = repo_mapping,
)
pyprotoc_plugin_repos(
external = False,
repo_mapping = repo_mapping,
)
# Hedron's Compile Commands Extractor for Bazel.
# Latest version available on 2022/07/18.
# Follow the link to learn how to set it up for your code editor:
# https://github.com/hedronvision/bazel-compile-commands-extractor
maybe(
git_repository,
name = "hedron_compile_commands",
commit = "05610f52a2ea3cda6ac27133b96f71c36358adf9",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor",
shallow_since = "1657677319 -0700",
repo_mapping = repo_mapping,
)
maybe(
http_archive,
name = "rules_foreign_cc",
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.8.0.tar.gz",
sha256 = "6041f1374ff32ba711564374ad8e007aef77f71561a7ce784123b9b4b88614fc",
strip_prefix = "rules_foreign_cc-0.8.0",
repo_mapping = repo_mapping,
)
maybe(
git_repository,
name = "com_github_3rdparty_bazel_rules_asio",
remote = "https://github.com/3rdparty/bazel-rules-asio",
commit = "257c93cbaf94703f1b0668b7693267bebea52b37",
shallow_since = "1650559794 +0200",
repo_mapping = repo_mapping,
)
maybe(
git_repository,
name = "com_github_3rdparty_bazel_rules_curl",
remote = "https://github.com/3rdparty/bazel-rules-curl",
commit = "675ba89613943c2880ec58fb04dcac9b333ae5bf",
shallow_since = "1706221096 +0100",
repo_mapping = repo_mapping,
)
maybe(
git_repository,
name = "com_github_3rdparty_bazel_rules_libuv",
remote = "https://github.com/3rdparty/bazel-rules-libuv",
commit = "f8aeba82e40cda94d6227c67d114ecc732b30be5",
shallow_since = "1638359550 +0300",
repo_mapping = repo_mapping,
)
maybe(
git_repository,
name = "com_github_3rdparty_bazel_rules_tl_expected",
remote = "https://github.com/3rdparty/bazel-rules-expected",
commit = "c703632657bf4ec9177d9aea0447166d424b3b74",
shallow_since = "1654243887 +0300",
repo_mapping = repo_mapping,
)
maybe(
http_archive,
name = "com_google_protobuf",
strip_prefix = "protobuf-3.19.1",
urls = [
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz",
"https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz",
],
sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422",
repo_mapping = repo_mapping,
)
maybe(
http_archive,
name = "com_github_grpc_grpc",
urls = ["https://github.com/grpc/grpc/archive/refs/tags/v1.46.3.tar.gz"],
strip_prefix = "grpc-1.46.3",
sha256 = "d6cbf22cb5007af71b61c6be316a79397469c58c82a942552a62e708bce60964",
)
maybe(
http_archive,
name = "bazel_skylib",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz",
],
sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",
)
maybe(
git_repository,
name = "com_github_3rdparty_bazel_rules_backward_cpp",
remote = "https://github.com/3rdparty/bazel-rules-backward-cpp",
commit = "be06f4fce52e2327d877493d050f42b9d082af3f",
shallow_since = "1658132298 +0300",
repo_mapping = repo_mapping,
)
maybe(
new_git_repository,
name = "com_github_3rdparty_bazel_rules_backward_cpp_stacktrace",
remote = "https://github.com/3rdparty/bazel-rules-backward-cpp",
build_file = "@com_github_3rdparty_bazel_rules_backward_cpp//:BUILD.backward-stacktrace.bazel",
commit = "be06f4fce52e2327d877493d050f42b9d082af3f",
shallow_since = "1658132298 +0300",
)