blob: b51d82274171835b65b76e749fb26253d9829538 [file] [log] [blame]
Manish Dewanganb8c83a42016-09-23 15:10:48 +05301ifeq ($(strip $(BOARD_SUPPORTS_QAHW)),true)
2
3LOCAL_PATH := $(call my-dir)
4
5include $(CLEAR_VARS)
6
Sidipotu Ashok404f26d2017-10-10 22:27:51 +05307libqahwapi-inc := $(LOCAL_PATH)/inc
Manish Dewanganb8c83a42016-09-23 15:10:48 +05308
9LOCAL_MODULE := libqahw
10LOCAL_MODULE_TAGS := optional
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053011LOCAL_C_INCLUDES := $(libqahwapi-inc)
Manish Dewanganb8c83a42016-09-23 15:10:48 +053012
13LOCAL_SRC_FILES := \
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053014 src/qahw_api.cpp
Manish Dewanganb8c83a42016-09-23 15:10:48 +053015
Vatsal Buchac09ae062018-11-14 13:25:08 +053016ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
17LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
18LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
19LOCAL_STATIC_LIBRARIES += libprofile_rt
20endif
21
Pig346ebfd2020-09-19 08:57:38 +080022LOCAL_HEADER_LIBRARIES := \
23 libqahw_headers
24
Manish Dewanganb8c83a42016-09-23 15:10:48 +053025LOCAL_SHARED_LIBRARIES := \
26 liblog \
27 libcutils \
Dhananjay Kumarbbb34ae2016-10-25 18:03:42 +053028 libhardware \
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053029 libdl \
Samyak Jain5deda9e2018-12-24 12:49:31 +053030 libutils \
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053031 libqahwwrapper
Manish Dewanganb8c83a42016-09-23 15:10:48 +053032
Dhananjay Kumar23a3bec2017-01-11 18:38:09 +053033LOCAL_CFLAGS += -Wall -Werror
34
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053035LOCAL_VENDOR_MODULE := true
Manish Dewanganb8c83a42016-09-23 15:10:48 +053036
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053037ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070038LOCAL_SANITIZE := integer_overflow
39endif
Manish Dewanganb8c83a42016-09-23 15:10:48 +053040include $(BUILD_SHARED_LIBRARY)
41
Pig346ebfd2020-09-19 08:57:38 +080042include $(CLEAR_VARS)
43
44LOCAL_MODULE := libqahwapi_headers
45LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc
46LOCAL_PROPRIETARY_MODULE := true
47
48include $(BUILD_HEADER_LIBRARY)
49
Manish Dewangan141cb562016-09-27 11:58:05 +053050#test app compilation
51include $(LOCAL_PATH)/test/Android.mk
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053052
Manish Dewanganb8c83a42016-09-23 15:10:48 +053053endif