2018-11-27 06:46:45 +00:00
|
|
|
ifneq ($(AUDIO_USE_STUB_HAL), true)
|
2017-10-10 16:57:51 +00:00
|
|
|
ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true)
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
libqahw-inc := $(LOCAL_PATH)/inc
|
|
|
|
|
|
|
|
LOCAL_MODULE := libqahwwrapper
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_C_INCLUDES := $(libqahw-inc)
|
|
|
|
|
2018-12-24 07:19:31 +00:00
|
|
|
LOCAL_HEADER_LIBRARIES := libutils_headers \
|
|
|
|
libsystem_headers \
|
|
|
|
libhardware_headers
|
|
|
|
|
2017-10-10 16:57:51 +00:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
src/qahw.c \
|
|
|
|
src/qahw_effect.c
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
liblog \
|
|
|
|
libcutils \
|
|
|
|
libhardware \
|
|
|
|
libdl
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += -Wall -Werror
|
|
|
|
|
|
|
|
LOCAL_COPY_HEADERS_TO := mm-audio/qahw/inc
|
|
|
|
LOCAL_COPY_HEADERS := inc/qahw.h
|
|
|
|
LOCAL_COPY_HEADERS += inc/qahw_effect_api.h
|
|
|
|
|
2018-12-24 07:19:31 +00:00
|
|
|
LOCAL_PROPRIETARY_MODULE := true
|
2017-12-06 10:34:16 +00:00
|
|
|
LOCAL_VENDOR_MODULE := true
|
2017-10-10 16:57:51 +00:00
|
|
|
|
2020-04-10 04:22:53 +00:00
|
|
|
ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
|
2019-08-07 20:33:01 +00:00
|
|
|
LOCAL_SANITIZE := integer_overflow
|
|
|
|
endif
|
2017-10-10 16:57:51 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
endif
|
2018-11-27 06:46:45 +00:00
|
|
|
endif
|