Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
16 lines
451 B
16 lines
451 B
"""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 = [])}, |
|
)
|
|
|