Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | # audio_hal_playback_test |
| 4 | # ============================================================================== |
| 5 | include $(CLEAR_VARS) |
Dhananjay Kumar | 23a3bec | 2017-01-11 18:38:09 +0530 | [diff] [blame] | 6 | LOCAL_SRC_FILES := qahw_playback_test.c \ |
| 7 | qahw_effect_test.c |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 8 | LOCAL_MODULE := hal_play_test |
| 9 | |
| 10 | hal-play-inc = $(TARGET_OUT_HEADERS)/mm-audio/qahw_api/inc |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 11 | hal-play-inc += $(TARGET_OUT_HEADERS)/mm-audio/qahw/inc |
Naresh Tanniru | 79ed9bc | 2017-03-27 18:49:54 +0530 | [diff] [blame] | 12 | hal-play-inc += external/tinyalsa/include |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 13 | |
| 14 | LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare |
| 15 | |
| 16 | LOCAL_SHARED_LIBRARIES := \ |
| 17 | libaudioutils\ |
| 18 | libqahw \ |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 19 | libqahwwrapper \ |
Naresh Tanniru | 79ed9bc | 2017-03-27 18:49:54 +0530 | [diff] [blame] | 20 | libutils \ |
| 21 | libcutils |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 22 | |
Vatsal Bucha | c09ae06 | 2018-11-14 13:25:08 +0530 | [diff] [blame] | 23 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true) |
| 24 | LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 25 | LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage |
| 26 | LOCAL_STATIC_LIBRARIES += libprofile_rt |
| 27 | endif |
| 28 | |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 29 | LOCAL_32_BIT_ONLY := true |
| 30 | |
| 31 | LOCAL_C_INCLUDES += $(hal-play-inc) |
Sachin Mohan Gadag | 25328bd | 2017-12-06 16:04:16 +0530 | [diff] [blame] | 32 | LOCAL_VENDOR_MODULE := true |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 33 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 34 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 35 | LOCAL_SANITIZE := integer_overflow |
| 36 | endif |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 37 | include $(BUILD_EXECUTABLE) |
| 38 | |
| 39 | # audio_hal_multi_record_test |
| 40 | # ============================================================================== |
| 41 | include $(CLEAR_VARS) |
| 42 | LOCAL_SRC_FILES := qahw_multi_record_test.c |
| 43 | LOCAL_MODULE := hal_rec_test |
| 44 | LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare |
| 45 | LOCAL_SHARED_LIBRARIES := \ |
| 46 | libaudioutils \ |
| 47 | libqahw \ |
| 48 | libutils |
| 49 | |
| 50 | LOCAL_32_BIT_ONLY := true |
| 51 | |
| 52 | hal-rec-inc = $(TARGET_OUT_HEADERS)/mm-audio/qahw_api/inc |
| 53 | |
| 54 | LOCAL_C_INCLUDES += $(hal-rec-inc) |
Sachin Mohan Gadag | 25328bd | 2017-12-06 16:04:16 +0530 | [diff] [blame] | 55 | LOCAL_VENDOR_MODULE := true |
| 56 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 57 | ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
Vikram Panduranga | 6ff1c95 | 2019-08-07 13:33:01 -0700 | [diff] [blame] | 58 | LOCAL_SANITIZE := integer_overflow |
| 59 | endif |
Manish Dewangan | 141cb56 | 2016-09-27 11:58:05 +0530 | [diff] [blame] | 60 | include $(BUILD_EXECUTABLE) |