diff options
Diffstat (limited to 'build/apex/Android.bp')
| -rw-r--r-- | build/apex/Android.bp | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/build/apex/Android.bp b/build/apex/Android.bp index 193a3c17fe..79f67a2da7 100644 --- a/build/apex/Android.bp +++ b/build/apex/Android.bp @@ -28,21 +28,7 @@ bionic_native_shared_libs = [ bionic_binaries_both = [ "linker", ] -// - Fake library that avoids namespace issues and gives some warnings for nosy apps. -art_runtime_fake_native_shared_libs = [ - // FIXME: Does not work as-is, because `libart_fake` is defined in libart_fake/Android.mk, - // and because a module defined in a Blueprint file cannot depend on a module defined in a - // Makefile. To support `libart_fake` as a dependency of this APEX module, we can either - // (probably in that order of preference): - // a. translate that logic into Blueprint; or - // b. write the whole Android Runtime APEX generation logic in Android.mk; or - // c. introduce an `art_apex` module type extending the `apex` module type and write the - // corresponding Go logic to handle this extra dependency. - //"libart_fake", -] // - Debug variants (binaries for which a 32-bit version is preferred). -// FIXME: These modules are optional (the built product can decide to include them or not). -// Should they be moved to another APEX file? art_runtime_debug_binaries_prefer32 = [ "dex2oatd", "dexoptanalyzerd", @@ -55,7 +41,6 @@ art_runtime_debug_native_shared_libs = [ "libopenjdkjvmd", "libopenjdkjvmtid", "libadbconnectiond", - "libjavacrypto", ] // Files associated with bionic / managed core library time zone APIs. @@ -72,13 +57,15 @@ art_tools_common_binaries = [ "dexlist", ] -art_tools_device_binaries = [ +// Device-only modules listed in LOCAL_REQUIRED_MODULES for module art-tools in art/Android.mk. +art_tools_device_only_binaries = [ + // oatdump cannot link with host linux_bionic due to not using clang lld; + // TODO: Make it work with clang lld. "oatdump", ] // Host-only modules listed in LOCAL_REQUIRED_MODULES for module art-tools in art/Android.mk. -// TODO: Include these modules in the future "host APEX". -art_tools_host_binaries = [ +art_tools_host_only_binaries = [ // FIXME: Does not work as-is, because `ahat` is defined in tools/ahat/Android.mk // (same issue as for `libart_fake` above). //"ahat", @@ -86,7 +73,8 @@ art_tools_host_binaries = [ // ... ] -art_tools_binaries = art_tools_common_binaries + art_tools_device_binaries +art_tools_device_binaries = art_tools_common_binaries + art_tools_device_only_binaries +art_tools_host_binaries = art_tools_common_binaries + art_tools_host_only_binaries apex_key { name: "com.android.runtime.key", @@ -112,7 +100,6 @@ apex { compile_multilib: "both", manifest: "manifest.json", native_shared_libs: art_runtime_base_native_shared_libs - + art_runtime_fake_native_shared_libs + bionic_native_shared_libs, multilib: { both: { @@ -141,7 +128,6 @@ apex { compile_multilib: "both", manifest: "manifest.json", native_shared_libs: art_runtime_base_native_shared_libs - + art_runtime_fake_native_shared_libs + art_runtime_debug_native_shared_libs + bionic_native_shared_libs, multilib: { @@ -156,7 +142,7 @@ apex { + art_runtime_debug_binaries_prefer32, }, first: { - binaries: art_tools_binaries, + binaries: art_tools_device_binaries, } }, prebuilts: art_runtime_time_zone_prebuilts @@ -177,7 +163,6 @@ art_apex { device_supported: false, manifest: "manifest.json", native_shared_libs: art_runtime_base_native_shared_libs - + art_runtime_fake_native_shared_libs + art_runtime_debug_native_shared_libs, multilib: { both: { @@ -186,8 +171,7 @@ art_apex { binaries: art_runtime_base_binaries_both, }, first: { - // TODO: oatdump cannot link with host linux_bionic due to not using clang ld - binaries: art_tools_common_binaries + binaries: art_tools_host_binaries + art_runtime_base_binaries_prefer32 + art_runtime_debug_binaries_prefer32, } |