bp2build support for proto.include_dirs
Add the following attributes to cc_proto_library
1. transitive_proto_deps
2. cc_deps
(1) will provide a ProtoInfo object for CcProtoGen. This property is
necessary today since Soong modules do not specify the .proto deps
explicitly. Eventually, this ProtoInfo object can be replaced with the
transitive_* properties of deps.ProtoInfo
(2) Will provide a CcInfo for the internal cc_library_static root.
Unlike (1), we will likely need some variation of this property
even post cleanup.
e.g. if foo.proto imports bar.proto, then the generated .cpp code for
foo will need the CcInfo of bar.proto's cc_proto_library.
Bug: 285140726
Test: Manual
Change-Id: I4ec4d9fea44e54f50ac541d023bc2e1768ca4ce4
2 files changed