-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtink_cc_deps.bzl
126 lines (114 loc) · 5.18 KB
/
tink_cc_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
"""Dependencies of Tink C++."""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
def tink_cc_deps():
"""Loads dependencies of C++ Tink."""
# Basic rules we need to add to bazel.
# Release from 2024-06-03.
maybe(
http_archive,
name = "bazel_skylib",
sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
],
)
# This is needed to call `py_repositories()` in tink_cc_deps_init, which avoids failures such as [1].
#
# [1] https://github.com/bazelbuild/rules_python/issues/1560
maybe(
http_archive,
name = "rules_python",
sha256 = "9c6e26911a79fbf510a8f06d8eedb40f412023cf7fa6d1461def27116bff022c",
strip_prefix = "rules_python-1.1.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/1.1.0/rules_python-1.1.0.tar.gz",
)
# -------------------------------------------------------------------------
# Protobuf.
# -------------------------------------------------------------------------
# proto_library, cc_proto_library and java_proto_library rules implicitly
# depend respectively on:
# * @com_google_protobuf//:proto
# * @com_google_protobuf//:cc_toolchain
# * @com_google_protobuf//:java_toolchain
# This statement defines the @com_google_protobuf repo.
# Release X.29.3 from 2025-01-08.
maybe(
http_archive,
name = "com_google_protobuf",
sha256 = "e9b9ac1910b1041065839850603caf36e29d3d3d230ddf52bd13778dd31b9046",
strip_prefix = "protobuf-29.3",
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v29.3/protobuf-29.3.zip"],
)
# -------------------------------------------------------------------------
# Abseil.
# -------------------------------------------------------------------------
# Release from 2024-04-08.
maybe(
http_archive,
name = "com_google_absl",
sha256 = "f50e5ac311a81382da7fa75b97310e4b9006474f9560ac46f54a9967f07d4ae3",
strip_prefix = "abseil-cpp-20240722.0",
urls = [
"https://github.com/abseil/abseil-cpp/releases/download/20240722.0/abseil-cpp-20240722.0.tar.gz",
],
)
# -------------------------------------------------------------------------
# BoringSSL.
# -------------------------------------------------------------------------
# Release from 2024-10-03.
maybe(
http_archive,
name = "boringssl",
sha256 = "812f77dd57fef845c4ed630430f1f8efc7e255c4d572fa58b71e6e3ce1692a4a",
strip_prefix = "boringssl-0.20240930.0/",
url = "https://github.com/google/boringssl/releases/download/0.20240930.0/boringssl-0.20240930.0.tar.gz",
)
# -------------------------------------------------------------------------
# rules_license.
# -------------------------------------------------------------------------
# Release from 2024-09-05. Required by BoringSSL.
maybe(
http_archive,
name = "rules_license",
sha256 = "26d4021f6898e23b82ef953078389dd49ac2b5618ac564ade4ef87cced147b38",
url = "https://github.com/bazelbuild/rules_license/releases/download/1.0.0/rules_license-1.0.0.tar.gz",
)
def tink_cc_testonly_deps():
"""Test only dependencies for tink-cc."""
# -------------------------------------------------------------------------
# Wycheproof.
# -------------------------------------------------------------------------
# Commit from 2019-12-17.
maybe(
http_archive,
name = "wycheproof",
sha256 = "eb1d558071acf1aa6d677d7f1cabec2328d1cf8381496c17185bd92b52ce7545",
strip_prefix = "wycheproof-d8ed1ba95ac4c551db67f410c06131c3bc00a97c",
url = "https://github.com/google/wycheproof/archive/d8ed1ba95ac4c551db67f410c06131c3bc00a97c.zip",
)
# -------------------------------------------------------------------------
# GoogleTest/GoogleMock.
# -------------------------------------------------------------------------
# Release from 2024-07-31.
maybe(
http_archive,
name = "com_google_googletest",
sha256 = "7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926",
strip_prefix = "googletest-1.15.2",
url = "https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz",
)
# -------------------------------------------------------------------------
# Google Benchmark.
# -------------------------------------------------------------------------
# Release from 2024-11-28.
maybe(
http_archive,
name = "com_google_benchmark",
sha256 = "32131c08ee31eeff2c8968d7e874f3cb648034377dfc32a4c377fa8796d84981",
strip_prefix = "benchmark-1.9.1",
urls = [
"https://github.com/google/benchmark/archive/refs/tags/v1.9.1.tar.gz",
],
)