| ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true) |
| |
| LOCAL_PATH := $(call my-dir) |
| |
| include $(CLEAR_VARS) |
| |
| libqahwapi-inc := $(LOCAL_PATH)/inc |
| |
| LOCAL_MODULE := libqahw |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_C_INCLUDES := $(libqahwapi-inc) |
| |
| LOCAL_SRC_FILES := \ |
| src/qahw_api.cpp |
| |
| 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_HEADER_LIBRARIES := \ |
| libqahw_headers |
| |
| LOCAL_SHARED_LIBRARIES := \ |
| liblog \ |
| libcutils \ |
| libhardware \ |
| libdl \ |
| libutils \ |
| libqahwwrapper |
| |
| LOCAL_CFLAGS += -Wall -Werror |
| |
| LOCAL_VENDOR_MODULE := true |
| |
| ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),) |
| LOCAL_SANITIZE := integer_overflow |
| endif |
| include $(BUILD_SHARED_LIBRARY) |
| |
| include $(CLEAR_VARS) |
| |
| LOCAL_MODULE := libqahwapi_headers |
| LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc |
| LOCAL_PROPRIETARY_MODULE := true |
| |
| include $(BUILD_HEADER_LIBRARY) |
| |
| #test app compilation |
| include $(LOCAL_PATH)/test/Android.mk |
| |
| endif |