• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Tink C++ AWS-KMS Integration Dependencies."""
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5def tink_cc_awskms_deps():
6    """Loads dependencies for Tink C++ AWS-KMS."""
7    if not native.existing_rule("aws_cpp_sdk"):
8        # Release from 2020-06-01
9        http_archive(
10            name = "aws_cpp_sdk",
11            # Must be in sync with defines in third_party/aws_sdk_cpp.BUILD.bazel.
12            url = "https://github.com/aws/aws-sdk-cpp/archive/1.7.345.tar.gz",
13            sha256 = "7df6491e6e0fac726c00b5e6298d5749b131b25a3dd8b905eb311dc7dcc97aaf",
14            strip_prefix = "aws-sdk-cpp-1.7.345",
15            build_file = "@tink_cc_awskms//:third_party/aws_sdk_cpp.BUILD.bazel",
16        )
17
18    if not native.existing_rule("aws_c_common"):
19        http_archive(
20            name = "aws_c_common",
21            url = "https://github.com/awslabs/aws-c-common/archive/v0.4.29.tar.gz",
22            sha256 = "01c2a58553a37b3aa5914d9e0bf7bf14507ff4937bc5872a678892ca20fcae1f",
23            strip_prefix = "aws-c-common-0.4.29",
24            build_file = "@tink_cc_awskms//:third_party/aws_c_common.BUILD.bazel",
25        )
26
27    if not native.existing_rule("aws_c_event_stream"):
28        http_archive(
29            name = "aws_c_event_stream",
30            url = "https://github.com/awslabs/aws-c-event-stream/archive/v0.1.4.tar.gz",
31            sha256 = "31d880d1c868d3f3df1e1f4b45e56ac73724a4dc3449d04d47fc0746f6f077b6",
32            strip_prefix = "aws-c-event-stream-0.1.4",
33            build_file = "@tink_cc_awskms//:third_party/aws_c_event_stream.BUILD.bazel",
34        )
35
36    if not native.existing_rule("aws_checksums"):
37        http_archive(
38            name = "aws_checksums",
39            url = "https://github.com/awslabs/aws-checksums/archive/v0.1.5.tar.gz",
40            sha256 = "6e6bed6f75cf54006b6bafb01b3b96df19605572131a2260fddaf0e87949ced0",
41            strip_prefix = "aws-checksums-0.1.5",
42            build_file = "@tink_cc_awskms//:third_party/aws_checksums.BUILD.bazel",
43        )
44
45    if not native.existing_rule("curl"):
46        # Release from 2016-05-30
47        http_archive(
48            name = "curl",
49            url = "https://mirror.bazel.build/curl.haxx.se/download/curl-7.49.1.tar.gz",
50            sha256 = "ff3e80c1ca6a068428726cd7dd19037a47cc538ce58ef61c59587191039b2ca6",
51            strip_prefix = "curl-7.49.1",
52            build_file = "@tink_cc_awskms//:third_party/curl.BUILD.bazel",
53        )
54
55    if not native.existing_rule("zlib"):
56        # Releaes from 2022-03-27.
57        http_archive(
58            name = "zlib",
59            url = "https://mirror.bazel.build/zlib.net/zlib-1.2.12.tar.gz",
60            sha256 = "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9",
61            strip_prefix = "zlib-1.2.12",
62            build_file = "@tink_cc_awskms//:third_party/zlib.BUILD.bazel",
63        )
64