Makefile.am 2.55 KB
Newer Older
Guillaume Beraudo's avatar
Guillaume Beraudo committed
1 2 3 4 5
EXTRA_DIST=sounds/arpeggio_8000_mono.wav  sounds/chimes_48000_stereo.wav \
	sounds/nylon_48000_mono.wav  sounds/piano_8000_stereo.wav \
	sounds/bird_44100_stereo.wav   sounds/laserrocket_16000_mono.wav  \
	sounds/owl_44100_mono.wav    sounds/punch_16000_stereo.wav

Ghislain MARY's avatar
Ghislain MARY committed
6 7 8 9 10 11

if BUILD_TESTS

noinst_PROGRAMS=mediastreamer2_tester

mediastreamer2_tester_SOURCES=	\
12 13 14 15
	mediastreamer2_tester.c mediastreamer2_tester.h \
	mediastreamer2_tester_private.c mediastreamer2_tester_private.h \
	mediastreamer2_basic_audio_tester.c \
	mediastreamer2_sound_card_tester.c \
16
	mediastreamer2_adaptive_tester.c \
17
	mediastreamer2_audio_stream_tester.c \
18
	mediastreamer2_text_stream_tester.c \
François Grisez's avatar
François Grisez committed
19
	mediastreamer2_framework_tester.c \
20
	mediastreamer2_player_tester.c \
21 22 23 24 25 26
	mediastreamer2_neon_tester.c \
	mediastreamer2_jitterbuffer_tester.c

if ENABLE_PCAP
mediastreamer2_tester_SOURCES += mediastreamer2_codec_impl_testers.c
endif
27

28
AM_CPPFLAGS=\
29
	-DBC_CONFIG_FILE=\"mediastreamer-config.h\" \
30
	-I$(top_srcdir)/ \
31 32 33 34 35 36
	-I$(top_srcdir)/include/ \
	-I$(top_srcdir)/src/base \
	-I$(top_srcdir)/src/utils \
	-I$(top_srcdir)/src/voip \
	-I$(top_srcdir)/src/audiofilters \
	-I$(top_srcdir)/src/otherfilters \
37
	-I$(top_srcdir)/src/videofilters \
38
	-I$(top_srcdir)/src \
39
	-I$(top_builddir)/src \
François Grisez's avatar
François Grisez committed
40
	-I$(top_srcdir)/tester \
41
	-I$(top_srcdir)/tester/common \
jehan's avatar
jehan committed
42
	$(ORTP_CFLAGS) \
François Grisez's avatar
François Grisez committed
43
	$(SPEEX_CFLAGS)
44 45 46

LDADD=$(top_builddir)/src/libmediastreamer_base.la \
	$(top_builddir)/src/libmediastreamer_voip.la \
Simon Morlat's avatar
Simon Morlat committed
47
	$(ORTP_LIBS) \
48
	$(BCTOOLBOXTESTER_LIBS) \
François Grisez's avatar
François Grisez committed
49
	$(SPEEX_LIBS)
Ghislain MARY's avatar
Ghislain MARY committed
50

51 52
if BUILD_MACOSX
noinst_LTLIBRARIES=libmediastreamer2_tester_cocoa.la
53
libmediastreamer2_tester_cocoa_la_LIBTOOLFLAGS = --tag=CC
54
libmediastreamer2_tester_cocoa_la_SOURCES = mediastreamer2_tester_cocoa.m
55 56 57 58 59 60 61 62
LDADD+=libmediastreamer2_tester_cocoa.la
endif BUILD_MACOSX

if BUILD_VIDEO
mediastreamer2_tester_SOURCES+=	mediastreamer2_video_stream_tester.c
endif


Ghislain MARY's avatar
Ghislain MARY committed
63
AM_LDFLAGS=-no-undefined -export-dynamic
64
#AM_LDFLAGS+=-Wl,-rpath -Wl,$(libdir)
Ghislain MARY's avatar
Ghislain MARY committed
65

66
AM_CFLAGS=$(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) $(ORTP_CFLAGS) $(BCTOOLBOXTESTER_CFLAGS)
Ghislain MARY's avatar
Ghislain MARY committed
67

68 69
if BUILD_VIDEO
AM_CFLAGS+=$(VIDEO_CFLAGS) $(GLEW_CFLAGS)
François Grisez's avatar
François Grisez committed
70 71
endif

72 73 74
if BUILD_MATROSKA
AM_CFLAGS+=-DHAVE_MATROSKA
endif
75

Ghislain MARY's avatar
Ghislain MARY committed
76

77 78 79 80 81 82 83 84 85 86 87
if BUILD_IOS

noinst_LTLIBRARIES=libmediastreamer2_tester_ios.la
libmediastreamer2_tester_ios_la_SOURCES      = mediastreamer2_tester_ios.m
libmediastreamer2_tester_ios_la_LIBTOOLFLAGS = --tag=CC
LDADD+=libmediastreamer2_tester_ios.la

AM_CFLAGS    += $(SPEEX_CFLAGS)
AM_OBJCFLAGS  = $(AM_CFLAGS)
endif

Ghislain MARY's avatar
Ghislain MARY committed
88 89 90 91 92 93
test: mediastreamer2_tester
	./mediastreamer2_tester $(TEST_OPTIONS)

else

test:
94
	@echo "bctoolbox-tester must be installed to be able to run the tests!"
Ghislain MARY's avatar
Ghislain MARY committed
95 96

endif