| ifeq ($(call is-board-platform-in-list, sdm845 msmnile kona lahaina taro bengal),true) |
| |
| LOCAL_PATH := $(call my-dir) |
| include $(CLEAR_VARS) |
| |
| #---------------------------------------------------------------------------- |
| # Common definitons |
| #---------------------------------------------------------------------------- |
| |
| agm-def += -D_ANDROID_ |
| |
| #---------------------------------------------------------------------------- |
| # Make the Shared library (libagm) |
| #---------------------------------------------------------------------------- |
| |
| LOCAL_C_INCLUDES := $(LOCAL_PATH)/inc |
| |
| LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/include/mm-audio/ar/ar_osal |
| LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/include/mm-audio/ar/gsl |
| LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/include/mm-audio/ar/acdb |
| LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/include/mm-audio/acdbdata |
| LOCAL_C_INCLUDES += $(TOP)/vendor/qcom/opensource/tinyalsa/include |
| LOCAL_CFLAGS := $(agm-def) |
| LOCAL_CFLAGS += -Wno-tautological-compare |
| LOCAL_CFLAGS += -Wno-macro-redefined |
| LOCAL_CFLAGS += -D_GNU_SOURCE -DACDB_PATH=\"/vendor/etc/acdbdata/\" |
| LOCAL_CFLAGS += -DACDB_DELTA_FILE_PATH="/data/vendor/audio/acdbdata/delta" |
| LOCAL_CFLAGS += -Wall |
| |
| LOCAL_SRC_FILES := src/agm.c\ |
| src/graph.c\ |
| src/graph_module.c\ |
| src/metadata.c\ |
| src/session_obj.c\ |
| src/device.c \ |
| src/utils.c \ |
| src/device_hw_ep.c |
| |
| LOCAL_MODULE := libagm |
| LOCAL_MODULE_OWNER := qti |
| LOCAL_MODULE_TAGS := optional |
| |
| LOCAL_HEADER_LIBRARIES := libspf-headers \ |
| libutils_headers |
| |
| LOCAL_SHARED_LIBRARIES := \ |
| libar-gsl \ |
| liblog \ |
| liblx-osal \ |
| libaudioroute \ |
| libats \ |
| libqti-tinyalsa |
| |
| ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DYNAMIC_LOG)), true) |
| LOCAL_CFLAGS += -DDYNAMIC_LOG_ENABLED |
| LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-log-utils |
| LOCAL_C_INCLUDES += $(TOP)/external/expat/lib/expat.h |
| LOCAL_SHARED_LIBRARIES += libaudio_log_utils \ |
| libexpat |
| endif |
| |
| LOCAL_HEADER_LIBRARIES += libagm_headers |
| LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc/private |
| LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libagm_headers |
| LOCAL_VENDOR_MODULE := true |
| include $(BUILD_SHARED_LIBRARY) |
| |
| include $(CLEAR_VARS) |
| LOCAL_MODULE := libagm_headers |
| LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc/public |
| LOCAL_VENDOR_MODULE := true |
| include $(BUILD_HEADER_LIBRARY) |
| |
| endif # is-board-platform-in-list |