2023-03-16 10:47:38 -07:00
|
|
|
"""Load dependencies needed to use the googletest library as a 3rd-party consumer."""
|
|
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
2024-02-27 11:53:48 -08:00
|
|
|
load("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk")
|
2023-03-16 10:47:38 -07:00
|
|
|
|
|
|
|
|
def googletest_deps():
|
|
|
|
|
"""Loads common dependencies needed to use the googletest library."""
|
|
|
|
|
|
2024-07-20 23:08:58 -07:00
|
|
|
if not native.existing_rule("re2"):
|
2023-03-16 10:47:38 -07:00
|
|
|
http_archive(
|
2024-07-20 23:08:58 -07:00
|
|
|
name = "re2",
|
2024-07-15 07:50:21 -07:00
|
|
|
sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b",
|
|
|
|
|
strip_prefix = "re2-2024-07-02",
|
|
|
|
|
urls = ["https://github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz"],
|
2023-03-16 10:47:38 -07:00
|
|
|
)
|
|
|
|
|
|
2024-07-20 23:08:58 -07:00
|
|
|
if not native.existing_rule("abseil-cpp"):
|
2023-03-16 10:47:38 -07:00
|
|
|
http_archive(
|
2024-07-20 23:08:58 -07:00
|
|
|
name = "abseil-cpp",
|
2025-09-02 07:13:59 -07:00
|
|
|
sha256 = "9b2b72d4e8367c0b843fa2bcfa2b08debbe3cee34f7aaa27de55a6cbb3e843db",
|
|
|
|
|
strip_prefix = "abseil-cpp-20250814.0",
|
|
|
|
|
urls = ["https://github.com/abseil/abseil-cpp/releases/download/20250814.0/abseil-cpp-20250814.0.tar.gz"],
|
2023-03-16 10:47:38 -07:00
|
|
|
)
|
2024-02-27 11:53:48 -08:00
|
|
|
|
|
|
|
|
if not native.existing_rule("fuchsia_sdk"):
|
|
|
|
|
fake_fuchsia_sdk(
|
|
|
|
|
name = "fuchsia_sdk",
|
|
|
|
|
)
|