Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 1 | bin_PROGRAMS = hal_play_test |
| 2 | |
Sachin Mohan Gadag | a87e61f | 2016-12-26 19:50:35 +0530 | [diff] [blame] | 3 | PLAY_CPPFLAGS = -Wno-sign-compare -Werror |
Dhananjay Kumar | 23a3bec | 2017-01-11 18:38:09 +0530 | [diff] [blame] | 4 | PLAY_CPPFLAGS += -D__unused=__attribute__\(\(__unused__\)\) |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 5 | PLAY_INCLUDES = -I $(top_srcdir)/qahw_api/inc |
| 6 | |
Weiyin Jiang | a3719ac | 2016-11-23 19:29:35 +0800 | [diff] [blame] | 7 | hal_play_test_SOURCES = qahw_playback_test.c \ |
| 8 | qahw_effect_test.c |
Nikhil Laturkar | 40e7558 | 2017-07-26 20:19:10 +0530 | [diff] [blame] | 9 | |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 10 | hal_play_test_LDADD = -lutils ../libqahw.la |
| 11 | |
Nikhil Laturkar | 40e7558 | 2017-07-26 20:19:10 +0530 | [diff] [blame] | 12 | if QAP |
| 13 | AM_CFLAGS = -DQAP |
| 14 | AM_CFLAGS += -I ${WORKSPACE}/audio/mm-audio/qap_wrapper/inc/ |
| 15 | hal_play_test_SOURCES += qap_wrapper_extn.c |
| 16 | hal_play_test_LDADD += -lqap_wrapper |
| 17 | endif |
| 18 | |
| 19 | hal_play_test_CPPFLAGS = $(PLAY_CPPFLAGS) $(PLAY_INCLUDES) |
| 20 | hal_play_test_CFLAGS = $(AM_CFLAGS) |
| 21 | hal_play_test_CFLAGS = -DLINUX_ENABLED |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 22 | |
| 23 | bin_PROGRAMS += hal_rec_test |
| 24 | |
| 25 | REC_CPPFLAGS = $(PLAY_CPPFLAGS) -Dnullptr=NULL |
| 26 | REC_INCLUDES = $(PLAY_INCLUDES) |
| 27 | |
| 28 | hal_rec_test_SOURCES = qahw_multi_record_test.c |
| 29 | hal_rec_test_CPPFLAGS = -Dstrlcat=g_strlcat $(GLIB_CFLAGS) -include glib.h |
| 30 | hal_rec_test_CPPFLAGS += $(REC_CPPFLAGS) $(REC_INCLUDES) |
Nikhil Laturkar | 40e7558 | 2017-07-26 20:19:10 +0530 | [diff] [blame] | 31 | hal_play_test_CFLAGS += $(AM_CFLAGS) |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 32 | hal_rec_test_LDADD = -lutils ../libqahw.la $(GLIB_LIBS) |
Siddartha Shaik | 31b530e | 2017-05-19 15:26:33 +0530 | [diff] [blame] | 33 | |
| 34 | bin_PROGRAMS += trans_loopback_test |
| 35 | |
| 36 | trans_loopback_test_INCLUDES = -I $(top_srcdir)/qahw_api/inc |
| 37 | |
| 38 | trans_loopback_test_SOURCES = trans_loopback_test.c |
| 39 | |
| 40 | trans_loopback_test_CFLAGS = $(CFLAGS) -Wno-sign-compare -Werror |
| 41 | trans_loopback_test_CFLAGS += $(trans_loopback_test_INCLUDES) |
Xiaoyu Ye | 8901a64 | 2017-11-14 18:21:42 -0800 | [diff] [blame^] | 42 | trans_loopback_test_LDADD = -llog -lutils ../libqahw.la -lcutils -lm |