blob: 0b9220f4d90b313f099315e2f61d3babc5385d0e [file] [log] [blame]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
load("//rules:repo.bzl", "http_archive_or_local")
def google_repos(
rules_cc = None,
rules_pkg = None,
absl = None,
googletest = None):
http_archive_or_local(
name = "rules_cc",
local = rules_cc,
sha256 = "123ababe4be661f2fc9189d3b24deabc003926e87d991832cd46b6ae59f7b3c8",
strip_prefix = "rules_cc-a636005ba28c0344da5110bd8532184c74b6ffdf",
url = "https://github.com/bazelbuild/rules_cc/archive/a636005ba28c0344da5110bd8532184c74b6ffdf.tar.gz",
)
http_archive_or_local(
name = "rules_pkg",
local = rules_pkg,
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz",
],
sha256 = "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2",
)
http_archive_or_local(
name = "com_google_absl",
local = absl,
sha256 = "1da554cf5670fc119ef5afbeb31d10d51e7554df9dced2967663e679b8d852ed",
strip_prefix = "abseil-cpp-e854df09dfcb35056c1d42420028648ee0ebebaf",
url = "https://github.com/abseil/abseil-cpp/archive/e854df09dfcb35056c1d42420028648ee0ebebaf.tar.gz",
)
http_archive_or_local(
name = "googletest",
local = googletest,
sha256 = "353571c2440176ded91c2de6d6cd88ddd41401d14692ec1f99e35d013feda55a",
strip_prefix = "googletest-release-1.11.0",
url = "https://github.com/google/googletest/archive/refs/tags/release-1.11.0.zip",
)
http_archive_or_local(
name = "rules_foreign_cc",
strip_prefix = "rules_foreign_cc-0.9.0",
sha256 = "2a4d07cd64b0719b39a7c12218a3e507672b82a97b98c6a89d38565894cf7c51",
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/0.9.0.tar.gz",
)