aboutsummaryrefslogtreecommitdiff
path: root/rules/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'rules/BUILD')
-rw-r--r--rules/BUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/rules/BUILD b/rules/BUILD
index f0fd218..83e8c14 100644
--- a/rules/BUILD
+++ b/rules/BUILD
@@ -15,12 +15,34 @@
# limitations under the License.
"""Rules for making license declarations."""
+load("@rules_license//rules:licenses_core.bzl", "trace")
+
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:public"],
)
+licenses(["notice"])
+
+# This target controls the value of the traced target used during dependency collection.
+# This value should always be the empty string!
+# Specify this value with a flag, like --@rules_license//rules:trace_target=//target/to:trace
+trace(
+ name = "trace_target",
+ build_setting_default = "", # TRACE-TARGET-SHOULD-BE-EMPTY
+ visibility = ["//visibility:public"],
+)
+
filegroup(
name = "standard_package",
srcs = glob(["**"]),
)
+
+# Do not create a bzl_library(). That would create a dependency loop back
+# to bazel-skylib. We export the .bzl files to the documentation maker.
+exports_files(
+ glob([
+ "*.bzl",
+ ]),
+ visibility = ["//doc_build:__pkg__"],
+)