forked from osu-crypto/libPSI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWORKSPACE
133 lines (110 loc) · 3.83 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
workspace(name = "libpsi")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
_ALL_CONTENT = """\
filegroup(
name = "all_srcs",
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)
"""
http_archive(
name = "rules_foreign_cc",
sha256 = "484fc0e14856b9f7434072bc2662488b3fe84d7798a5b7c92a1feb1a0fa8d088",
strip_prefix = "rules_foreign_cc-0.8.0",
url = "https://primihub.oss-cn-beijing.aliyuncs.com/tools/rules_foreign_cc_cn-0.8.0.tar.gz",
)
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
rules_foreign_cc_dependencies()
git_repository(
name = "com_github_nelhage_rules_boost",
commit = "81945736a62fa8490d2ab6bb31705bb04ce4bb6c",
#branch = "master",
remote = "https://gitee.com/primihub/rules_boost.git",
# shallow_since = "1591047380 -0700",
)
load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
boost_deps()
http_archive(
name = "bazel_common",
url = "https://primihub.oss-cn-beijing.aliyuncs.com/tools/bazel-common-master.zip",
strip_prefix = "bazel-common-master",
sha256 = "7034b3fb6b3051d70f33853fff48b0e931b57e35c6a32bba0280c6f2b6d6ee0c",
)
http_archive(
name = "bazel_skylib",
strip_prefix = None,
url = "https://primihub.oss-cn-beijing.aliyuncs.com/tools/bazel-skylib-1.0.2.tar.gz",
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
)
load("@bazel_skylib//lib:versions.bzl", "versions")
versions.check(minimum_bazel_version = "5.0.0")
# fmt bazle, ref: https://fossies.org/linux/fmt/support/bazel/README.md
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# Google dense_hash_set
http_archive(
name = "google_sparsehash",
build_file = "//bazel:BUILD.sparsehash",
strip_prefix = "sparsehash-master",
urls = [
"https://primihub.oss-cn-beijing.aliyuncs.com/tools/sparsehash-master.zip"
],
)
# libPSI start
new_git_repository(
name = "osu_libpsi",
build_file = "//bazel:BUILD.libpsi",
commit = "4c5d5a3e49533c8547dcd4869e6a9842b6ce5b90",
remote = "https://gitee.com/primihub/libPSI.git",
)
# libote
new_git_repository(
name = "osu_libote",
build_file = "//bazel:libOTe.BUILD",
commit = "f455eb7bf83034ebca6cab42e3aea9d9b33f8102",
remote = "https://gitee.com/primihub/libOTe.git",
)
# cryptoTools
#http_archive(
# name = "cryptoTools",
# build_file = "//bazel:cryptoTools.BUILD",
# #sha256 = "6f021f24136eb177af38af3bf5d53b3592a1fe1e71d1c098318488a85b0afc3a",
# strip_prefix = "cryptoTools-2.0",
# urls = ["https://github.com/yankaili2006/cryptoTools/archive/refs/tags/v2.0.zip"],
#)
new_git_repository(
name = "ladnir_cryptoTools",
build_file = "//bazel:cryptoTools.BUILD",
commit = "d52e05e2e803006256ddb66f48a0d51080f4b285",
remote = "https://gitee.com/primihub/cryptoTools.git",
# shallow_since = "1591047380 -0700",
)
# ntl
#http_archive(
# name = "ntl",
# build_file = "//bazel:ntl.BUILD",
# #sha256 = "6f021f24136eb177af38af3bf5d53b3592a1fe1e71d1c098318488a85b0afc3a",
# strip_prefix = "ntl-main",
# urls = ["https://github.com/libntl/ntl/archive/refs/heads/main.zip"],
#)
#git_repository(
# name = "ntl",
# # commit = "1e3a69bf2d5cd10c34b74f066054cd335d033d71",
# branch = "main",
# remote = "https://github.com/yankaili2006/ntl.git",
# # shallow_since = "1591047380 -0700",
#)
new_git_repository(
name = "github_ntl",
build_file = "//bazel:ntl.BUILD",
commit = "6b23216ce6b24dd04446122c2200b6f031621965",
remote = "https://gitee.com/primihub/ntl.git",
# shallow_since = "1591047380 -0700",
)
new_git_repository(
name = "toolkit_relic",
build_file = "//bazel:BUILD.relic",
remote = "https://gitee.com/orzmzp/relic.git",
commit = "3f616ad64c3e63039277b8c90915607b6a2c504c",
shallow_since = "1581106153 -0800",
)