blob: bd4ae538b2436b51fbbcd3520e3e717682e664af [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
14LOCAL_SRC_FILES := \
15 src/qahw.c \
16 src/qahw_effect.c
17
18LOCAL_SHARED_LIBRARIES := \
19 liblog \
20 libcutils \
21 libhardware \
22 libdl
23
24LOCAL_CFLAGS += -Wall -Werror
25
26LOCAL_COPY_HEADERS_TO := mm-audio/qahw/inc
27LOCAL_COPY_HEADERS := inc/qahw.h
28LOCAL_COPY_HEADERS += inc/qahw_effect_api.h
29
30LOCAL_PRELINK_MODULE := false
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053031LOCAL_VENDOR_MODULE := true
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053032
Vikram Panduranga1719d7c2019-05-24 17:02:47 -070033ifneq ($(filter kona,$(TARGET_BOARD_PLATFORM)),)
34LOCAL_SANITIZE := integer_overflow
35endif
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053036include $(BUILD_SHARED_LIBRARY)
37
38include $(CLEAR_VARS)
39LOCAL_COPY_HEADERS_TO := mm-audio/qahw_api/inc
40LOCAL_COPY_HEADERS := inc/qahw_defs.h
41
42include $(BUILD_COPY_HEADERS)
43endif
Naresh Tanniruf1290152018-11-27 12:16:45 +053044endif