Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +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 := libqahw |
| 10 | LOCAL_MODULE_TAGS := optional |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 11 | LOCAL_C_INCLUDES := $(libqahw-inc) |
| 12 | |
| 13 | LOCAL_SRC_FILES := \ |
Weiyin Jiang | a3719ac | 2016-11-23 19:29:35 +0800 | [diff] [blame] | 14 | src/qahw.c \ |
| 15 | src/qahw_effect.c |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 16 | |
| 17 | LOCAL_SHARED_LIBRARIES := \ |
| 18 | liblog \ |
| 19 | libcutils \ |
Dhananjay Kumar | bbb34ae | 2016-10-25 18:03:42 +0530 | [diff] [blame] | 20 | libhardware \ |
| 21 | libdl |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 22 | |
Dhananjay Kumar | 23a3bec | 2017-01-11 18:38:09 +0530 | [diff] [blame] | 23 | LOCAL_CFLAGS += -Wall -Werror |
| 24 | |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 25 | LOCAL_COPY_HEADERS_TO := mm-audio/qahw_api/inc |
| 26 | LOCAL_COPY_HEADERS := inc/qahw_api.h |
| 27 | LOCAL_COPY_HEADERS += inc/qahw_defs.h |
Weiyin Jiang | a3719ac | 2016-11-23 19:29:35 +0800 | [diff] [blame] | 28 | LOCAL_COPY_HEADERS += inc/qahw_effect_api.h |
Weiyin Jiang | 82e4094 | 2017-01-10 16:07:34 +0800 | [diff] [blame] | 29 | LOCAL_COPY_HEADERS += inc/qahw_effect_audiosphere.h |
Weiyin Jiang | a3719ac | 2016-11-23 19:29:35 +0800 | [diff] [blame] | 30 | LOCAL_COPY_HEADERS += inc/qahw_effect_bassboost.h |
| 31 | LOCAL_COPY_HEADERS += inc/qahw_effect_environmentalreverb.h |
| 32 | LOCAL_COPY_HEADERS += inc/qahw_effect_equalizer.h |
| 33 | LOCAL_COPY_HEADERS += inc/qahw_effect_presetreverb.h |
| 34 | LOCAL_COPY_HEADERS += inc/qahw_effect_virtualizer.h |
| 35 | LOCAL_COPY_HEADERS += inc/qahw_effect_visualizer.h |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 36 | |
| 37 | LOCAL_PRELINK_MODULE := false |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 38 | |
| 39 | include $(BUILD_SHARED_LIBRARY) |
| 40 | |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 41 | #test app compilation |
| 42 | include $(LOCAL_PATH)/test/Android.mk |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 43 | endif |