xref: /aosp_15_r20/external/abseil-cpp/WORKSPACE (revision 9356374a3709195abf420251b3e825997ff56c0f)
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 = "7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926",
25    strip_prefix = "googletest-1.15.2",
26    # Keep this URL in sync with the version in ci/cmake_common.sh and
27    # ci/windows_msvc_cmake.bat.
28    urls = ["https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz"],
29)
30
31# RE2 (the regular expression library used by GoogleTest)
32http_archive(
33    name = "com_googlesource_code_re2",
34    sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b",
35    strip_prefix = "re2-2024-07-02",
36    urls = ["https://github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz"],
37    repo_mapping = {"@abseil-cpp": "@com_google_absl"},
38)
39
40# Google benchmark.
41http_archive(
42    name = "com_github_google_benchmark",
43    sha256 = "6bc180a57d23d4d9515519f92b0c83d61b05b5bab188961f36ac7b06b0d9e9ce",
44    strip_prefix = "benchmark-1.8.3",
45    urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.8.3.tar.gz"],
46)
47
48# Bazel Skylib.
49http_archive(
50    name = "bazel_skylib",
51    sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
52    urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz"],
53)
54
55# Bazel platform rules.
56http_archive(
57    name = "platforms",
58    urls = [
59        "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
60        "https://github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
61    ],
62    sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee",
63)
64