xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/WORKSPACE.bazel (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2022 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5workspace(name = "com_google_quiche")
6
7load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
8
9# -------- Bazel tooling dependencies --------
10
11http_archive(
12    name = "bazel_skylib",
13    sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",  # Last updated 2022-05-18
14    urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz"],
15)
16
17# -------- Dependencies used in core QUICHE build --------
18
19http_archive(
20    name = "com_google_absl",
21    sha256 = "bb5e84fc74362c546ab4193eeafd440a26487f4adf80587d2f2576f03c439c4b",  # Last updated 2024-03-06
22    strip_prefix = "abseil-cpp-53e6dae02bf0d9a5a1d304a3d637c083376b86a1",
23    urls = ["https://github.com/abseil/abseil-cpp/archive/53e6dae02bf0d9a5a1d304a3d637c083376b86a1.zip"],
24)
25
26http_archive(
27    name = "com_google_protobuf",
28    sha256 = "8b28fdd45bab62d15db232ec404248901842e5340299a57765e48abe8a80d930",  # Last updated 2022-05-18
29    strip_prefix = "protobuf-3.20.1",
30    urls = ["https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.20.1.tar.gz"],
31)
32
33http_archive(
34    name = "boringssl",
35    sha256 = "03079cbfe0f1c60cab58961ec45946974d9d89f90ef117b09839ae731697a81a",  # Last updated 2023-06-22
36    strip_prefix = "boringssl-e2fa83865bfcf969f0c71673c1a5eba2814ec447",
37    urls = ["https://github.com/google/boringssl/archive/e2fa83865bfcf969f0c71673c1a5eba2814ec447.tar.gz"],
38)
39
40http_archive(
41    name = "com_google_quic_trace",
42    sha256 = "079331de8c3cbf145a3b57adb3ad4e73d733ecfa84d3486e1c5a9eaeef286549",  # Last updated 2022-05-18
43    strip_prefix = "quic-trace-c7b993eb750e60c307e82f75763600d9c06a6de1",
44    urls = ["https://github.com/google/quic-trace/archive/c7b993eb750e60c307e82f75763600d9c06a6de1.tar.gz"],
45)
46
47http_archive(
48    name = "com_google_googleurl",
49    sha256 = "a1bc96169d34dcc1406ffb750deef3bc8718bd1f9069a2878838e1bd905de989",  # Last updated 2022-04-04
50    urls = ["https://storage.googleapis.com/quiche-envoy-integration/googleurl_9cdb1f4d1a365ebdbcbf179dadf7f8aa5ee802e7.tar.gz"],
51)
52
53http_archive(
54    name = "zlib",
55    build_file = "//build:zlib.BUILD",
56    sha256 = "d8688496ea40fb61787500e863cc63c9afcbc524468cedeb478068924eb54932",  # Last updated 2022-05-18
57    strip_prefix = "zlib-1.2.12",
58    urls = ["https://github.com/madler/zlib/archive/refs/tags/v1.2.12.tar.gz"],
59)
60
61# -------- Dependencies used by QUICHE tests and extra tooling --------
62
63http_archive(
64    name = "com_google_googletest",
65    sha256 = "82808543c49488e712d9bd84c50edf40d692ffdaca552b4b019b8b533d3cf8ef",  # Last updated 2023-04-12
66    strip_prefix = "googletest-12a5852e451baabc79c63a86c634912c563d57bc",
67    urls = ["https://github.com/google/googletest/archive/12a5852e451baabc79c63a86c634912c563d57bc.zip"],
68)
69
70http_archive(
71    name = "com_googlesource_code_re2",
72    sha256 = "1726508efc93a50854c92e3f7ac66eb28f0e57652e413f11d7c1e28f97d997ba",  # Last updated 2023-06-01
73    strip_prefix = "re2-03da4fc0857c285e3a26782f6bc8931c4c950df4",
74    urls = ["https://github.com/google/re2/archive/03da4fc0857c285e3a26782f6bc8931c4c950df4.zip"],
75)
76
77# -------- Load and call dependencies of underlying libraries --------
78
79load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
80
81bazel_skylib_workspace()
82
83load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
84
85protobuf_deps()
86