Changes in Bazel rules to support SBOM generation of b build unbundled APEXs.

1) Add MetadataFileInfo provider to modules if METADATA file is declared in attribute applicable_licenses, which might be from default_metadata_file of packages
2) cc_aspect collect MetadataFileInfo for some rules that are transitive deps and included in APEXs
3) Generate SBOM for .apex or .capex in apex rule

Bug: 275472038
Test: CIs
Test: b build //packages/modules/adb/apex:com.android.adbd --config=android --output_groups=+apex_sbom

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