tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

googletest_deps.bzl (1872B)


      1 """Load dependencies needed to use the googletest library as a 3rd-party consumer."""
      2 
      3 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
      4 load("//:fake_fuchsia_sdk.bzl", "fake_fuchsia_sdk")
      5 
      6 def googletest_deps():
      7    """Loads common dependencies needed to use the googletest library."""
      8 
      9    if not native.existing_rule("re2"):
     10        http_archive(
     11            name = "re2",
     12            sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b",
     13            strip_prefix = "re2-2024-07-02",
     14            urls = ["https://github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz"],
     15        )
     16 
     17    if not native.existing_rule("abseil-cpp"):
     18        http_archive(
     19            name = "abseil-cpp",
     20            sha256 = "9b2b72d4e8367c0b843fa2bcfa2b08debbe3cee34f7aaa27de55a6cbb3e843db",
     21            strip_prefix = "abseil-cpp-20250814.0",
     22            urls = ["https://github.com/abseil/abseil-cpp/releases/download/20250814.0/abseil-cpp-20250814.0.tar.gz"],
     23        )
     24 
     25    if not native.existing_rule("bazel_features"):
     26        http_archive(
     27            name = "bazel_features",
     28            sha256 = "9390b391a68d3b24aef7966bce8556d28003fe3f022a5008efc7807e8acaaf1a",
     29            strip_prefix = "bazel_features-1.36.0",
     30            url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.36.0/bazel_features-v1.36.0.tar.gz",
     31        )
     32 
     33    if not native.existing_rule("rules_cc"):
     34        http_archive(
     35            name = "rules_cc",
     36            sha256 = "207ea073dd20a705f9e8bc5ac02f5203e9621fc672774bb1a0935aefab7aebfa",
     37            strip_prefix = "rules_cc-0.2.8",
     38            url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.8/rules_cc-0.2.8.tar.gz",
     39        )
     40 
     41    if not native.existing_rule("fuchsia_sdk"):
     42        fake_fuchsia_sdk(
     43            name = "fuchsia_sdk",
     44        )