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