Merge pull request #4662 from asoffer:patch-1
[google-test.git] / googletest_deps.bzl
blob281af5c06f266d741d4f2c00a796b01f85705f95
1 """Load dependencies needed to use the googletest library as a 3rd-party consumer."""
3 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4 load("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk")
6 def googletest_deps():
7     """Loads common dependencies needed to use the googletest library."""
9     if not native.existing_rule("re2"):
10         http_archive(
11             name = "re2",
12             sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b",
13             strip_prefix = "re2-2024-07-02",
14             urls = ["https://github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz"],
15         )
17     if not native.existing_rule("abseil-cpp"):
18         http_archive(
19             name = "abseil-cpp",
20             sha256 = "733726b8c3a6d39a4120d7e45ea8b41a434cdacde401cba500f14236c49b39dc",
21             strip_prefix = "abseil-cpp-20240116.2",
22             urls = ["https://github.com/abseil/abseil-cpp/releases/download/20240116.2/abseil-cpp-20240116.2.tar.gz"],
23         )
25     if not native.existing_rule("fuchsia_sdk"):
26         fake_fuchsia_sdk(
27             name = "fuchsia_sdk",
28         )