Yamit Mehta | b740f8d | 2016-11-24 09:05:20 +0530 | [diff] [blame] | 1 | h_sources = inc/qahw_api.h \ |
Weiyin Jiang | 82e4094 | 2017-01-10 16:07:34 +0800 | [diff] [blame] | 2 | inc/qahw_effect_audiosphere.h \ |
Weiyin Jiang | a3719ac | 2016-11-23 19:29:35 +0800 | [diff] [blame] | 3 | inc/qahw_effect_bassboost.h \ |
| 4 | inc/qahw_effect_environmentalreverb.h \ |
| 5 | inc/qahw_effect_equalizer.h \ |
| 6 | inc/qahw_effect_presetreverb.h \ |
| 7 | inc/qahw_effect_virtualizer.h \ |
Zun Qiao | 2a24d7c | 2021-08-11 08:52:22 +0530 | [diff] [blame] | 8 | inc/qahw_effect_visualizer.h \ |
| 9 | inc/qahw_effect_trumpet.h |
Yamit Mehta | b740f8d | 2016-11-24 09:05:20 +0530 | [diff] [blame] | 10 | |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 11 | AM_CPPFLAGS := -I $(top_srcdir)/qahw_api/inc/ |
| 12 | AM_CPPFLAGS += -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/mm-audio/audio-hal-server |
| 13 | AM_CPPFLAGS += -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/mm-audio/qahw/inc |
| 14 | AM_CPPFLAGS += -D__unused=__attribute__\(\(__unused__\)\) |
| 15 | |
Yamit Mehta | b740f8d | 2016-11-24 09:05:20 +0530 | [diff] [blame] | 16 | library_include_HEADERS = $(h_sources) |
| 17 | library_includedir = $(includedir)/mm-audio/qahw_api/inc |
| 18 | |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 19 | lib_LTLIBRARIES = libqahw.la |
| 20 | libqahw_la_SOURCES = src/qahw_api.cpp |
| 21 | libqahw_la_LIBADD = -lqahwwrapper |
| 22 | libqahw_la_CPPFLAGS := $(AM_CPPFLAGS) |
| 23 | libqahw_la_CPPFLAGS += -std=c++11 -DHAVE_PTHREADS -DHAVE_ANDROID_OS |
| 24 | libqahw_la_CPPFLAGS += -DDEBUG_REFS_CALLSTACK_ENABLED=0 |
Sachin Mohan Gadag | 364932c | 2017-10-30 19:14:52 +0530 | [diff] [blame] | 25 | libqahw_la_CPPFLAGS += -DNDEBUG |
Josh Kirsch | c03f31d | 2019-01-15 11:50:53 -0800 | [diff] [blame] | 26 | libqahw_la_CPPFLAGS += $(GLIB_CFLAGS) -include glib.h |
| 27 | libqahw_la_LDFLAGS = -ltinyalsa -lhardware -lexpat -lcutils -llog -ldl -shared -avoid-version -lpthread -lutils $(GLIB_LIBS) |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 28 | if QTI_AUDIO_SERVER_ENABLED |
| 29 | AM_CPPFLAGS += -DQTI_AUDIO_SERVER_ENABLED |
Dhanalakshmi Siddani | 58ffd42 | 2017-12-19 19:57:02 +0530 | [diff] [blame] | 30 | libqahw_la_LDFLAGS += -lqtiaudioserver -lbinder |
Sidipotu Ashok | 404f26d | 2017-10-10 22:27:51 +0530 | [diff] [blame] | 31 | endif |
Josh Kirsch | c03f31d | 2019-01-15 11:50:53 -0800 | [diff] [blame] | 32 | if QAHW_V1 |
| 33 | AM_CPPFLAGS += -DQAHW_V1 |
| 34 | endif |
| 35 | |