Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 1 | bin_PROGRAMS = hal_play_test |
| 2 | |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 3 | PLAY_CFLAGS = -Wno-sign-compare -Werror |
| 4 | PLAY_CFLAGS += -D__unused=__attribute__\(\(__unused__\)\) |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 5 | |
Manish Dewangan | e70a4aa | 2018-10-15 10:41:16 +0530 | [diff] [blame] | 6 | PLAY_INCLUDES = -I $(top_srcdir)/qahw_api/inc |
| 7 | PLAY_INCLUDES += -I $(top_srcdir)/qahw/inc \ |
| 8 | -I $(top_srcdir)/hal |
Weiyin Jiang | a3719ac | 2016-11-23 19:29:35 +0800 | [diff] [blame] | 9 | hal_play_test_SOURCES = qahw_playback_test.c \ |
| 10 | qahw_effect_test.c |
Nikhil Laturkar | 40e7558 | 2017-07-26 20:19:10 +0530 | [diff] [blame] | 11 | |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 12 | hal_play_test_LDADD = -lutils ../libqahw.la |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 13 | AM_CFLAGS = -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/mm-audio/qahw/inc |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 14 | |
Nikhil Laturkar | 40e7558 | 2017-07-26 20:19:10 +0530 | [diff] [blame] | 15 | if QAP |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 16 | AM_CFLAGS += -DQAP |
Nikhil Laturkar | 40e7558 | 2017-07-26 20:19:10 +0530 | [diff] [blame] | 17 | AM_CFLAGS += -I ${WORKSPACE}/audio/mm-audio/qap_wrapper/inc/ |
| 18 | hal_play_test_SOURCES += qap_wrapper_extn.c |
| 19 | hal_play_test_LDADD += -lqap_wrapper |
| 20 | endif |
| 21 | |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 22 | hal_play_test_CFLAGS = $(PLAY_CFLAGS) $(PLAY_INCLUDES) |
| 23 | hal_play_test_CFLAGS += $(AM_CFLAGS) -DLINUX_ENABLED |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 24 | |
Manish Dewangan | e70a4aa | 2018-10-15 10:41:16 +0530 | [diff] [blame] | 25 | #hal_play_test_dolby_certification |
| 26 | bin_PROGRAMS += hal_play_test_dolby_certification |
| 27 | |
| 28 | hal_play_test_dolby_certification_SOURCES = qahw_playback_test.c \ |
| 29 | qahw_effect_test.c |
| 30 | |
| 31 | hal_play_test_dolby_certification_LDADD = -lutils ../libqahw.la |
| 32 | |
| 33 | if QAP |
| 34 | hal_play_test_dolby_certification_SOURCES += qap_wrapper_extn.c |
| 35 | hal_play_test_dolby_certification_LDADD += -lqap_wrapper |
| 36 | endif |
| 37 | |
| 38 | hal_play_test_dolby_certification_CFLAGS = $(PLAY_CFLAGS) $(PLAY_INCLUDES) -DTRUMPET_CERTIFICATION=1 |
| 39 | hal_play_test_dolby_certification_CFLAGS += $(AM_CFLAGS) -DLINUX_ENABLED |
| 40 | |
| 41 | #hal_play_rec |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 42 | bin_PROGRAMS += hal_rec_test |
| 43 | |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 44 | REC_CFLAGS = $(PLAY_CFLAGS) -Dnullptr=NULL |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 45 | REC_INCLUDES = $(PLAY_INCLUDES) |
| 46 | |
| 47 | hal_rec_test_SOURCES = qahw_multi_record_test.c |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 48 | hal_rec_test_CFLAGS = -Dstrlcat=g_strlcat $(GLIB_CFLAGS) -include glib.h |
| 49 | hal_rec_test_CFLAGS += $(REC_CFLAGS) $(REC_INCLUDES) |
| 50 | hal_rec_test_CFLAGS += $(AM_CFLAGS) |
Yamit Mehta | a3cc5d6 | 2016-11-24 09:09:06 +0530 | [diff] [blame] | 51 | hal_rec_test_LDADD = -lutils ../libqahw.la $(GLIB_LIBS) |
Siddartha Shaik | 31b530e | 2017-05-19 15:26:33 +0530 | [diff] [blame] | 52 | |
| 53 | bin_PROGRAMS += trans_loopback_test |
| 54 | |
| 55 | trans_loopback_test_INCLUDES = -I $(top_srcdir)/qahw_api/inc |
| 56 | |
| 57 | trans_loopback_test_SOURCES = trans_loopback_test.c |
| 58 | |
Dhanalakshmi Siddani | 80365d2 | 2017-10-10 23:04:55 +0530 | [diff] [blame] | 59 | trans_loopback_test_CFLAGS = $(AM_CFLAGS) -Wno-sign-compare -Werror |
Siddartha Shaik | 31b530e | 2017-05-19 15:26:33 +0530 | [diff] [blame] | 60 | trans_loopback_test_CFLAGS += $(trans_loopback_test_INCLUDES) |
Xiaoyu Ye | 8901a64 | 2017-11-14 18:21:42 -0800 | [diff] [blame] | 61 | trans_loopback_test_LDADD = -llog -lutils ../libqahw.la -lcutils -lm |