googletest_deps.bzl 1.1 KB

12345678910111213141516171819202122
  1. """Load dependencies needed to use the googletest library as a 3rd-party consumer."""
  2. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  3. def googletest_deps():
  4. """Loads common dependencies needed to use the googletest library."""
  5. if not native.existing_rule("com_googlesource_code_re2"):
  6. http_archive(
  7. name = "com_googlesource_code_re2", # 2023-03-17T11:36:51Z
  8. sha256 = "cb8b5312a65f2598954545a76e8bce913f35fbb3a21a5c88797a4448e9f9b9d9",
  9. strip_prefix = "re2-578843a516fd1da7084ae46209a75f3613b6065e",
  10. urls = ["https://github.com/google/re2/archive/578843a516fd1da7084ae46209a75f3613b6065e.zip"],
  11. )
  12. if not native.existing_rule("com_google_absl"):
  13. http_archive(
  14. name = "com_google_absl", # 2023-08-01T14:59:13Z
  15. sha256 = "d2c09bf3b3aba57ad87a56082020bee2948445407756e92ddaf3595396086853",
  16. strip_prefix = "abseil-cpp-22091f4c0d6626b3ef40446ce3d4ccab19425ca3",
  17. urls = ["https://github.com/abseil/abseil-cpp/archive/22091f4c0d6626b3ef40446ce3d4ccab19425ca3.zip"],
  18. )