summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralk3pInjection <webmaster@raspii.tech>2022-05-11 18:07:32 +0800
committeralk3pInjection <webmaster@raspii.tech>2022-05-11 18:07:32 +0800
commit791424811a0d96df0c9984ab3c7e7184d15aeeeb (patch)
tree4d72fb37685ed70a0832080cbfa6032d56214ea5
parentee1748dde8e0275eeddce08bbf8030d4fd1486fa (diff)
mimalloc: Update Soong blueprint for Android 12HEADsugisawa-mr1
* ship secure mode as well Change-Id: Ia9242fb798acc722a9804fc368d3d91ddbe75b44
-rw-r--r--Android.bp24
1 files changed, 15 insertions, 9 deletions
diff --git a/Android.bp b/Android.bp
index e76d70f..a7f48fa 100644
--- a/Android.bp
+++ b/Android.bp
@@ -17,10 +17,13 @@
cc_defaults {
name: "mimalloc_defaults",
defaults: ["linux_bionic_supported"],
+ host_supported: true,
+ native_bridge_supported: true,
cflags: [
"-O3",
//"-DNDEBUG",
- "-DMI_DEBUG=3",
+ //"-DMI_DEBUG=3",
+ "-DMI_SECURE=4",
"-fPIC",
"-Wall",
"-Wextra",
@@ -56,17 +59,14 @@ lib_srcs = [
cc_library {
name: "libmimalloc",
- defaults: ["mimalloc_defaults"],
- srcs: lib_srcs,
-
- // Essential library
- native_coverage: false,
ramdisk_available: true,
+ vendor_ramdisk_available: true,
recovery_available: true,
- host_supported: true,
- native_bridge_supported: true,
- // Export headers for libc
+ defaults: ["mimalloc_defaults"],
+
+ srcs: lib_srcs,
+
export_include_dirs: ["include"],
// Remove dependency on libc to break dependency cycle
@@ -77,9 +77,15 @@ cc_library {
enabled: false,
},
system_shared_libs: [],
+ header_libs: ["libc_headers"],
},
linux_bionic: {
system_shared_libs: [],
+ header_libs: ["libc_headers"],
},
},
+
+ apex_available: [
+ "com.android.runtime",
+ ],
}