Refactor `native_shared_libs` in `com.android.runtime-defaults`.
Also rename `bionic_native_shared_libs_device` as
`bionic_native_device_only_shared_libs` for consistency.
Test: art/build/apex/runtests.sh
Change-Id: I48cd9996e85397118ae815d1c2f1fcd6085fc969
diff --git a/build/apex/Android.bp b/build/apex/Android.bp
index fcd6434..5296626 100644
--- a/build/apex/Android.bp
+++ b/build/apex/Android.bp
@@ -49,7 +49,7 @@
"libdl",
]
-bionic_native_shared_libs_device = [
+bionic_native_device_only_shared_libs = [
// ... and their internal dependencies
// These are available only on device
"libc_malloc_debug",
@@ -204,6 +204,7 @@
installable: false,
}
+// Default values shared by device Runtime APEXes.
apex_defaults {
name: "com.android.runtime-defaults",
compile_multilib: "both",
@@ -211,6 +212,7 @@
java_libs: libcore_java_libs,
native_shared_libs: art_runtime_base_native_shared_libs +
bionic_native_shared_libs +
+ bionic_native_device_only_shared_libs +
libcore_native_device_only_shared_libs +
libcore_native_shared_libs,
multilib: {
@@ -245,7 +247,6 @@
apex {
name: "com.android.runtime.release",
defaults: ["com.android.runtime-defaults"],
- native_shared_libs: bionic_native_shared_libs_device,
certificate: ":com.android.runtime.release.certificate",
}
@@ -256,8 +257,7 @@
name: "com.android.runtime.debug",
defaults: ["com.android.runtime-defaults"],
native_shared_libs: art_runtime_debug_native_shared_libs +
- libcore_debug_native_shared_libs +
- bionic_native_shared_libs_device,
+ libcore_debug_native_shared_libs,
multilib: {
both: {
binaries: art_tools_debug_binaries_both,