2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-11-30 10:41:18 +00:00
bazel-skylib/rules/BUILD
2020-08-10 14:35:04 -04:00

94 lines
1.7 KiB
Python

load("//:bzl_library.bzl", "bzl_library")
licenses(["notice"])
package(default_visibility = ["//visibility:public"])
bzl_library(
name = "analysis_test",
srcs = ["analysis_test.bzl"],
)
bzl_library(
name = "build_test",
srcs = ["build_test.bzl"],
deps = ["//lib:new_sets"],
)
bzl_library(
name = "copy_file",
srcs = ["copy_file.bzl"],
deps = ["//rules/private:copy_file_private"],
)
bzl_library(
name = "write_file",
srcs = ["write_file.bzl"],
deps = ["//rules/private:write_file_private"],
)
bzl_library(
name = "diff_test",
srcs = ["diff_test.bzl"],
)
bzl_library(
name = "native_binary",
srcs = ["native_binary.bzl"],
deps = ["//rules/private:copy_file_private"],
)
bzl_library(
name = "run_binary",
srcs = ["run_binary.bzl"],
deps = ["//lib:dicts"],
)
bzl_library(
name = "common_settings",
srcs = ["common_settings.bzl"],
)
# Exported for build_test.bzl to make sure of, it is an implementation detail
# of the rule and should not be directly used by anything else.
exports_files(["empty_test.sh"])
filegroup(
name = "test_deps",
testonly = True,
srcs = [
"BUILD",
"empty_test.sh",
] + glob(["*.bzl"]),
)
# The files needed for distribution
filegroup(
name = "distribution",
srcs = [
"BUILD",
] + glob(["*.bzl"]),
visibility = [
"//:__pkg__",
],
)
filegroup(
name = "bins",
srcs = glob(["*.sh"]),
visibility = [
"//:__pkg__",
],
)
# export bzl files for the documentation
exports_files(
glob(["*.bzl"]),
visibility = ["//:__subpackages__"],
)
bzl_library(
name = "select_file",
srcs = ["select_file.bzl"],
)