xref: /aosp_15_r20/external/cronet/third_party/abseil-cpp/WORKSPACE (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1#
2# Copyright 2019 The Abseil Authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      https://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17workspace(name = "com_google_absl")
18
19load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
20
21# GoogleTest/GoogleMock framework. Used by most unit-tests.
22http_archive(
23  name = "com_google_googletest",
24  sha256 = "8ad598c73ad796e0d8280b082cebd82a630d73e73cd3c70057938a6501bba5d7",
25  strip_prefix = "googletest-1.14.0",
26  # Keep this URL in sync with ABSL_GOOGLETEST_COMMIT in ci/cmake_common.sh and
27  # ci/windows_msvc_cmake.bat.
28  urls = ["https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz"],
29)
30
31# RE2 (the regular expression library used by GoogleTest)
32http_archive(
33    name = "com_googlesource_code_re2",
34    sha256 = "828341ad08524618a626167bd320b0c2acc97bd1c28eff693a9ea33a7ed2a85f",
35    strip_prefix = "re2-2023-11-01",
36    urls = ["https://github.com/google/re2/releases/download/2023-11-01/re2-2023-11-01.zip"],
37)
38
39# Google benchmark.
40http_archive(
41    name = "com_github_google_benchmark",
42    sha256 = "6bc180a57d23d4d9515519f92b0c83d61b05b5bab188961f36ac7b06b0d9e9ce",
43    strip_prefix = "benchmark-1.8.3",
44    urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.8.3.tar.gz"],
45)
46
47# Bazel Skylib.
48http_archive(
49  name = "bazel_skylib",
50  sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
51  urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz"],
52)
53
54# Bazel platform rules.
55http_archive(
56    name = "platforms",
57    sha256 = "8150406605389ececb6da07cbcb509d5637a3ab9a24bc69b1101531367d89d74",
58    urls = ["https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz"],
59)
60