Protocol Buffers in Bazel - Bazel
Bazel currently provides built-in rules for Java, JavaLite and C++.
proto_library
is a language-agnostic rule that describes relations between .proto
files.
java_proto_library
, java_lite_proto_library
and cc_proto_library
are rules that "attach" to proto_library
and generate language-specific bindings.
By making a java_library
(resp. cc_library
) depend on java_proto_library
(resp. cc_proto_library
) your code gains access to the generated code.
Read full article from Protocol Buffers in Bazel - Bazel
No comments:
Post a Comment