forked from mirrors/linphone-iphone
40 lines
1,007 B
Makefile
40 lines
1,007 B
Makefile
EXTRA_DIST= empty_rc laure_rc marie_early_rc marie_no_sdp_rc marie_rc multi_account_lrc pauline_alt_rc \
|
|
pauline_rc pauline_wild_rc tester_hosts sounds images certificates
|
|
|
|
|
|
if BUILD_CUNIT_TESTS
|
|
|
|
noinst_PROGRAMS=liblinphone_tester
|
|
|
|
liblinphone_tester_SOURCES= liblinphone_tester.c liblinphone_tester.h\
|
|
setup_tester.c \
|
|
register_tester.c \
|
|
message_tester.c \
|
|
call_tester.c \
|
|
presence_tester.c \
|
|
upnp_tester.c \
|
|
eventapi_tester.c
|
|
|
|
|
|
#liblinphone_tester_CFLAGS=$(CUNIT_CFLAGS)
|
|
|
|
#liblinphone_tester_LDFLAGS=$(CUNIT_LIBS)
|
|
|
|
|
|
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/coreapi
|
|
|
|
LDADD=$(top_builddir)/coreapi/liblinphone.la $(BELLESIP_LIBS) $(LIBXML2_LIBS)
|
|
|
|
AM_LDFLAGS=$(CUNIT_LIBS)
|
|
|
|
AM_CFLAGS=$(STRICT_OPTIONS) -DIN_LINPHONE $(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) $(CUNIT_CFLAGS) $(BELLESIP_CFLAGS) $(LIBXML2_CFLAGS)
|
|
|
|
test: liblinphone_tester
|
|
./liblinphone_tester --config $(abs_srcdir)
|
|
|
|
else
|
|
|
|
test:
|
|
@echo "CUnit must be installed to be able to run the tests!"
|
|
|
|
endif
|