-
Notifications
You must be signed in to change notification settings - Fork 43
/
repositories.bzl
171 lines (143 loc) · 5.83 KB
/
repositories.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
BORINGSSL_COMMIT = "88d7a40bd06a34da6ee0d985545755199d047258" # 2023-05-17, same as Envoy
BORINGSSL_SHA256 = "1e759891e168c5957f2f4d519929e2b4cef9303b7cf2049601081f4fca95bf21"
def boringssl_repositories(bind = True):
http_archive(
name = "boringssl",
strip_prefix = "boringssl-" + BORINGSSL_COMMIT,
url = "https://github.com/google/boringssl/archive/" + BORINGSSL_COMMIT + ".tar.gz",
sha256 = BORINGSSL_SHA256,
)
if bind:
native.bind(
name = "ssl",
actual = "@boringssl//:ssl",
)
GOOGLETEST_COMMIT = "43863938377a9ea1399c0596269e0890b5c5515a"
GOOGLETEST_SHA256 = "7c8ece456ad588c30160429498e108e2df6f42a30888b3ec0abf5d9792d9d3a0"
def googletest_repositories(bind = True):
http_archive(
name = "googletest_git",
build_file = "//:googletest.BUILD",
strip_prefix = "googletest-" + GOOGLETEST_COMMIT,
url = "https://github.com/google/googletest/archive/" + GOOGLETEST_COMMIT + ".tar.gz",
sha256 = GOOGLETEST_SHA256,
)
if bind:
native.bind(
name = "googletest",
actual = "@googletest_git//:googletest",
)
native.bind(
name = "googletest_main",
actual = "@googletest_git//:googletest_main",
)
native.bind(
name = "googletest_prod",
actual = "@googletest_git//:googletest_prod",
)
ABSEIL_COMMIT = "cc8dcd307b76a575d2e3e0958a4fe4c7193c2f68" # same as Envoy
ABSEIL_SHA256 = "e35082e88b9da04f4d68094c05ba112502a5063712f3021adfa465306d238c76"
def abseil_repositories(bind = True):
http_archive(
name = "com_google_absl",
strip_prefix = "abseil-cpp-" + ABSEIL_COMMIT,
url = "https://github.com/abseil/abseil-cpp/archive/" + ABSEIL_COMMIT + ".tar.gz",
sha256 = ABSEIL_SHA256,
)
if bind:
native.bind(
name = "abseil_strings",
actual = "@com_google_absl//absl/strings:strings",
)
native.bind(
name = "abseil_time",
actual = "@com_google_absl//absl/time:time",
)
native.bind(
name = "abseil_flat_hash_set",
actual = "@com_google_absl//absl/container:flat_hash_set",
)
native.bind(
name = "abseil_flat_hash_map",
actual = "@com_google_absl//absl/container:flat_hash_map",
)
_cctz_repositories(bind)
CCTZ_COMMIT = "e19879df3a14791b7d483c359c4acd6b2a1cd96b"
CCTZ_SHA256 = "35d2c6cf7ddef1cf7c1bb054bdf2e8d7778242f6d199591a834c14d224b80c39"
def _cctz_repositories(bind = True):
http_archive(
name = "com_googlesource_code_cctz",
url = "https://github.com/google/cctz/archive/" + CCTZ_COMMIT + ".tar.gz",
sha256 = CCTZ_SHA256,
)
RULES_CC_COMMIT = "b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e"
RULES_CC_SHA256 = "29daf0159f0cf552fcff60b49d8bcd4f08f08506d2da6e41b07058ec50cfeaec"
def _rules_cc_repositories():
http_archive(
name = "rules_cc",
sha256 = RULES_CC_SHA256,
strip_prefix = "rules_cc-" + RULES_CC_COMMIT,
urls = ["https://github.com/bazelbuild/rules_cc/archive/" + RULES_CC_COMMIT + ".tar.gz"],
)
RULES_JAVA_COMMIT = "981f06c3d2bd10225e85209904090eb7b5fb26bd"
RULES_JAVA_SHA256 = "f5a3e477e579231fca27bf202bb0e8fbe4fc6339d63b38ccb87c2760b533d1c3"
def _rules_java_repositories():
http_archive(
name = "rules_java",
sha256 = RULES_JAVA_SHA256,
strip_prefix = "rules_java-" + RULES_JAVA_COMMIT,
urls = ["https://github.com/bazelbuild/rules_java/archive/" + RULES_JAVA_COMMIT + ".tar.gz"],
)
RULES_PROTO_COMMIT = "97d8af4dc474595af3900dd85cb3a29ad28cc313" # Oct 31, 2019
RULES_PROTO_SHA256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208"
def _rules_proto_repositories():
http_archive(
name = "rules_proto",
sha256 = RULES_PROTO_SHA256,
strip_prefix = "rules_proto-" + RULES_PROTO_COMMIT,
urls = ["https://github.com/bazelbuild/rules_proto/archive/" + RULES_PROTO_COMMIT + ".tar.gz"],
)
ZLIB_RELEASE = "1.2.13"
ZLIB_SHA256 = "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30"
def _zlib_repositories():
http_archive(
name = "zlib",
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
sha256 = ZLIB_SHA256,
strip_prefix = "zlib-" + ZLIB_RELEASE,
urls = ["https://zlib.net/zlib-" + ZLIB_RELEASE + ".tar.gz"],
)
PROTOBUF_RELEASE = "3.16.0" # Mar 04, 2021
PROTOBUF_SHA256 = "7892a35d979304a404400a101c46ce90e85ec9e2a766a86041bb361f626247f5"
def protobuf_repositories(bind = True):
_rules_cc_repositories()
_rules_java_repositories()
_rules_proto_repositories()
_zlib_repositories()
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-" + PROTOBUF_RELEASE,
url = "https://github.com/protocolbuffers/protobuf/archive/v" + PROTOBUF_RELEASE + ".tar.gz",
sha256 = PROTOBUF_SHA256,
)
if bind:
native.bind(
name = "protobuf",
actual = "@com_google_protobuf//:protobuf",
)
LIBPROTOBUF_MUTATOR_VERSION = "1.0"
LIBPROTOBUF_MUTATOR_SHA256 = "792f250fb546bde8590e72d64311ea00a70c175fd77df6bb5e02328fa15fe28e"
def libprotobuf_mutator_repositories(bind = True):
http_archive(
name = "com_google_libprotobuf_mutator",
build_file = "//:libprotobuf_mutator.BUILD",
strip_prefix = "libprotobuf-mutator-" + LIBPROTOBUF_MUTATOR_VERSION,
url = "https://github.com/google/libprotobuf-mutator/archive/v" + LIBPROTOBUF_MUTATOR_VERSION + ".tar.gz",
sha256 = LIBPROTOBUF_MUTATOR_SHA256,
)
if bind:
native.bind(
name = "libprotobuf_mutator",
actual = "@com_google_libprotobuf_mutator//:libprotobuf_mutator",
)