Files
rk35xx-android14/external/stardoc/test/testdata/apple_basic_test/input.bzl
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

25 lines
762 B
Python

# buildifier: disable=module-docstring
# buildifier: disable=function-docstring
def exercise_the_api():
var1 = apple_common.platform_type # @unused
var2 = apple_common.AppleDynamicFramework # @unused
exercise_the_api()
# buildifier: disable=rule-impl-return
def my_rule_impl(ctx):
_ignore = [ctx] # @unused
return struct()
# buildifier: disable=unsorted-dict-items
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),
},
)