Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 1 | ifneq ($(AUDIO_USE_STUB_HAL), true) |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 2 | ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true) |
| 3 | |
| 4 | LOCAL_PATH := $(call my-dir) |
| 5 | |
| 6 | include $(CLEAR_VARS) |
| 7 | |
| 8 | libqahw-inc := $(LOCAL_PATH)/inc |
| 9 | |
| 10 | LOCAL_MODULE := libqahwwrapper |
| 11 | LOCAL_MODULE_TAGS := optional |
| 12 | LOCAL_C_INCLUDES := $(libqahw-inc) |
| 13 | |
Samyak Jain | 5deda9e | 2018-12-24 12:49:31 +0530 | [diff] [blame] | 14 | LOCAL_HEADER_LIBRARIES := libutils_headers \ |
| 15 | libsystem_headers \ |
| 16 | libhardware_headers |
| 17 | |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 18 | LOCAL_SRC_FILES := \ |
| 19 | src/qahw.c \ |
| 20 | src/qahw_effect.c |
| 21 | |
| 22 | LOCAL_SHARED_LIBRARIES := \ |
| 23 | liblog \ |
| 24 | libcutils \ |
| 25 | libhardware \ |
| 26 | libdl |
| 27 | |
| 28 | LOCAL_CFLAGS += -Wall -Werror |
| 29 | |
| 30 | LOCAL_COPY_HEADERS_TO := mm-audio/qahw/inc |
| 31 | LOCAL_COPY_HEADERS := inc/qahw.h |
| 32 | LOCAL_COPY_HEADERS += inc/qahw_effect_api.h |
| 33 | |
Samyak Jain | 5deda9e | 2018-12-24 12:49:31 +0530 | [diff] [blame] | 34 | LOCAL_PROPRIETARY_MODULE := true |
Sachin Mohan Gadag | 25328bd | 2017-12-06 16:04:16 +0530 | [diff] [blame] | 35 | LOCAL_VENDOR_MODULE := true |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 36 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 37 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 38 | LOCAL_SANITIZE := integer_overflow |
| 39 | endif |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 40 | include $(BUILD_SHARED_LIBRARY) |
| 41 | |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 42 | endif |
Naresh Tanniru | f129015 | 2018-11-27 12:16:45 +0530 | [diff] [blame] | 43 | endif |