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", # 2022-12-21T14:29:10Z
  8. sha256 = "b9ce3a51beebb38534d11d40f8928d40509b9e18a735f6a4a97ad3d014c87cb5",
  9. strip_prefix = "re2-d0b1f8f2ecc2ea74956c7608b6f915175314ff0e",
  10. urls = ["https://github.com/google/re2/archive/d0b1f8f2ecc2ea74956c7608b6f915175314ff0e.zip"],
  11. )
  12. if not native.existing_rule("com_google_absl"):
  13. http_archive(
  14. name = "com_google_absl", # 2023-04-06T14:42:25Z
  15. sha256 = "a50452f02402262f9a61a8eedda60f76dda6b9538d36b34b55bce9f74a4d5ef8",
  16. strip_prefix = "abseil-cpp-e73b9139ee9b853a4bd7812531442c138da09084",
  17. urls = ["https://github.com/abseil/abseil-cpp/archive/e73b9139ee9b853a4bd7812531442c138da09084.zip"],
  18. )