Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame^] | 1 | ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true) |
| 2 | |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | |
| 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | libqahw-inc := $(LOCAL_PATH)/inc |
| 8 | |
| 9 | LOCAL_MODULE := libqahwwrapper |
| 10 | LOCAL_MODULE_TAGS := optional |
| 11 | LOCAL_C_INCLUDES := $(libqahw-inc) |
| 12 | |
| 13 | LOCAL_SRC_FILES := \ |
| 14 | src/qahw.c \ |
| 15 | src/qahw_effect.c |
| 16 | |
| 17 | LOCAL_SHARED_LIBRARIES := \ |
| 18 | liblog \ |
| 19 | libcutils \ |
| 20 | libhardware \ |
| 21 | libdl |
| 22 | |
| 23 | LOCAL_CFLAGS += -Wall -Werror |
| 24 | |
| 25 | LOCAL_COPY_HEADERS_TO := mm-audio/qahw/inc |
| 26 | LOCAL_COPY_HEADERS := inc/qahw.h |
| 27 | LOCAL_COPY_HEADERS += inc/qahw_effect_api.h |
| 28 | |
| 29 | LOCAL_PRELINK_MODULE := false |
| 30 | |
| 31 | include $(BUILD_SHARED_LIBRARY) |
| 32 | |
| 33 | include $(CLEAR_VARS) |
| 34 | LOCAL_COPY_HEADERS_TO := mm-audio/qahw_api/inc |
| 35 | LOCAL_COPY_HEADERS := inc/qahw_defs.h |
| 36 | |
| 37 | include $(BUILD_COPY_HEADERS) |
| 38 | endif |