Makefile.am 5.33 KB
Newer Older
Simon Morlat's avatar
Simon Morlat committed
1

2 3 4 5 6 7 8 9 10 11
TESTER_SOUNDS = sounds/ahbahouaismaisbon.wav \
				sounds/hello8000.wav  \
				sounds/oldphone.wav \
				sounds/sintel_trailer_opus_h264.mkv \
				sounds/sintel_trailer_pcmu_h264.mkv \
				sounds/hello8000.mkv \
				sounds/hello8000_mkv_ref.wav\
				sounds/ringback.wav  \
				sounds/sintel_trailer_opus_vp8.mkv \
				sounds/vrroom.wav
Simon Morlat's avatar
Simon Morlat committed
12

13 14 15 16 17 18 19 20 21

SIPP_FILES = sipp/call_invite_200ok_without_contact_header.xml       \
			sipp/call_with_multiple_audio_mline_in_sdp.xml          \
			sipp/call_with_video_mline_before_audio_in_sdp.xml\
			sipp/call_with_audio_mline_before_video_in_sdp.xml   \
			sipp/call_with_multiple_video_mline_in_sdp.xml      \
			sipp/sip_update_within_icoming_reinvite_with_no_sdp.xml


22
CERTIFICATE_ALT_FILES = certificates/altname/agent.pem           \
23
					certificates/altname/cafile.pem          \
24 25 26 27 28 29
					certificates/altname/openssl-altname.cnf

CERTIFICATE_CN_FILES = certificates/cn/agent.pem      \
					 certificates/cn/cafile.pem     \
					 certificates/cn/openssl-cn.cnf

Simon Morlat's avatar
Simon Morlat committed
30 31
CERTIFICATE_FILES = $(CERTIFICATE_ALT_FILES) $(CERTIFICATE_CN_FILES)

32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
RCFILES = \
					rcfiles/empty_rc\
					rcfiles/laure_call_logs_rc\
					rcfiles/laure_rc\
					rcfiles/marie_early_rc\
					rcfiles/marie_h264_rc\
					rcfiles/marie_quality_reporting_rc\
					rcfiles/marie_rc\
					rcfiles/marie_rc_rtcp_xr\
					rcfiles/marie_remote_404_rc\
					rcfiles/marie_remote_default_values_rc\
					rcfiles/marie_remote_https_rc\
					rcfiles/marie_remote_invalid_rc\
					rcfiles/marie_remote_invalid_uri_rc\
					rcfiles/marie_remote_localfile2_rc\
					rcfiles/marie_remote_localfile_android_rc\
					rcfiles/marie_remote_localfile_rc\
					rcfiles/marie_remote_localfile_win10_rc\
					rcfiles/marie_remote_rc\
					rcfiles/marie_sips_rc\
					rcfiles/marie_transient_remote_rc\
					rcfiles/marie_zrtp_aes256_rc\
					rcfiles/marie_zrtp_b256_rc\
					rcfiles/marie_zrtp_srtpsuite_aes256_rc\
					rcfiles/michelle_rc\
					rcfiles/multi_account_rc\
					rcfiles/pauline_alt_rc\
					rcfiles/pauline_h264_rc\
					rcfiles/pauline_rc\
					rcfiles/pauline_rc_rtcp_xr\
					rcfiles/pauline_sips_rc\
					rcfiles/pauline_tcp_rc\
					rcfiles/pauline_wild_rc\
					rcfiles/pauline_zrtp_aes256_rc\
					rcfiles/pauline_zrtp_b256_rc\
					rcfiles/pauline_zrtp_srtpsuite_aes256_rc\
					rcfiles/remote_zero_length_params_rc\
					rcfiles/stun_rc\
					rcfiles/upnp_rc\
71
					rcfiles/zero_length_params_rc\
72 73
					rcfiles/friends_rc\
					rcfiles/carddav_rc
74 75 76

IMAGE_FILES = images/nowebcamCIF.jpg

77
VCARDS_FILE = vcards/vcards.vcf vcards/thousand_vcards.vcf
78 79 80 81 82 83 84

EXTRA_DIST = tester_hosts\
			messages.db\
			$(TESTER_SOUNDS)\
			$(SIPP_FILES)\
			$(CERTIFICATE_FILES)\
			$(RCFILES)\
Sylvain Berfini's avatar
Sylvain Berfini committed
85
			$(IMAGE_FILES)\
86
			$(VCARDS_FILE)
jehan's avatar
jehan committed
87

88
if ENABLE_TESTS
jehan's avatar
jehan committed
89

