GoogleTest 1.14.0 now requires C++14 to build. Change `googletest.test.inc.mk` to reflect this requirement. Adjust the build integration logic to handle the new version of GoogleTest (add/remove headers/sources as needed). Tighten down warnings via `CXXFLAGS.clang` instead of ignoring all warnings. Some new warnings snuck in after I did my last round of fix submissions upstream. Also address some overlinking added in the previous version import by removing superfluous libraries. =============================== Expect WhenDynamicCastToTest.AmbiguousCast to fail This change reapplies the expected failure from 1.10.0. Ref: https://github.com/google/googletest/issues/2172 MFC after: 2 weeks Reviewed by: asomers, emaste Differential Revision: https://reviews.freebsd.org/D41399 Merge commit '8ef491440fcaec96f899d73e08873426c78583a4' into googletest-v1.14.0-import
23 lines
1.1 KiB
Python
23 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")
|
|
|
|
def googletest_deps():
|
|
"""Loads common dependencies needed to use the googletest library."""
|
|
|
|
if not native.existing_rule("com_googlesource_code_re2"):
|
|
http_archive(
|
|
name = "com_googlesource_code_re2", # 2023-03-17T11:36:51Z
|
|
sha256 = "cb8b5312a65f2598954545a76e8bce913f35fbb3a21a5c88797a4448e9f9b9d9",
|
|
strip_prefix = "re2-578843a516fd1da7084ae46209a75f3613b6065e",
|
|
urls = ["https://github.com/google/re2/archive/578843a516fd1da7084ae46209a75f3613b6065e.zip"],
|
|
)
|
|
|
|
if not native.existing_rule("com_google_absl"):
|
|
http_archive(
|
|
name = "com_google_absl", # 2023-08-01T14:59:13Z
|
|
sha256 = "d2c09bf3b3aba57ad87a56082020bee2948445407756e92ddaf3595396086853",
|
|
strip_prefix = "abseil-cpp-22091f4c0d6626b3ef40446ce3d4ccab19425ca3",
|
|
urls = ["https://github.com/abseil/abseil-cpp/archive/22091f4c0d6626b3ef40446ce3d4ccab19425ca3.zip"],
|
|
)
|