Implement Bazel rule for cc_api_contribution and cc_api_headers
Create Bazel rules for cc_api_headers and cc_api_contribution. These
rules do not have any build actions, but provide "provider" objects
Some deatils
- cc_api_headers provides `CcApiHeaderInfo`. This includes metadata such
as include_dir_path, system (i.e. -I or -isystem), arch. Since we need
this metadata, something like a filegroup is not the best solution to
declare headers
- cc_api_contribution provides `CcApiContributionInfo`. This includes
path to the .map.txt and the headers metadata
Test: b test //build/bazel/rules/apis:cc_api_test_suite
Bug: 220938703
Change-Id: I609480eecc234ab583dcfb5294694f7527a6ccd3
4 files changed