art: Package art host test common libraries for art-host-test in Soong
This change introduces a Soong genrule to package the host shared
libraries required by ART host tests into a zip archive. This is part
of the ongoing effort to migrate art-host-tests dependencies from Make
to Soong.
Previously, these shared libraries were collected using a foreach loop
in art/build/Android.gtest.mk. This change replaces that logic with a
new Soong module named art_common_host_test_libs_zip.
The new module:
- Uses a genrule_defaults (art_common_host_test_libs_zip_defaults) to
handle multilib compilation.
- Copies the required shared libraries (e.g., libbase, libc++, libicu)
into a directory structure that mirrors the legacy testcases layout.
- Renames specific libraries (e.g., libcrypto to libcrypto-host.so) to
match the legacy build's output.
- Packages the resulting directory into
art_common_host_test_libs_zip.zip.
Flag: EXEMPT PURE_REFACTOR
Bug: 442489081
Test: m -j art_common_host_test_libs_zip
Change-Id: I74615c1678cbff4457300641447f67998131130e
1 file changed