blob: 8f8253df08a08021e19c6c3a0dd890c248b8f4c7 [file] [log] [blame]
Manish Dewangan141cb562016-09-27 11:58:05 +05301LOCAL_PATH := $(call my-dir)
2
3# audio_hal_playback_test
4# ==============================================================================
5include $(CLEAR_VARS)
Dhananjay Kumar23a3bec2017-01-11 18:38:09 +05306LOCAL_SRC_FILES := qahw_playback_test.c \
7 qahw_effect_test.c
Manish Dewangan141cb562016-09-27 11:58:05 +05308LOCAL_MODULE := hal_play_test
9
10hal-play-inc = $(TARGET_OUT_HEADERS)/mm-audio/qahw_api/inc
Dhanalakshmi Siddani80365d22017-10-10 23:04:55 +053011hal-play-inc += $(TARGET_OUT_HEADERS)/mm-audio/qahw/inc
Naresh Tanniru79ed9bc2017-03-27 18:49:54 +053012hal-play-inc += external/tinyalsa/include
Manish Dewangan141cb562016-09-27 11:58:05 +053013
14LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare
15
16LOCAL_SHARED_LIBRARIES := \
17 libaudioutils\
18 libqahw \
Dhanalakshmi Siddani80365d22017-10-10 23:04:55 +053019 libqahwwrapper \
Naresh Tanniru79ed9bc2017-03-27 18:49:54 +053020 libutils \
21 libcutils
Manish Dewangan141cb562016-09-27 11:58:05 +053022
Vatsal Buchac09ae062018-11-14 13:25:08 +053023ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
24LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
25LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
26LOCAL_STATIC_LIBRARIES += libprofile_rt
27endif
28
Manish Dewangan141cb562016-09-27 11:58:05 +053029LOCAL_32_BIT_ONLY := true
30
31LOCAL_C_INCLUDES += $(hal-play-inc)
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053032LOCAL_VENDOR_MODULE := true
Manish Dewangan141cb562016-09-27 11:58:05 +053033
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070034ifneq ($(filter kona,$(TARGET_BOARD_PLATFORM)),)
35LOCAL_SANITIZE := integer_overflow
36endif
Manish Dewangan141cb562016-09-27 11:58:05 +053037include $(BUILD_EXECUTABLE)
38
39# audio_hal_multi_record_test
40# ==============================================================================
41include $(CLEAR_VARS)
42LOCAL_SRC_FILES := qahw_multi_record_test.c
43LOCAL_MODULE := hal_rec_test
44LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare
45LOCAL_SHARED_LIBRARIES := \
46 libaudioutils \
47 libqahw \
48 libutils
49
50LOCAL_32_BIT_ONLY := true
51
52hal-rec-inc = $(TARGET_OUT_HEADERS)/mm-audio/qahw_api/inc
53
54LOCAL_C_INCLUDES += $(hal-rec-inc)
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053055LOCAL_VENDOR_MODULE := true
56
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070057ifneq ($(filter kona,$(TARGET_BOARD_PLATFORM)),)
58LOCAL_SANITIZE := integer_overflow
59endif
Manish Dewangan141cb562016-09-27 11:58:05 +053060include $(BUILD_EXECUTABLE)