blob: decd4c63142f5720595fd8066a846b9290b61ec5 [file] [log] [blame]
Naresh Tanniruf1290152018-11-27 12:16:45 +05301ifneq ($(AUDIO_USE_STUB_HAL), true)
Sidipotu Ashok404f26d2017-10-10 22:27:51 +05302ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true)
3
4LOCAL_PATH := $(call my-dir)
5
6include $(CLEAR_VARS)
7
8libqahw-inc := $(LOCAL_PATH)/inc
9
10LOCAL_MODULE := libqahwwrapper
11LOCAL_MODULE_TAGS := optional
12LOCAL_C_INCLUDES := $(libqahw-inc)
13
Samyak Jain5deda9e2018-12-24 12:49:31 +053014LOCAL_HEADER_LIBRARIES := libutils_headers \
15 libsystem_headers \
16 libhardware_headers
17
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053018LOCAL_SRC_FILES := \
19 src/qahw.c \
20 src/qahw_effect.c
21
22LOCAL_SHARED_LIBRARIES := \
23 liblog \
24 libcutils \
25 libhardware \
26 libdl
27
28LOCAL_CFLAGS += -Wall -Werror
29
30LOCAL_COPY_HEADERS_TO := mm-audio/qahw/inc
31LOCAL_COPY_HEADERS := inc/qahw.h
32LOCAL_COPY_HEADERS += inc/qahw_effect_api.h
33
Samyak Jain5deda9e2018-12-24 12:49:31 +053034LOCAL_PROPRIETARY_MODULE := true
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053035LOCAL_VENDOR_MODULE := true
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053036
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053037ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070038LOCAL_SANITIZE := integer_overflow
39endif
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053040include $(BUILD_SHARED_LIBRARY)
41
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053042endif
Naresh Tanniruf1290152018-11-27 12:16:45 +053043endif