128f6c2f2SEnji Cooper"""Load dependencies needed to use the googletest library as a 3rd-party consumer.""" 228f6c2f2SEnji Cooper 328f6c2f2SEnji Cooperload("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4*5ca8c28cSEnji Cooperload("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk") 528f6c2f2SEnji Cooper 628f6c2f2SEnji Cooperdef googletest_deps(): 728f6c2f2SEnji Cooper """Loads common dependencies needed to use the googletest library.""" 828f6c2f2SEnji Cooper 928f6c2f2SEnji Cooper if not native.existing_rule("com_googlesource_code_re2"): 1028f6c2f2SEnji Cooper http_archive( 11*5ca8c28cSEnji Cooper name = "com_googlesource_code_re2", 12*5ca8c28cSEnji Cooper sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b", 13*5ca8c28cSEnji Cooper strip_prefix = "re2-2024-07-02", 14*5ca8c28cSEnji Cooper urls = ["https://github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz"], 1528f6c2f2SEnji Cooper ) 1628f6c2f2SEnji Cooper 1728f6c2f2SEnji Cooper if not native.existing_rule("com_google_absl"): 1828f6c2f2SEnji Cooper http_archive( 19*5ca8c28cSEnji Cooper name = "com_google_absl", 20*5ca8c28cSEnji Cooper sha256 = "733726b8c3a6d39a4120d7e45ea8b41a434cdacde401cba500f14236c49b39dc", 21*5ca8c28cSEnji Cooper strip_prefix = "abseil-cpp-20240116.2", 22*5ca8c28cSEnji Cooper urls = ["https://github.com/abseil/abseil-cpp/releases/download/20240116.2/abseil-cpp-20240116.2.tar.gz"], 23*5ca8c28cSEnji Cooper ) 24*5ca8c28cSEnji Cooper 25*5ca8c28cSEnji Cooper if not native.existing_rule("fuchsia_sdk"): 26*5ca8c28cSEnji Cooper fake_fuchsia_sdk( 27*5ca8c28cSEnji Cooper name = "fuchsia_sdk", 2828f6c2f2SEnji Cooper ) 29