blob: 54602a25b5d82344f1813f37eb7f21287ffec657 [file] [log] [blame]
Weiyin Jianga3719ac2016-11-23 19:29:35 +08001AM_CFLAGS = -I ${WORKSPACE}/external/tinyalsa/include \
Sachin Mohan Gadag0d2d39a2018-03-19 12:18:26 +05302 -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/audio-kernel \
Weiyin Jianga3719ac2016-11-23 19:29:35 +08003 -I ${WORKSPACE}/system/media/audio_effects/include
4
5c_sources = bundle.c \
6 equalizer.c \
7 bass_boost.c \
8 virtualizer.c \
9 reverb.c \
10 effect_api.c \
11 effect_util.c
12
13if AFE_PROXY
14AM_CFLAGS += -DAFE_PROXY_ENABLED
15endif
16
17if HW_ACC_EFFECT
18AM_CFLAGS += -DHW_ACCELERATED_EFFECTS
19c_sources += hw_accelerator.c
20endif
21
22if AUDIOSPHERE
23AM_CFLAGS += -DAUDIOSPHERE_ENABLED
24c_sources += asphere.c
25endif
26
27library_include_HEADERS = $(h_sources)
28library_includedir = $(includedir)
29
30lib_LTLIBRARIES = libqcompostprocbundle.la
31libqcompostprocbundle_la_SOURCES = $(c_sources)
32libqcompostprocbundle_la_LIBADD = $(GLIB_LIBS) -llog -lcutils -ltinyalsa -ldl
33libqcompostprocbundle_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
34libqcompostprocbundle_la_CFLAGS += -D__unused=__attribute__\(\(__unused__\)\)
35libqcompostprocbundle_la_LDFLAGS = -module -shared -avoid-version