17 lines
451 B
Python
17 lines
451 B
Python
"""Dummy rule to expose select() copts to aspects."""
|
|
|
|
UpbProtoLibraryCoptsInfo = provider(
|
|
"Provides copts for upb proto targets",
|
|
fields = {
|
|
"copts": "copts for upb_proto_library()",
|
|
},
|
|
)
|
|
|
|
def upb_proto_library_copts_impl(ctx):
|
|
return UpbProtoLibraryCoptsInfo(copts = ctx.attr.copts)
|
|
|
|
upb_proto_library_copts = rule(
|
|
implementation = upb_proto_library_copts_impl,
|
|
attrs = {"copts": attr.string_list(default = [])},
|
|
)
|