17
17
workspace (name = "curve" )
18
18
19
19
load ("@bazel_tools//tools/build_defs/repo:git.bzl" , "git_repository" )
20
+ load ("@bazel_tools//tools/build_defs/repo:git.bzl" , "new_git_repository" )
21
+ load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
22
+
23
+ # skylib
24
+ http_archive (
25
+ name = "bazel_skylib" ,
26
+ urls = [
27
+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.2.0/bazel-skylib-1.2.0.tar.gz" ,
28
+ "https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.0/bazel-skylib-1.2.0.tar.gz" ,
29
+ ],
30
+ sha256 = "af87959afe497dc8dfd4c6cb66e1279cb98ccc84284619ebfec27d9c09a903de" ,
31
+ )
32
+ load ("@bazel_skylib//:workspace.bzl" , "bazel_skylib_workspace" )
33
+ bazel_skylib_workspace ()
20
34
21
35
git_repository (
22
36
name = "com_github_baidu_braft" ,
@@ -32,13 +46,30 @@ bind(
32
46
# proto_library, cc_proto_library, and java_proto_library rules implicitly
33
47
# depend on @com_google_protobuf for protoc and proto runtimes.
34
48
# This statement defines the @com_google_protobuf repo.
49
+
50
+ # zlib
35
51
http_archive (
36
- name = "com_google_protobuf" ,
37
- sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30" ,
38
- strip_prefix = "protobuf-3.5.0" ,
39
- urls = ["https://github.com/google/protobuf/archive/v3.5.0.zip" ],
52
+ name = "net_zlib" ,
53
+ build_file = "@com_google_protobuf//:third_party/zlib.BUILD" ,
54
+ sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1" ,
55
+ strip_prefix = "zlib-1.2.11" ,
56
+ urls = ["https://zlib.net/zlib-1.2.11.tar.gz" ],
57
+ )
58
+
59
+ bind (
60
+ name = "zlib" ,
61
+ actual = "@net_zlib//:zlib" ,
40
62
)
41
63
64
+ http_archive (
65
+ name = "com_google_protobuf" ,
66
+ strip_prefix = "protobuf-3.6.1.3" ,
67
+ patch_args = ["-p1" ],
68
+ patches = ["//:thirdparties/protobuf/protobuf.patch" ],
69
+ sha256 = "9510dd2afc29e7245e9e884336f848c8a6600a14ae726adb6befdb4f786f0be2" ,
70
+ urls = ["https://github.com/google/protobuf/archive/v3.6.1.3.zip" ],
71
+ )
72
+
42
73
bind (
43
74
name = "protobuf" ,
44
75
actual = "@com_google_protobuf//:protobuf" ,
@@ -76,22 +107,19 @@ bind(
76
107
http_archive (
77
108
name = "com_github_gflags_gflags" ,
78
109
strip_prefix = "gflags-2.2.2" ,
79
- urls = [
80
- "https://mirror.bazel.build/github.com/gflags/gflags/archive/v2.2.2.tar.gz" ,
81
- "https://github.com/gflags/gflags/archive/v2.2.2.tar.gz" ,
82
- ],
110
+ urls = ["https://github.com/gflags/gflags/archive/v2.2.2.tar.gz" ],
83
111
)
84
112
85
113
bind (
86
114
name = "gflags" ,
87
115
actual = "@com_github_gflags_gflags//:gflags" ,
88
116
)
89
117
90
- new_http_archive (
118
+ http_archive (
91
119
name = "com_github_google_leveldb" ,
92
120
build_file = "bazel/leveldb.BUILD" ,
93
121
strip_prefix = "leveldb-a53934a3ae1244679f812d998a4f16f2c7f309a6" ,
94
- url = "https://github.com/google/leveldb/archive/a53934a3ae1244679f812d998a4f16f2c7f309a6.tar.gz" ,
122
+ urls = [ "https://github.com/google/leveldb/archive/a53934a3ae1244679f812d998a4f16f2c7f309a6.tar.gz" ] ,
95
123
)
96
124
97
125
bind (
@@ -142,49 +170,37 @@ bind(
142
170
143
171
new_local_repository (
144
172
name = "etcdclient" ,
145
- build_file = "bazel/etcdclient.BUILD" ,
173
+ build_file = "external/ bazel/etcdclient.BUILD" ,
146
174
path = "thirdparties/etcdclient" ,
147
175
)
148
176
149
- new_http_archive (
177
+ http_archive (
150
178
name = "aws" ,
151
- urls = [
152
- "https://github.com/aws/aws-sdk-cpp/archive/1.7.340.tar.gz" ,
153
- "https://mirror.bazel.build/github.com/aws/aws-sdk-cpp/archive/1.7.340.tar.gz" ,
154
- ],
179
+ urls = ["https://github.com/aws/aws-sdk-cpp/archive/1.7.340.tar.gz" ],
155
180
sha256 = "2e82517045efb55409cff1408c12829d9e8aea22c1e2888529cb769b7473b0bf" ,
156
181
strip_prefix = "aws-sdk-cpp-1.7.340" ,
157
182
build_file = "//:thirdparties/aws/aws.BUILD" ,
158
183
)
159
184
160
- new_http_archive (
185
+ http_archive (
161
186
name = "aws_c_common" ,
162
- urls = [
163
- "https://github.com/awslabs/aws-c-common/archive/v0.4.29.tar.gz" ,
164
- "https://mirror.tensorflow.org/github.com/awslabs/aws-c-common/archive/v0.4.29.tar.gz" ,
165
- ],
187
+ urls = ["https://github.com/awslabs/aws-c-common/archive/v0.4.29.tar.gz" ],
166
188
sha256 = "01c2a58553a37b3aa5914d9e0bf7bf14507ff4937bc5872a678892ca20fcae1f" ,
167
189
strip_prefix = "aws-c-common-0.4.29" ,
168
190
build_file = "//:thirdparties/aws/aws-c-common.BUILD" ,
169
191
)
170
192
171
- new_http_archive (
193
+ http_archive (
172
194
name = "aws_c_event_stream" ,
173
- urls = [
174
- "https://github.com/awslabs/aws-c-event-stream/archive/v0.1.4.tar.gz" ,
175
- "https://mirror.tensorflow.org/github.com/awslabs/aws-c-event-stream/archive/v0.1.4.tar.gz" ,
176
- ],
195
+ urls = ["https://github.com/awslabs/aws-c-event-stream/archive/v0.1.4.tar.gz" ],
177
196
sha256 = "31d880d1c868d3f3df1e1f4b45e56ac73724a4dc3449d04d47fc0746f6f077b6" ,
178
197
strip_prefix = "aws-c-event-stream-0.1.4" ,
179
198
build_file = "//:thirdparties/aws/aws-c-event-stream.BUILD" ,
180
199
)
181
200
182
- new_http_archive (
201
+ http_archive (
183
202
name = "aws_checksums" ,
184
- urls = [
185
- "https://github.com/awslabs/aws-checksums/archive/v0.1.5.tar.gz" ,
186
- "https://mirror.tensorflow.org/github.com/awslabs/aws-checksums/archive/v0.1.5.tar.gz" ,
187
- ],
203
+ urls = ["https://github.com/awslabs/aws-checksums/archive/v0.1.5.tar.gz" ],
188
204
sha256 = "6e6bed6f75cf54006b6bafb01b3b96df19605572131a2260fddaf0e87949ced0" ,
189
205
strip_prefix = "aws-checksums-0.1.5" ,
190
206
build_file = "//:thirdparties/aws/aws-checksums.BUILD" ,
@@ -205,3 +221,11 @@ http_archive(
205
221
strip_prefix = "abseil-cpp-20210324.2" ,
206
222
sha256 = "59b862f50e710277f8ede96f083a5bb8d7c9595376146838b9580be90374ee1f" ,
207
223
)
224
+
225
+ # Bazel platform rules.
226
+ http_archive (
227
+ name = "platforms" ,
228
+ sha256 = "b601beaf841244de5c5a50d2b2eddd34839788000fa1be4260ce6603ca0d8eb7" ,
229
+ strip_prefix = "platforms-98939346da932eef0b54cf808622f5bb0928f00b" ,
230
+ urls = ["https://github.com/bazelbuild/platforms/archive/98939346da932eef0b54cf808622f5bb0928f00b.zip" ],
231
+ )
0 commit comments