Export the headers of stub libraries

Create a target with the headers presented to ModuleLibApi surface. The
top level @api_surfaces repository will contain an alias to this header
target.

This creates some duplication since the relevant CcInfo can be retrieved from
the targets created by the expansion of
cc_stub_suite -> cc_library_static -> ... macros. But creating a new
target explicitly ensures that the alias in @api_surfaces does not get
broken due to any internal refactoring of these macros

Test: b cquery
//frameworks/native/opengl/libs:libEGL_stub_libs_module-libapi_headers
--config=android --output=starlark
--starlark:expr="providers(target)['CcInfo'].compilation_context.includes"
depset(["frameworks/native/opengl/include",
"bazel-out/aosp_cf_arm64_phone-userdebug-opt/bin/frameworks/native/opengl/include",
"frameworks/native/opengl/libs/EGL/include",
"bazel-out/aosp_cf_arm64_phone-userdebug-opt/bin/frameworks/native/opengl/libs/EGL/include"])

Change-Id: I2271d9254948b7d588b4c0017bc0550d8314aed3
1 file changed
tree: a9b7c4d35527f463c7a3e4d2cdf954615a75c8e0
  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. vendor/
  18. .gitignore
  19. bazel.BUILD
  20. bazel.WORKSPACE
  21. buildifier_hook.sh
  22. common.bazelrc
  23. darwin.bazelrc
  24. linux.bazelrc
  25. OWNERS
  26. PREUPLOAD.cfg
  27. 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.