forked from secretflow/spu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
125 lines (106 loc) · 3.88 KB
/
MODULE.bazel
File metadata and controls
125 lines (106 loc) · 3.88 KB
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
# Copyright 2024 Ant Group Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
"""
Secure Processing Unit
"""
module(
name = "spu",
version = "0.10.0.dev20251211",
compatibility_level = 1,
)
bazel_dep(name = "apple_support", version = "1.24.5")
bazel_dep(name = "spulib")
local_path_override(
module_name = "spulib",
path = "src",
)
bazel_dep(name = "psi", version = "0.6.0.dev250922")
bazel_dep(name = "yacl", version = "0.4.5b12-nightly-20251024")
# NOTE: override heu imported by psi, when psi updates heu version, this can be removed
bazel_dep(name = "heu", version = "0.6.0b1")
bazel_dep(name = "grpc", version = "1.74.1")
single_version_override(
module_name = "grpc",
patch_strip = 1,
patches = ["//bazel/patches:grpc.patch"],
version = "1.74.1",
)
bazel_dep(name = "pybind11_bazel", version = "3.0.0")
bazel_dep(name = "protobuf", version = "32.1")
bazel_dep(name = "rules_cuda", version = "0.2.5")
bazel_dep(name = "rules_python", version = "1.2.0")
bazel_dep(name = "openssl", version = "3.3.2.bcr.1")
single_version_override(
module_name = "openssl",
version = "3.3.2.bcr.1",
)
bazel_dep(name = "boringssl", version = "0.20250818.0")
# override boringssl with openssl
archive_override(
module_name = "boringssl",
integrity = "sha256-vtuxaVVVX5mxp7G6kPyXh560ECUIG+NZ7Nap/L3xyNI=",
patch_strip = 0,
patches = [
# Note: the openssl-build-file.patch copied from https://github.com/secretflow/bazel-registry/tree/main/modules/openssl/3.3.2.bcr.1/patches
"//bazel/patches:openssl-build-file.patch",
"//bazel/patches:openssl-module-file.patch",
],
strip_prefix = "openssl-openssl-3.3.2",
urls = ["https://github.com/openssl/openssl/archive/refs/tags/openssl-3.3.2.tar.gz"],
)
# override orc and curl version
bazel_dep(name = "orc", version = "2.2.1")
bazel_dep(name = "curl", version = "8.11.0.bcr.2")
# For experimental/squirrel and examples/cpp
bazel_dep(name = "eigen", version = "3.4.90-20230801-66e8f3")
bazel_dep(name = "seal", version = "4.1.1")
bazel_dep(name = "spdlog", version = "1.14.1")
bazel_dep(name = "abseil-cpp", version = "20240722.0")
bazel_dep(name = "llvm-raw", version = "20251010.0-3a6b818")
llvm = use_extension("@llvm-raw//utils/bazel:extension.bzl", "llvm")
llvm.configure(
targets = [
"AArch64",
"X86",
"ARM",
],
)
use_repo(llvm, "llvm-project")
# END for experimental/squirrel and examples/cpp
DEFAULT_PYTHON_VERSION = "3.11"
SUPPORTED_PYTHON_VERSIONS = [
# "3.9",
# "3.10",
"3.11",
"3.12",
]
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
[
python.toolchain(
ignore_root_user_error = True,
is_default = python_version == DEFAULT_PYTHON_VERSION,
python_version = python_version,
)
for python_version in SUPPORTED_PYTHON_VERSIONS
]
use_repo(python, "python_versions")
bazel_dep(name = "rules_proto_grpc_python", version = "5.0.0")
# test
bazel_dep(name = "googletest", version = "1.15.2", dev_dependency = True)