From 350f81dadca599f0728a6a655595f7b4920d3133 Mon Sep 17 00:00:00 2001 From: Abhay Singh Gill Date: Fri, 5 Jul 2024 02:43:30 +0530 Subject: [PATCH] audioreach-graphservices: Only build headers required for bt codec plugins Signed-off-by: Abhay Singh Gill --- Android.mk | 8 ++++++++ ar_osal/Android.mk | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/Android.mk b/Android.mk index d78afa1..9bbb4db 100644 --- a/Android.mk +++ b/Android.mk @@ -1,3 +1,11 @@ +LOCAL_PATH := $(call my-dir) +GRAPHSERVICE_PATH := $(call my-dir) + ifeq ($(strip $(TARGET_USES_QCOM_MM_AUDIO)),true) +ifneq ($(QCPATH),) include $(call all-subdir-makefiles) +else + include $(GRAPHSERVICE_PATH)/ar_osal/Android.mk + include $(GRAPHSERVICE_PATH)/spf/Android.mk +endif endif diff --git a/ar_osal/Android.mk b/ar_osal/Android.mk index 3d0954d..bab1d39 100644 --- a/ar_osal/Android.mk +++ b/ar_osal/Android.mk @@ -6,6 +6,8 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/api LOCAL_PROPRIETARY_MODULE := true include $(BUILD_HEADER_LIBRARY) +ifneq ($(QCPATH),) + include $(CLEAR_VARS) #---------------------------------------------------------------------------- @@ -92,3 +94,5 @@ LOCAL_SHARED_LIBRARIES += libcutils LOCAL_HEADER_LIBRARIES += vendor_common_inc include $(BUILD_SHARED_LIBRARY) + +endif