aboutsummaryrefslogtreecommitdiff
path: root/test/testdata/apple_basic_test/input.bzl
blob: c5801bae1413caba5622b998de1c07d8da4650b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# buildifier: disable=module-docstring
# buildifier: disable=function-docstring
def exercise_the_api():
    var1 = apple_common.platform_type
    var2 = apple_common.AppleDynamicFramework

exercise_the_api()

# buildifier: disable=rule-impl-return
def my_rule_impl(ctx):
    return struct()

apple_related_rule = rule(
    implementation = my_rule_impl,
    doc = "This rule does apple-related things.",
    attrs = {
        "first": attr.label(mandatory = True, allow_single_file = True),
        "second": attr.string_dict(mandatory = True),
        "third": attr.output(mandatory = True),
        "fourth": attr.bool(default = False, mandatory = False),
    },
)