/
deps.bzl
133 lines (111 loc) · 5.45 KB
/
deps.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
#
# Copyright 2020 the authors listed in CONTRIBUTORS.md
#
# 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.
#
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
load("@rules_rust//proto:repositories.bzl", "rust_proto_repositories")
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
load("//third_party/cargo:crates.bzl", "raze_fetch_remote_crates")
load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_repos", "rules_proto_grpc_toolchains")
load("@rules_proto_grpc//python:repositories.bzl", rules_proto_grpc_python_repos = "python_repos")
load("@emsdk//:deps.bzl", emsdk_deps = "deps")
load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
# load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependencies")
load("@pybind11_bazel//:python_configure.bzl", "python_configure")
def psi_deps():
# General dependencies.
if "private_join_and_compute" not in native.existing_rules():
#TODO revert to the upstream repository when the https://github.com/google/private-join-and-compute/pull/21 is merged
http_archive(
name = "private_join_and_compute",
sha256 = "5678dab460a75d7010ab4ca5c8830519c00ba10a3ed4245333b6c76c90d56612",
strip_prefix = "private-join-and-compute-f4571aca5e41d59b88b9b4b18f77645f9f473f2b",
url = "https://github.com/s0l0ist/private-join-and-compute/archive/f4571aca5e41d59b88b9b4b18f77645f9f473f2b.zip",
)
if "com_google_absl" not in native.existing_rules():
http_archive(
name = "com_google_absl",
sha256 = "31b0b6fe3f14875a27c48d5775d05e157bab233065f7c55f0e1f4991c5e95840",
strip_prefix = "abseil-cpp-522606b7fae37836c138e83f6eec0eabb9947dc0",
url = "https://github.com/abseil/abseil-cpp/archive/522606b7fae37836c138e83f6eec0eabb9947dc0.zip",
)
if "com_google_googletest" not in native.existing_rules():
http_archive(
name = "com_google_googletest",
sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2",
strip_prefix = "googletest-release-1.12.1",
url = "https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz",
)
if "com_google_benchmark" not in native.existing_rules():
http_archive(
name = "com_google_benchmark",
sha256 = "f6f62c4a1fc9b0a2edb70c77cdb9011b605430eabb4dddbb14d60fb492aea7bb",
strip_prefix = "benchmark-d572f4777349d43653b21d6c2fc63020ab326db2",
url = "https://github.com/google/benchmark/archive/d572f4777349d43653b21d6c2fc63020ab326db2.zip",
)
if "boringssl" not in native.existing_rules():
http_archive(
name = "boringssl",
sha256 = "018c4cec9554528fc58962aa71738940f051fef10c2ef6e61fa34ddbdc126387",
strip_prefix = "boringssl-0e2e48f9baa351c58fb68540332dc1382773699a",
url = "https://github.com/google/boringssl/archive/0e2e48f9baa351c58fb68540332dc1382773699a.zip",
)
if "com_github_google_glog" not in native.existing_rules():
http_archive(
name = "com_github_google_glog",
sha256 = "42c7395b26f1aa2157015b7d7b811b799c9c477147f4239410bde48901f009c5",
strip_prefix = "glog-c18db3903b9f0abd80ae740fde94f7e32aa40b92",
urls = ["https://github.com/google/glog/archive/c18db3903b9f0abd80ae740fde94f7e32aa40b92.zip"],
)
if "com_github_gflags_gflags" not in native.existing_rules():
http_archive(
name = "com_github_gflags_gflags",
sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf",
strip_prefix = "gflags-2.2.2",
urls = [
"https://github.com/gflags/gflags/archive/v2.2.2.tar.gz",
],
)
# gRPC for PJC.
grpc_deps()
apple_rules_dependencies()
# Language-specific dependencies.
# Javascript.
build_bazel_rules_nodejs_dependencies()
emsdk_deps()
# Python.
python_configure(
name = "local_config_python",
)
# Protobuf.
rules_proto_grpc_repos()
rules_proto_grpc_toolchains()
rules_proto_grpc_python_repos()
rules_proto_dependencies()
rules_proto_toolchains()
# Golang.
go_rules_dependencies()
go_register_toolchains(version = "1.21.6")
rules_pkg_dependencies()
gazelle_dependencies()
# Rust.
raze_fetch_remote_crates()
rust_repositories(edition = "2018")
rust_proto_repositories()