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 | |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 7 | libqahwapi-inc := $(LOCAL_PATH)/inc |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 8 | |
| 9 | LOCAL_MODULE := libqahw |
| 10 | LOCAL_MODULE_TAGS := optional |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 11 | LOCAL_C_INCLUDES := $(libqahwapi-inc) |
| 12 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/qahw/inc |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 13 | |
| 14 | LOCAL_SRC_FILES := \ |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 15 | src/qahw_api.cpp |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 16 | |
Vatsal Bucha | a135899 | 2018-11-14 13:25:08 +0530 | [diff] [blame] | 17 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) |
| 18 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 19 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 20 | LOCAL_STATIC_LIBRARIES += libprofile_rt |
| 21 | endif |
| 22 | |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 23 | LOCAL_SHARED_LIBRARIES := \ |
| 24 | liblog \ |
| 25 | libcutils \ |
Dhananjay Kumar | bbb34ae | 2016-10-25 18:03:42 +0530 | [diff] [blame] | 26 | libhardware \ |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 27 | libdl \ |
| 28 | libqahwwrapper |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 29 | |
Dhananjay Kumar | 23a3bec | 2017-01-11 18:38:09 +0530 | [diff] [blame] | 30 | LOCAL_CFLAGS += -Wall -Werror |
| 31 | |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 32 | LOCAL_COPY_HEADERS_TO := mm-audio/qahw_api/inc |
| 33 | LOCAL_COPY_HEADERS := inc/qahw_api.h |
Weiyin Jiang | 82e4094 | 2017-01-10 16:07:34 +0800 | [diff] [blame] | 34 | LOCAL_COPY_HEADERS += inc/qahw_effect_audiosphere.h |
Weiyin Jiang | a3719ac | 2016-11-23 19:29:35 +0800 | [diff] [blame] | 35 | LOCAL_COPY_HEADERS += inc/qahw_effect_bassboost.h |
| 36 | LOCAL_COPY_HEADERS += inc/qahw_effect_environmentalreverb.h |
| 37 | LOCAL_COPY_HEADERS += inc/qahw_effect_equalizer.h |
| 38 | LOCAL_COPY_HEADERS += inc/qahw_effect_presetreverb.h |
| 39 | LOCAL_COPY_HEADERS += inc/qahw_effect_virtualizer.h |
| 40 | LOCAL_COPY_HEADERS += inc/qahw_effect_visualizer.h |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 41 | |
| 42 | LOCAL_PRELINK_MODULE := false |
Sachin Mohan Gadag | 25328bd | 2017-12-06 16:04:16 +0530 | [diff] [blame] | 43 | LOCAL_VENDOR_MODULE := true |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 44 | |
| 45 | include $(BUILD_SHARED_LIBRARY) |
| 46 | |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 47 | #test app compilation |
| 48 | include $(LOCAL_PATH)/test/Android.mk |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 49 | |
Manish Dewangan | b8c83a4 | 2016-09-23 15:10:48 +0530 | [diff] [blame] | 50 | endif |