mirror of
https://github.com/google/googletest.git
synced 2025-11-08 14:23:46 -05:00
* Use abseil-cpp@20250512.0, which requires C++17 and removes any/optional/variant polyfills * Test C++23 * Support/test GCC15 * Use Bazel vendor mode to reduce reliance on GitHub PiperOrigin-RevId: 759184924 Change-Id: Ifb866cdd7faf1e5be475b44f69870745e21a3104
29 lines
1.1 KiB
Python
29 lines
1.1 KiB
Python
"""Load dependencies needed to use the googletest library as a 3rd-party consumer."""
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
load("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk")
|
|
|
|
def googletest_deps():
|
|
"""Loads common dependencies needed to use the googletest library."""
|
|
|
|
if not native.existing_rule("re2"):
|
|
http_archive(
|
|
name = "re2",
|
|
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"],
|
|
)
|
|
|
|
if not native.existing_rule("abseil-cpp"):
|
|
http_archive(
|
|
name = "abseil-cpp",
|
|
sha256 = "7262daa7c1711406248c10f41026d685e88223bc92817d16fb93c19adb57f669",
|
|
strip_prefix = "abseil-cpp-20250512.0",
|
|
urls = ["https://github.com/abseil/abseil-cpp/releases/download/20250512.0/abseil-cpp-20250512.0.tar.gz"],
|
|
)
|
|
|
|
if not native.existing_rule("fuchsia_sdk"):
|
|
fake_fuchsia_sdk(
|
|
name = "fuchsia_sdk",
|
|
)
|