aboutsummaryrefslogtreecommitdiff
path: root/examples/my_org/compliance
diff options
context:
space:
mode:
authorTony Aiuto <aiuto@google.com>2020-04-16 16:31:32 -0400
committerTony Aiuto <aiuto@google.com>2020-04-16 16:31:32 -0400
commit91adc23926a3ee77057da881c7f06dc599d06a4e (patch)
treeda8568de2a01fb0430d544159afc9612e0f752be /examples/my_org/compliance
downloadbazelbuild-rules_license-91adc23926a3ee77057da881c7f06dc599d06a4e.tar.gz
first commit
Diffstat (limited to 'examples/my_org/compliance')
-rw-r--r--examples/my_org/compliance/BUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/my_org/compliance/BUILD b/examples/my_org/compliance/BUILD
new file mode 100644
index 0000000..074b21e
--- /dev/null
+++ b/examples/my_org/compliance/BUILD
@@ -0,0 +1,31 @@
+# Example license policy definitions.
+
+load("@rules_license//rules:license_policy.bzl", "license_policy")
+
+package(default_visibility = ["//examples:__subpackages__"])
+
+# license_policy rules generally appear in a central location per workspace. They
+# are intermingled with normal target build rules
+license_policy(
+ name = "production_service",
+ conditions = [
+ "notice",
+ "restricted_if_statically_linked",
+ ],
+)
+
+license_policy(
+ name = "mobile_application",
+ conditions = [
+ "notice",
+ ],
+)
+
+license_policy(
+ name = "special_whitelisted_app",
+ # There could be a whitelist of targets here.
+ conditions = [
+ "notice",
+ "whitelist:acme_corp_paid",
+ ],
+)