From 868aa50c2ec19a975bf257e017d57d6309b69576 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Wed, 20 Oct 2021 22:16:02 -0700 Subject: [PATCH] libminui for vendor Build a static variant of libminui for vendor to use. It depends on libdrm statically, and libsync from NDK. This is needed to move charger to vendor partition. Test: builds Bug: 203246116 Change-Id: I0aa7783121502bef6ed98d9060a395931523b34c --- minui/Android.bp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/minui/Android.bp b/minui/Android.bp index f68f6c81..02fb3638 100644 --- a/minui/Android.bp +++ b/minui/Android.bp @@ -24,6 +24,7 @@ package { cc_library { name: "libminui", recovery_available: true, + vendor_available: true, defaults: [ "recovery_defaults", @@ -51,4 +52,15 @@ cc_library { "libpng", "libz", ], + + target: { + vendor: { + exclude_static_libs: [ + "libsync", + ], + shared_libs: [ + "libsync", + ], + }, + }, }