blob: b1a99e9793a5239676885d1d1e60258f58033661 [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)
12LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/qahw/inc
Manish Dewanganb8c83a42016-09-23 15:10:48 +053013
14LOCAL_SRC_FILES := \
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053015 src/qahw_api.cpp
Manish Dewanganb8c83a42016-09-23 15:10:48 +053016
Vatsal Buchac09ae062018-11-14 13:25:08 +053017ifeq ($(strip $(AUDIO_FEATURE_ENABLED_GCOV)),true)
18LOCAL_CFLAGS += --coverage -fprofile-arcs -ftest-coverage
19LOCAL_CPPFLAGS += --coverage -fprofile-arcs -ftest-coverage
20LOCAL_STATIC_LIBRARIES += libprofile_rt
21endif
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
Manish Dewanganb8c83a42016-09-23 15:10:48 +053033LOCAL_COPY_HEADERS_TO := mm-audio/qahw_api/inc
Samyak Jain5deda9e2018-12-24 12:49:31 +053034LOCAL_COPY_HEADERS := inc/qahw_defs.h
35LOCAL_COPY_HEADERS += inc/qahw_api.h
Weiyin Jiang82e40942017-01-10 16:07:34 +080036LOCAL_COPY_HEADERS += inc/qahw_effect_audiosphere.h
Weiyin Jianga3719ac2016-11-23 19:29:35 +080037LOCAL_COPY_HEADERS += inc/qahw_effect_bassboost.h
38LOCAL_COPY_HEADERS += inc/qahw_effect_environmentalreverb.h
39LOCAL_COPY_HEADERS += inc/qahw_effect_equalizer.h
40LOCAL_COPY_HEADERS += inc/qahw_effect_presetreverb.h
41LOCAL_COPY_HEADERS += inc/qahw_effect_virtualizer.h
42LOCAL_COPY_HEADERS += inc/qahw_effect_visualizer.h
Manish Dewanganb8c83a42016-09-23 15:10:48 +053043
Sachin Mohan Gadag25328bd2017-12-06 16:04:16 +053044LOCAL_VENDOR_MODULE := true
Manish Dewanganb8c83a42016-09-23 15:10:48 +053045
Vignesh Kulothungan4e64c782020-01-15 18:34:48 -080046ifneq ($(filter kona lahaina,$(TARGET_BOARD_PLATFORM)),)
Vikram Panduranga6ff1c952019-08-07 13:33:01 -070047LOCAL_SANITIZE := integer_overflow
48endif
Manish Dewanganb8c83a42016-09-23 15:10:48 +053049include $(BUILD_SHARED_LIBRARY)
50
Manish Dewangan141cb562016-09-27 11:58:05 +053051#test app compilation
52include $(LOCAL_PATH)/test/Android.mk
Sidipotu Ashok404f26d2017-10-10 22:27:51 +053053
Manish Dewanganb8c83a42016-09-23 15:10:48 +053054endif