aboutsummaryrefslogtreecommitdiff
path: root/examples/my_org/compliance/BUILD
blob: 074b21ef726074f8b4c1fef3eb6fe4d0dde3589b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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",
    ],
)