47 lines
1.9 KiB
Python
47 lines
1.9 KiB
Python
# buildifier: disable=module-docstring
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
|
|
|
def repositories():
|
|
"""Load all repositories needed for the targets of rules_foreign_cc_examples"""
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "rules_cc",
|
|
strip_prefix = "rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d",
|
|
url = "https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
|
|
sha256 = "d0c573b94a6ef20ef6ff20154a23d0efcb409fb0e1ff0979cec318dfe42f0cdd",
|
|
type = "zip",
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "rules_android",
|
|
urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
|
|
sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
|
|
strip_prefix = "rules_android-0.1.1",
|
|
)
|
|
|
|
RULES_JVM_EXTERNAL_TAG = "4.0"
|
|
RULES_JVM_EXTERNAL_SHA = "31701ad93dbfe544d597dbe62c9a1fdd76d81d8a9150c2bf1ecf928ecdf97169"
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "rules_jvm_external",
|
|
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
|
|
sha256 = RULES_JVM_EXTERNAL_SHA,
|
|
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
|
|
)
|
|
|
|
maybe(
|
|
http_archive,
|
|
name = "cmake_hello_world_variant_src",
|
|
build_file_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])""",
|
|
strip_prefix = "cmake-hello-world-master",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/jameskbride/cmake-hello-world/archive/master.zip",
|
|
"https://github.com/jameskbride/cmake-hello-world/archive/master.zip",
|
|
],
|
|
sha256 = "d613cf222bbb05b8cff7a1c03c37345ed33744a4ebaf3a8bfd5f56a76e25ca08",
|
|
)
|