blob: 5d1789c763eb027a8189fabc0c0235131289ebbe [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
Manish Dewanganb8c83a42016-09-23 15:10:48 +05307LOCAL_MODULE := libqahw
8LOCAL_MODULE_TAGS := optional
Pigc00673c2020-09-19 08:57:38 +08009LOCAL_C_INCLUDES := $(LOCAL_PATH)/inc
Manish Dewanganb8c83a42016-09-23 15:10:48 +053010
11LOCAL_SRC_FILES := \
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053012 src/qahw_api.cpp
Manish Dewanganb8c83a42016-09-23 15:10:48 +053013
Vatsal Buchac09ae062018-11-14 13:25:08 +053014ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
15LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
16LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
17LOCAL_STATIC_LIBRARIES += libprofile_rt
18endif
19
Pigc00673c2020-09-19 08:57:38 +080020LOCAL_HEADER_LIBRARIES := \
21 libqahw_headers
22
Manish Dewanganb8c83a42016-09-23 15:10:48 +053023LOCAL_SHARED_LIBRARIES := \
24 liblog \
25 libcutils \
Dhananjay Kumarbbb34ae2016-10-25 18:03:42 +053026 libhardware \
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053027 libdl \
Samyak Jain5deda9e2018-12-24 12:49:31 +053028 libutils \
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053029 libqahwwrapper
Manish Dewanganb8c83a42016-09-23 15:10:48 +053030
Dhananjay Kumar23a3bec2017-01-11 18:38:09 +053031LOCAL_CFLAGS += -Wall -Werror
32
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053033LOCAL_VENDOR_MODULE := true
Manish Dewanganb8c83a42016-09-23 15:10:48 +053034
Deepthi Gunturi6167e2b2020-04-10 09:52:53 +053035ifneq ($(filter kona lahaina holi,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070036LOCAL_SANITIZE := integer_overflow
37endif
Manish Dewanganb8c83a42016-09-23 15:10:48 +053038include $(BUILD_SHARED_LIBRARY)
39
Pigc00673c2020-09-19 08:57:38 +080040include $(CLEAR_VARS)
41
42LOCAL_MODULE := libqahwapi_headers
43LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc
44LOCAL_PROPRIETARY_MODULE := true
45
46include $(BUILD_HEADER_LIBRARY)
47
Manish Dewangan141cb562016-09-27 11:58:05 +053048#test app compilation
49include $(LOCAL_PATH)/test/Android.mk
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053050
Manish Dewanganb8c83a42016-09-23 15:10:48 +053051endif