googletest_deps.bzl 1.2 KB

12345678910111213141516171819202122232425262728
  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. load("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk")
  4. def googletest_deps():
  5. """Loads common dependencies needed to use the googletest library."""
  6. if not native.existing_rule("com_googlesource_code_re2"):
  7. http_archive(
  8. name = "com_googlesource_code_re2",
  9. sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b",
  10. strip_prefix = "re2-2024-07-02",
  11. urls = ["https://github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz"],
  12. )
  13. if not native.existing_rule("com_google_absl"):
  14. http_archive(
  15. name = "com_google_absl",
  16. sha256 = "733726b8c3a6d39a4120d7e45ea8b41a434cdacde401cba500f14236c49b39dc",
  17. strip_prefix = "abseil-cpp-20240116.2",
  18. urls = ["https://github.com/abseil/abseil-cpp/releases/download/20240116.2/abseil-cpp-20240116.2.tar.gz"],
  19. )
  20. if not native.existing_rule("fuchsia_sdk"):
  21. fake_fuchsia_sdk(
  22. name = "fuchsia_sdk",
  23. )