2019-06-18 07:21:29 +00:00
|
|
|
"""Repository rules entry point module for rules_cc."""
|
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
# WARNING: This file only exists for backwards-compatibility.
|
|
|
|
# rules_cc uses the Bazel federation, so please add any new dependencies to
|
|
|
|
# rules_cc_deps() in
|
|
|
|
# https://github.com/bazelbuild/bazel-federation/blob/master/repositories.bzl
|
|
|
|
# Third party dependencies can be added to
|
|
|
|
# https://github.com/bazelbuild/bazel-federation/blob/master/third_party_repositories.bzl
|
|
|
|
# Ideally we'd delete this entire file.
|
|
|
|
|
2019-03-28 07:52:04 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
2019-11-01 15:36:34 +00:00
|
|
|
load("//cc/private/toolchain:cc_configure.bzl", "cc_configure")
|
2019-03-28 07:52:04 +00:00
|
|
|
|
2019-06-18 07:21:29 +00:00
|
|
|
def rules_cc_dependencies():
|
2019-03-28 07:52:04 +00:00
|
|
|
_maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "bazel_skylib",
|
2019-06-28 16:46:43 +00:00
|
|
|
sha256 = "2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a",
|
2019-03-28 07:52:04 +00:00
|
|
|
strip_prefix = "bazel-skylib-0.8.0",
|
|
|
|
urls = [
|
2019-06-27 10:51:21 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/0.8.0.tar.gz",
|
2019-06-28 16:46:43 +00:00
|
|
|
"https://github.com/bazelbuild/bazel-skylib/archive/0.8.0.tar.gz",
|
2019-03-28 07:52:04 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-11-01 15:36:34 +00:00
|
|
|
def rules_cc_toolchains(*args):
|
2019-11-05 14:40:31 +00:00
|
|
|
cc_configure(*args)
|
2019-11-01 15:36:34 +00:00
|
|
|
|
2019-03-28 07:52:04 +00:00
|
|
|
def _maybe(repo_rule, name, **kwargs):
|
2019-04-04 17:25:00 +00:00
|
|
|
if not native.existing_rule(name):
|
2019-03-28 07:52:04 +00:00
|
|
|
repo_rule(name = name, **kwargs)
|