Merge pull request #4527 from abhina-sree:abhina/add_zos
[google-test.git] / googletest_deps.bzl
blob1b7d2c8b8b15161c88bdb2287a1a6ca125073094
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("com_googlesource_code_re2"):
10         http_archive(
11             name = "com_googlesource_code_re2",
12             sha256 = "828341ad08524618a626167bd320b0c2acc97bd1c28eff693a9ea33a7ed2a85f",
13             strip_prefix = "re2-2023-11-01",
14             urls = ["https://github.com/google/re2/releases/download/2023-11-01/re2-2023-11-01.zip"],
15         )
17     if not native.existing_rule("com_google_absl"):
18         http_archive(
19             name = "com_google_absl",
20             sha256 = "338420448b140f0dfd1a1ea3c3ce71b3bc172071f24f4d9a57d59b45037da440",
21             strip_prefix = "abseil-cpp-20240116.0",
22             urls = ["https://github.com/abseil/abseil-cpp/releases/download/20240116.0/abseil-cpp-20240116.0.tar.gz"],
23         )
25     if not native.existing_rule("fuchsia_sdk"):
26         fake_fuchsia_sdk(
27             name = "fuchsia_sdk",
28         )