From 43554f61c3ee5cac2f2187aa87de7ee6c7329aa8 Mon Sep 17 00:00:00 2001 From: Vinay Verma Date: Wed, 14 Jun 2017 14:35:18 +0530 Subject: [PATCH] Add vndk sp libraries to system lib. Change-Id: Ia5b0087506571a929169736dfe108e7ff3f6d40f --- base.mk | 19 +++++++++++++++++++ vndk/Android.mk | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 vndk/Android.mk diff --git a/base.mk b/base.mk index 0d9f5ec0..4e251fbd 100644 --- a/base.mk +++ b/base.mk @@ -1006,3 +1006,22 @@ endif ifeq ($(strip $(TARGET_USES_QTIC_EXTENSION)),true) PRODUCT_BOOT_JARS += com.qualcomm.qti.camera endif + +PRODUCT_PACKAGES += \ + android.hardware.renderscript@1.0.vndk-sp\ + android.hardware.graphics.allocator@2.0.vndk-sp\ + android.hardware.graphics.mapper@2.0.vndk-sp\ + android.hardware.graphics.common@1.0.vndk-sp\ + android.hidl.base@1.0.vndk-sp\ + libhwbinder.vndk-sp\ + libbase.vndk-sp\ + libcutils.vndk-sp\ + libhardware.vndk-sp\ + libhidlbase.vndk-sp\ + libhidltransport.vndk-sp\ + libutils.vndk-sp\ + libc++.vndk-sp\ + libsync.vndk-sp\ + libbacktrace.vndk-sp\ + libunwind.vndk-sp\ + liblzma.vndk-sp\ diff --git a/vndk/Android.mk b/vndk/Android.mk new file mode 100644 index 00000000..0f7a4d5c --- /dev/null +++ b/vndk/Android.mk @@ -0,0 +1,48 @@ +LOCAL_PATH := $(call my-dir) +VNDK_SP_LIBRARIES := \ + android.hardware.renderscript@1.0\ + android.hardware.graphics.allocator@2.0\ + android.hardware.graphics.mapper@2.0\ + android.hardware.graphics.common@1.0\ + android.hidl.base@1.0\ + libhwbinder\ + libbase\ + libcutils\ + libhardware\ + libhidlbase\ + libhidltransport\ + libutils\ + libc++\ + libsync\ + libbacktrace\ + libunwind\ + liblzma\ + +define add-vndk-sp-lib +include $$(CLEAR_VARS) +LOCAL_MODULE := $1.vndk-sp +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_PREBUILT_MODULE_FILE := $$(TARGET_OUT)/lib/$1.so +LOCAL_MULTILIB := 32 +LOCAL_MODULE_TAGS := optional +LOCAL_INSTALLED_MODULE_STEM := $1.so +LOCAL_MODULE_SUFFIX := .so +LOCAL_VENDOR_MODULE := true +LOCAL_MODULE_RELATIVE_PATH := vndk-sp +include $$(BUILD_PREBUILT) + +include $$(CLEAR_VARS) +LOCAL_MODULE := $1.vndk-sp +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_PREBUILT_MODULE_FILE := $$(TARGET_OUT)/lib64/$1.so +LOCAL_MULTILIB := 64 +LOCAL_MODULE_TAGS := optional +LOCAL_INSTALLED_MODULE_STEM := $1.so +LOCAL_MODULE_SUFFIX := .so +LOCAL_VENDOR_MODULE := true +LOCAL_MODULE_RELATIVE_PATH := vndk-sp +include $$(BUILD_PREBUILT) +endef + +$(foreach lib,$(VNDK_SP_LIBRARIES),\ + $(eval $(call add-vndk-sp-lib,$(lib))))