mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-30 16:42:07 +00:00
33 lines
1.2 KiB
Python
33 lines
1.2 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",
|
|
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz"],
|
|
sha256 = "4dccbfd22c0def164c8f47458bd50e0c7148f3d92002cdb459c2a96a68498241",
|
|
)
|
|
|
|
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,
|
|
)
|