mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-30 16:42:07 +00:00
30 lines
900 B
Python
30 lines
900 B
Python
# We do not initialize rules_foreign_cc, because we only need to access
|
|
# detect_root.bzl file from them.
|
|
local_repository(
|
|
name = "rules_foreign_cc",
|
|
path = "../..",
|
|
)
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
http_archive(
|
|
name = "bazel_skylib",
|
|
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
|
|
],
|
|
)
|
|
|
|
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
|
|
|
bazel_skylib_workspace()
|
|
|
|
new_local_repository(
|
|
name = "repo",
|
|
build_file_content =
|
|
"""filegroup(name = "srcs", srcs = glob(["**/**"]),
|
|
visibility=["//visibility:public"])""",
|
|
path = "dir1",
|
|
)
|