Simon Morlat's avatar
Simon Morlat committed
90 91 92 93 94 95 96 97 98 99 100 101
sounddir = $(datadir)/liblinphone_tester/sounds
sound_DATA = $(TESTER_SOUNDS)
sippdir = $(datadir)/liblinphone_tester/sipp
sipp_DATA = $(SIPP_FILES)
certificatesaltdir=$(datadir)/liblinphone_tester/certificates/altname
certificatesalt_DATA = $(CERTIFICATE_ALT_FILES)
certificatescndir=$(datadir)/liblinphone_tester/certificates/cn
certificatescn_DATA = $(CERTIFICATE_CN_FILES)
rcfilesdir = $(datadir)/liblinphone_tester/rcfiles
rcfiles_DATA = $(RCFILES)
imagesdir = $(datadir)/liblinphone_tester/images
images_DATA = $(IMAGE_FILES)
102 103
vcardsdir = $(datadir)/liblinphone_tester/vcards
vcards_DATA = $(VCARDS_FILE)
Simon Morlat's avatar
Simon Morlat committed
104

105
# there are 2 targets: liblinphonetester.la and the executable liblinphone_tester
jehan's avatar
jehan committed
106

107 108 109
liblinphonedir = $(includedir)/linphone
liblinphone_HEADERS = liblinphone_tester.h

110

111 112
lib_LTLIBRARIES = liblinphonetester.la

113
liblinphonetester_la_SOURCES = \
114
				accountmanager.c \
115
				call_tester.c \
116
				complex_sip_call_tester.c \
117
				dtmf_tester.c \
Simon Morlat's avatar
Simon Morlat committed
118
				eventapi_tester.c \
119
				flexisip_tester.c \
120
				log_collection_tester.c \
121
				message_tester.c \
122
				multi_call_tester.c \
123
				multicast_call_tester.c \
124
				offeranswer_tester.c \
125 126
				player_tester.c \
				presence_tester.c \
127
				proxy_config_tester.c \
128 129 130 131 132
				quality_reporting_tester.c \
				register_tester.c \
				remote_provisioning_tester.c \
				setup_tester.c \
				stun_tester.c \
133
				tunnel_tester.c \
134
				tester.c \
135
				upnp_tester.c \
136
				video_tester.c \
137
				vcard_tester.c
138

139
liblinphonetester_ladir = $(includedir)/linphone
jehan's avatar
jehan committed
140

141
liblinphonetester_la_LDFLAGS= -no-undefined
142
liblinphonetester_la_LIBADD= ../coreapi/liblinphone.la $(BCTOOLBOXTESTER_LIBS)
jehan's avatar
jehan committed
143

144 145 146 147 148 149
liblinphone_tester_bindir = $(bindir)/liblinphone_tester
liblinphone_testerdir = $(datadir)/liblinphone_tester

dist_liblinphone_tester_DATA =  tester_hosts messages.db


150
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/coreapi
Simon Morlat's avatar
Simon Morlat committed
151
AM_CFLAGS    = -DBC_CONFIG_FILE=\"config.h\" $(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) \
152
		-DIN_LINPHONE $(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) $(BCTOOLBOXTESTER_CFLAGS) \
153
		$(BELLESIP_CFLAGS) $(LIBXML2_CFLAGS) $(SQLITE3_CFLAGS) $(BELCARD_CFLAGS)
jehan's avatar
jehan committed
154

155 156
if BUILD_GTK_UI

Simon Morlat's avatar
Simon Morlat committed
157
liblinphonetester_la_LIBADD += $(LIBGTK_LIBS) $(LIBGTKMAC_LIBS)
158 159 160 161
AM_CFLAGS += $(LIBGTK_CFLAGS) $(LIBGTKMAC_CFLAGS) -DHAVE_GTK

endif

jehan's avatar
jehan committed
162 163
AM_LDFLAGS=-Wl,-rpath -Wl,$(libdir)

164 165
bin_PROGRAMS=

166
if !BUILD_IOS
167
#noinst_PROGRAMS = liblinphone_tester
168
bin_PROGRAMS += liblinphone_tester
169

170
liblinphone_tester_SOURCES = liblinphone_tester.c
171
liblinphone_tester_LDADD   = $(top_builddir)/coreapi/liblinphone.la liblinphonetester.la -lm
jehan's avatar
jehan committed
172

173
endif
jehan's avatar
jehan committed
174 175


jehan's avatar
jehan committed
176
test: liblinphone_tester
177
	./liblinphone_tester  --config $(abs_srcdir) $(TEST_OPTIONS)
jehan's avatar
jehan committed
178

179
else !ENABLE_TESTS
jehan's avatar
jehan committed
180 181

test:
182
	@echo "bctoolbox-tester must be installed to be able to run the tests!"
jehan's avatar
jehan committed
183

184
endif !ENABLE_TESTS