1"""Load dependencies needed to use the googletest library as a 3rd-party consumer.""" 2 3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4load("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk") 5 6def googletest_deps(): 7 """Loads common dependencies needed to use the googletest library.""" 8 9 if not native.existing_rule("com_googlesource_code_re2"): 10 http_archive( 11 name = "com_googlesource_code_re2", 12 sha256 = "828341ad08524618a626167bd320b0c2acc97bd1c28eff693a9ea33a7ed2a85f", 13 strip_prefix = "re2-2023-11-01", 14 urls = ["https://github.com/google/re2/releases/download/2023-11-01/re2-2023-11-01.zip"], 15 ) 16 17 if not native.existing_rule("com_google_absl"): 18 http_archive( 19 name = "com_google_absl", 20 sha256 = "338420448b140f0dfd1a1ea3c3ce71b3bc172071f24f4d9a57d59b45037da440", 21 strip_prefix = "abseil-cpp-20240116.0", 22 urls = ["https://github.com/abseil/abseil-cpp/releases/download/20240116.0/abseil-cpp-20240116.0.tar.gz"], 23 ) 24 25 if not native.existing_rule("fuchsia_sdk"): 26 fake_fuchsia_sdk( 27 name = "fuchsia_sdk", 28 ) 29