Add apex_files output group to apex_aab to forward all base APEX files
for each architecture.

The Mainline CI build target produces both .aab files and .apex files
for each module, in the following layout:

x.aab
y.aab
mainline_modules_arm/x.apex
mainline_modules_arm/y.apex
mainline_modules_arm64/x.apex
mainline_modules_arm64/y.apex
..

Currently, we're only producing the .aab files by building the apex_aab
targets. To dist the .apex files, we either build the apex targets
separately within a --config={android_arm, android_arm64, ..} loop, or
we could just forward the 1:4 split transition'd multi-arch apex files
from the apex_aab target, which are already built.

This is a output group because it can be controlled from a filegroup or
the command line --output_groups flag, which makes it easy to extend the
mainline build script.

For example:

```
apex_aab(
   name = "module",
   mainline_module = "//path/to:apex",
)

filegroup(
   name = "apex_files",
   srcs = [":module"],
   output_group = "apex_files",
)
```

Or: b build //path/to/module --output_groups=apex_files

produces the following:

bazel-bin/path/to/mainline_modules_arm/module.apex
bazel-bin/path/to/mainline_modules_arm64/module.apex
bazel-bin/path/to/mainline_modules_x86/module.apex
bazel-bin/path/to/mainline_modules_x86_64/module.apex

Test: new analysis test
Bug: 238723069
Change-Id: I3f4efa4eff1adeba8c315d9f97729a3a529b32c0
5 files changed
tree: a2529c250c76a2635ae9db192c633aec6e3a4a8f
  1. ci/
  2. docs/
  3. examples/
  4. json_module_graph/
  5. mk2rbc/
  6. platforms/
  7. product_config/
  8. product_variables/
  9. rules/
  10. rules_cc/
  11. scripts/
  12. tests/
  13. vendor/
  14. .gitignore
  15. bazel.BUILD
  16. bazel.sh
  17. bazel.WORKSPACE
  18. buildifier_hook.sh
  19. common.bazelrc
  20. darwin.bazelrc
  21. linux.bazelrc
  22. OWNERS
  23. PREUPLOAD.cfg
  24. 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.