-
Notifications
You must be signed in to change notification settings - Fork 41
/
WORKSPACE
109 lines (77 loc) · 2.98 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
# 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.
workspace(name = "com_alipay_sf_heu")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
#### fetch third-party deps ####
load("//third_party/bazel_cpp:repositories.bzl", "heu_cpp_deps")
heu_cpp_deps()
load("@yacl//bazel:repositories.bzl", "yacl_deps")
yacl_deps()
#### for cpp ####
load(
"@rules_foreign_cc//foreign_cc:repositories.bzl",
"rules_foreign_cc_dependencies",
)
rules_foreign_cc_dependencies(
register_built_tools = False,
register_default_tools = False,
register_preinstalled_tools = True,
)
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
#### for python ####
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
# Python binding.
http_archive(
name = "pybind11_bazel",
sha256 = "dc4882b23a617575d0fd822aba88aa4a14133c3d428b5a8fb83d81d03444a475",
strip_prefix = "pybind11_bazel-8889d39b2b925b2a47519ae09402a96f00ccf2b4",
urls = [
"https://github.com/pybind/pybind11_bazel/archive/8889d39b2b925b2a47519ae09402a96f00ccf2b4.zip",
],
)
# We still require the pybind library.
http_archive(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11.BUILD",
sha256 = "bf8f242abd1abcd375d516a7067490fb71abd79519a282d22b6e4d19282185a7",
strip_prefix = "pybind11-2.12.0",
urls = [
"https://github.com/pybind/pybind11/archive/refs/tags/v2.12.0.tar.gz",
],
)
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
python_configure(name = "local_config_python")
#### for rust ####
http_archive(
name = "rules_rust",
sha256 = "29fee78077bd8c6477bc895a47e6c759f92df0735ed60587e1da7b51f53d26eb",
strip_prefix = "rules_rust-23a4631cad819003642b1a148e458fe4ed2c54e1",
urls = [
# Main branch as of 2021-12-07
"https://github.com/bazelbuild/rules_rust/archive/23a4631cad819003642b1a148e458fe4ed2c54e1.tar.gz",
],
)
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
rust_repositories(version = "1.58.1")
load("//third_party/bazel_rust/cargo:crates.bzl", "rust_fetch_remote_crates")
rust_fetch_remote_crates()
#### for cuda ####
load("@rules_cuda//cuda:repositories.bzl", "register_detected_cuda_toolchains", "rules_cuda_dependencies")
rules_cuda_dependencies()
register_detected_cuda_toolchains()
#### for other third-party libs ####
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()