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
tree: 33ab6e0622a833344efed243929a2e75ad2ca761
  1. api_surfaces/
  2. bazel_sandwich/
  3. bin/
  4. ci/
  5. compliance/
  6. docs/
  7. examples/
  8. flags/
  9. json_module_graph/
  10. mk2rbc/
  11. mkcompare/
  12. platforms/
  13. product_config/
  14. rules/
  15. scripts/
  16. tests/
  17. toolchains/
  18. utils/
  19. vendor/
  20. .gitignore
  21. bazel.BUILD
  22. bazel.WORKSPACE
  23. buildifier_hook.sh
  24. common.bazelrc
  25. constants_exported_to_soong.bzl
  26. darwin.bazelrc
  27. linux.bazelrc
  28. OWNERS
  29. PREUPLOAD.cfg
  30. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.