bazel-skylib/rules/directory/BUILD

61 lines
1.1 KiB
Python

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(default_applicable_licenses = ["//:license"])
licenses(["notice"])
# export bzl files for the documentation
exports_files(
glob(["*.bzl"]),
visibility = ["//:__subpackages__"],
)
bzl_library(
name = "directory",
srcs = ["directory.bzl"],
visibility = ["//visibility:public"],
deps = [
":providers",
"//lib:paths",
],
)
bzl_library(
name = "glob",
srcs = ["glob.bzl"],
visibility = ["//visibility:public"],
deps = [
":providers",
],
)
bzl_library(
name = "providers",
srcs = ["providers.bzl"],
visibility = ["//visibility:public"],
deps = [
"//rules/directory/private:glob",
"//rules/directory/private:paths",
],
)
bzl_library(
name = "subdirectory",
srcs = ["subdirectory.bzl"],
visibility = ["//visibility:public"],
deps = [
":providers",
],
)
# The files needed for distribution
filegroup(
name = "distribution",
srcs = [
"BUILD",
] + glob(["*.bzl"]),
visibility = [
"//:__pkg__",
],
)