Files
rk35xx-android14/external/stardoc/test/testdata/aspect_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

27 lines
679 B
Python

"""The input file for the aspect test"""
def my_aspect_impl(ctx):
_ignore = [ctx] # @unused
return []
my_aspect = aspect(
implementation = my_aspect_impl,
doc = "This is my aspect. It does stuff.",
attr_aspects = ["deps", "attr_aspect"],
attrs = {
"first": attr.label(mandatory = True, allow_single_file = True),
"second": attr.string_dict(mandatory = True),
},
)
# buildifier: disable=unsorted-dict-items
other_aspect = aspect(
implementation = my_aspect_impl,
doc = "This is another aspect.",
attr_aspects = ["*"],
attrs = {
"_hidden": attr.string(),
"third": attr.int(mandatory = True),
},
)