blob: e1538ef8c132a4107363a8c3aec445b8ace79f93 [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
Piged65f582020-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
Piged65f582020-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 \
28 libqahwwrapper
Manish Dewanganb8c83a42016-09-23 15:10:48 +053029
Dhananjay Kumar23a3bec2017-01-11 18:38:09 +053030LOCAL_CFLAGS += -Wall -Werror
31
Manish Dewanganb8c83a42016-09-23 15:10:48 +053032LOCAL_PRELINK_MODULE := false
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053033LOCAL_VENDOR_MODULE := true
Manish Dewanganb8c83a42016-09-23 15:10:48 +053034
35include $(BUILD_SHARED_LIBRARY)
36
Piged65f582020-09-19 08:57:38 +080037include $(CLEAR_VARS)
38
39LOCAL_MODULE := libqahwapi_headers
40LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/inc
41LOCAL_PROPRIETARY_MODULE := true
42
43include $(BUILD_HEADER_LIBRARY)
44
Manish Dewangan141cb562016-09-27 11:58:05 +053045#test app compilation
46include $(LOCAL_PATH)/test/Android.mk
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053047
Manish Dewanganb8c83a42016-09-23 15:10:48 +053048endif