blob: bc7690de54adddaf2c141daa2a54ac15b3818af9 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
# audio_hal_playback_test
# ==============================================================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES := qahw_playback_test.c \
qahw_effect_test.c
LOCAL_MODULE := hal_play_test
hal-play-inc += external/tinyalsa/include
LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare
LOCAL_HEADER_LIBRARIES := \
libqahw_headers \
libqahwapi_headers
LOCAL_SHARED_LIBRARIES := \
libaudioutils\
libqahw \
libqahwwrapper \
libutils \
libcutils
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
LOCAL_STATIC_LIBRARIES += libprofile_rt
endif
LOCAL_32_BIT_ONLY := true
LOCAL_C_INCLUDES += $(hal-play-inc)
LOCAL_VENDOR_MODULE := true
ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
LOCAL_SANITIZE := integer_overflow
endif
include $(BUILD_EXECUTABLE)
# audio_hal_multi_record_test
# ==============================================================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES := qahw_multi_record_test.c
LOCAL_MODULE := hal_rec_test
LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare
LOCAL_HEADER_LIBRARIES := \
libqahwapi_headers
LOCAL_SHARED_LIBRARIES := \
libaudioutils \
libqahw \
libutils
LOCAL_32_BIT_ONLY := true
LOCAL_VENDOR_MODULE := true
ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
LOCAL_SANITIZE := integer_overflow
endif
include $(BUILD_EXECUTABLE)