blob: bc7690de54adddaf2c141daa2a54ac15b3818af9 [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
Naresh Tanniru79ed9bc2017-03-27 18:49:54 +053010hal-play-inc += external/tinyalsa/include
Manish Dewangan141cb562016-09-27 11:58:05 +053011
12LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare
13
Pig962fad02020-09-19 08:57:38 +080014LOCAL_HEADER_LIBRARIES := \
15 libqahw_headers \
16 libqahwapi_headers
17
Manish Dewangan141cb562016-09-27 11:58:05 +053018LOCAL_SHARED_LIBRARIES := \
19 libaudioutils\
20 libqahw \
Dhanalakshmi Siddani80365d22017-10-10 23:04:55 +053021 libqahwwrapper \
Naresh Tanniru79ed9bc2017-03-27 18:49:54 +053022 libutils \
23 libcutils
Manish Dewangan141cb562016-09-27 11:58:05 +053024
Vatsal Buchac09ae062018-11-14 13:25:08 +053025ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
26LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
27LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
28LOCAL_STATIC_LIBRARIES += libprofile_rt
29endif
30
Manish Dewangan141cb562016-09-27 11:58:05 +053031LOCAL_32_BIT_ONLY := true
32
33LOCAL_C_INCLUDES += $(hal-play-inc)
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053034LOCAL_VENDOR_MODULE := true
Manish Dewangan141cb562016-09-27 11:58:05 +053035
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053036ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070037LOCAL_SANITIZE := integer_overflow
38endif
Manish Dewangan141cb562016-09-27 11:58:05 +053039include $(BUILD_EXECUTABLE)
40
41# audio_hal_multi_record_test
42# ==============================================================================
43include $(CLEAR_VARS)
44LOCAL_SRC_FILES := qahw_multi_record_test.c
45LOCAL_MODULE := hal_rec_test
46LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare
Pig962fad02020-09-19 08:57:38 +080047
48LOCAL_HEADER_LIBRARIES := \
49 libqahwapi_headers
50
Manish Dewangan141cb562016-09-27 11:58:05 +053051LOCAL_SHARED_LIBRARIES := \
52 libaudioutils \
53 libqahw \
54 libutils
55
56LOCAL_32_BIT_ONLY := true
57
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053058LOCAL_VENDOR_MODULE := true
59
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053060ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070061LOCAL_SANITIZE := integer_overflow
62endif
Manish Dewangan141cb562016-09-27 11:58:05 +053063include $(BUILD_EXECUTABLE)