contrib: Bump libmicrodns to 0.1.2
[vlc.git] / test / Makefile.am
blob6d373bcb8eab30e786b3529721d90d2e15d85606
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 AUTOMAKE_OPTIONS = subdir-objects
7 extra_check_verbose = $(extra_check_verbose_$(V))
8 extra_check_verbose_ = $(extra_check_flags__$(AM_DEFAULT_VERBOSITY))
9 extra_check_verbose_0 = @echo TEST $@
10 extra_check_verbose__0 = $(extra_check_verbose_0)
12 ###############################################################################
13 # Unit/regression test
14 ###############################################################################
15 noinst_PROGRAMS =
16 check_PROGRAMS = \
17         test_libvlc_core \
18         test_libvlc_equalizer \
19         test_libvlc_media \
20         test_libvlc_media_list \
21         test_libvlc_media_player \
22         test_libvlc_media_discoverer \
23         test_libvlc_renderer_discoverer \
24         test_libvlc_slaves \
25         test_src_config_chain \
26         test_src_misc_variables \
27         test_src_input_stream \
28         test_src_input_stream_fifo \
29         test_src_input_thumbnail \
30         test_src_player \
31         test_src_interface_dialog \
32         test_src_media_source \
33         test_src_misc_bits \
34         test_src_misc_epg \
35         test_src_misc_keystore \
36         test_modules_packetizer_helpers \
37         test_modules_packetizer_hxxx \
38         test_modules_packetizer_h264 \
39         test_modules_packetizer_hevc \
40         test_modules_packetizer_mpegvideo \
41         test_modules_keystore \
42         test_modules_demux_dashuri \
43         test_modules_demux_timestamps_filter \
44         test_modules_demux_ts_pes \
45         $(NULL)
47 if ENABLE_SOUT
48 check_PROGRAMS += test_modules_tls
49 endif
50 if UPDATE_CHECK
51 check_PROGRAMS += test_src_crypto_update
52 endif
54 check_SCRIPTS = \
55         modules/lua/telnet.sh \
56         check_POTFILES.sh
58 # Disabled test:
59 # meta: No suitable test file
60 EXTRA_PROGRAMS = \
61         test_libvlc_meta \
62         test_libvlc_media_list_player \
63         test_src_input_stream_net \
64         $(NULL)
66 #check_DATA = samples/test.sample samples/meta.sample
67 EXTRA_DIST = \
68         samples/certs/certkey.pem \
69         samples/empty.voc \
70         samples/image.jpg \
71         samples/subitems \
72         samples/slaves \
73         $(check_SCRIPTS)
75 check_HEADERS = libvlc/test.h libvlc/libvlc_additions.h
77 TESTS = $(check_PROGRAMS) check_POTFILES.sh
79 DISTCLEANFILES = samples/test.sample samples/meta.sample
81 # Samples server
82 SAMPLES_SERVER=http://streams.videolan.org/streams-videolan/reference
84 samples/test.sample:
85         mkdir -p `dirname $@`
86         curl $(SAMPLES_SERVER)/avi/Hero-Div3.avi > $@
88 samples/meta.sample:
89         mkdir -p `dirname $@`
90         curl $(SAMPLES_SERVER)/metadata/id3tag/Wesh-Bonneville.mp3 > $@
92 AM_CFLAGS = -DSRCDIR=\"$(srcdir)\"
93 AM_LDFLAGS = -no-install
94 LIBVLCCORE = -L../src/ -lvlccore
95 LIBVLC = -L../lib -lvlc
97 test_libvlc_core_SOURCES = libvlc/core.c
98 test_libvlc_core_LDADD = $(LIBVLC)
99 test_libvlc_equalizer_SOURCES = libvlc/equalizer.c
100 test_libvlc_equalizer_LDADD = $(LIBVLC)
101 test_libvlc_media_SOURCES = libvlc/media.c
102 test_libvlc_media_LDADD = $(LIBVLCCORE) $(LIBVLC)
103 test_libvlc_media_list_player_SOURCES = libvlc/media_list_player.c
104 test_libvlc_media_list_player_LDADD = $(LIBVLC)
105 test_libvlc_media_list_SOURCES = libvlc/media_list.c
106 test_libvlc_media_list_LDADD = $(LIBVLC)
107 test_libvlc_media_player_SOURCES = libvlc/media_player.c
108 test_libvlc_media_player_LDADD = $(LIBVLCCORE) $(LIBVLC)
109 test_libvlc_media_discoverer_SOURCES = libvlc/media_discoverer.c
110 test_libvlc_media_discoverer_LDADD = $(LIBVLC)
111 test_libvlc_renderer_discoverer_SOURCES = libvlc/renderer_discoverer.c
112 test_libvlc_renderer_discoverer_LDADD = $(LIBVLC)
113 test_libvlc_slaves_SOURCES = libvlc/slaves.c
114 test_libvlc_slaves_LDADD = $(LIBVLCCORE) $(LIBVLC)
115 test_libvlc_meta_SOURCES = libvlc/meta.c
116 test_libvlc_meta_LDADD = $(LIBVLC)
117 test_src_misc_variables_SOURCES = src/misc/variables.c
118 test_src_misc_variables_LDADD = $(LIBVLCCORE) $(LIBVLC)
119 test_src_config_chain_SOURCES = src/config/chain.c
120 test_src_config_chain_LDADD = $(LIBVLCCORE)
121 test_src_crypto_update_SOURCES = src/crypto/update.c
122 test_src_crypto_update_LDADD = $(LIBVLCCORE) $(GCRYPT_LIBS)
123 test_src_input_stream_SOURCES = src/input/stream.c
124 test_src_input_stream_LDADD = $(LIBVLCCORE) $(LIBVLC)
125 test_src_input_stream_net_SOURCES = src/input/stream.c
126 test_src_input_stream_net_CFLAGS = $(AM_CFLAGS) -DTEST_NET
127 test_src_input_stream_net_LDADD = $(LIBVLCCORE) $(LIBVLC)
128 test_src_input_stream_fifo_SOURCES = src/input/stream_fifo.c
129 test_src_input_stream_fifo_LDADD = $(LIBVLCCORE) $(LIBVLC)
130 test_src_input_thumbnail_SOURCES = src/input/thumbnail.c
131 test_src_input_thumbnail_LDADD = $(LIBVLCCORE) $(LIBVLC)
132 test_src_player_SOURCES = src/player/player.c
133 test_src_player_LDADD = $(LIBVLCCORE) $(LIBVLC) $(LIBM)
134 test_src_misc_bits_SOURCES = src/misc/bits.c
135 test_src_misc_bits_LDADD = $(LIBVLC)
136 test_src_misc_epg_SOURCES = src/misc/epg.c
137 test_src_misc_epg_LDADD = $(LIBVLCCORE) $(LIBVLC)
138 test_src_misc_keystore_SOURCES = src/misc/keystore.c
139 test_src_misc_keystore_LDADD = $(LIBVLCCORE) $(LIBVLC)
140 test_src_interface_dialog_SOURCES = src/interface/dialog.c
141 test_src_interface_dialog_LDADD = $(LIBVLCCORE) $(LIBVLC)
142 test_src_media_source_LDADD = $(LIBVLCCORE) $(LIBVLC)
143 test_src_media_source_SOURCES = src/media_source/media_source.c
144 test_modules_packetizer_helpers_SOURCES = modules/packetizer/helpers.c
145 test_modules_packetizer_helpers_LDADD = $(LIBVLCCORE) $(LIBVLC)
146 test_modules_packetizer_hxxx_SOURCES = modules/packetizer/hxxx.c
147 test_modules_packetizer_hxxx_LDADD = $(LIBVLCCORE) $(LIBVLC)
148 test_modules_packetizer_h264_SOURCES = modules/packetizer/h264.c \
149                                 modules/packetizer/packetizer.h
150 test_modules_packetizer_h264_LDADD = $(LIBVLCCORE) $(LIBVLC)
151 test_modules_packetizer_hevc_SOURCES = modules/packetizer/hevc.c \
152                                 modules/packetizer/packetizer.h
153 test_modules_packetizer_hevc_LDADD = $(LIBVLCCORE) $(LIBVLC)
154 test_modules_packetizer_mpegvideo_SOURCES = modules/packetizer/mpegvideo.c \
155                                 modules/packetizer/packetizer.h
156 test_modules_packetizer_mpegvideo_LDADD = $(LIBVLCCORE) $(LIBVLC)
157 test_modules_keystore_SOURCES = modules/keystore/test.c
158 test_modules_keystore_LDADD = $(LIBVLCCORE) $(LIBVLC)
159 test_modules_tls_SOURCES = modules/misc/tls.c
160 test_modules_tls_LDADD = $(LIBVLCCORE) $(LIBVLC)
161 test_modules_demux_dashuri_SOURCES = modules/demux/dashuri.cpp
162 test_modules_demux_timestamps_filter_LDADD = $(LIBVLCCORE) $(LIBVLC)
163 test_modules_demux_timestamps_filter_SOURCES = modules/demux/timestamps_filter.c
164 test_modules_demux_ts_pes_LDADD = $(LIBVLCCORE) $(LIBVLC)
165 test_modules_demux_ts_pes_SOURCES = modules/demux/ts_pes.c \
166                                 ../modules/demux/mpeg/ts_pes.c \
167                                 ../modules/demux/mpeg/ts_pes.h
170 checkall:
171         $(MAKE) check_PROGRAMS="$(check_PROGRAMS) $(EXTRA_PROGRAMS)" check
173 FORCE:
174         @echo "Generated source cannot be phony. Go away." >&2
175         @exit 1
177 .PHONY: FORCE
179 libvlc_demux_run_la_SOURCES = src/input/demux-run.c src/input/demux-run.h \
180         src/input/common.c src/input/common.h
181 libvlc_demux_run_la_CPPFLAGS = $(AM_CPPFLAGS) \
182         -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
183         -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\"
184 libvlc_demux_run_la_LDFLAGS = -no-install -static
185 libvlc_demux_run_la_LIBADD = \
186         ../lib/libvlc.la ../src/libvlccore.la ../compat/libcompat.la
187 if !HAVE_DYNAMIC_PLUGINS
188 libvlc_demux_run_la_CPPFLAGS += -DHAVE_STATIC_MODULES
189 libvlc_demux_run_la_LIBADD += \
190         ../modules/libxml_plugin.la \
191         ../modules/libconsole_logger_plugin.la \
192         ../modules/libaiff_plugin.la \
193         ../modules/libasf_plugin.la \
194         ../modules/libau_plugin.la \
195         ../modules/libavi_plugin.la \
196         ../modules/libcaf_plugin.la \
197         ../modules/libes_plugin.la \
198         ../modules/libflacsys_plugin.la \
199         ../modules/libh26x_plugin.la \
200         ../modules/libmjpeg_plugin.la \
201         ../modules/libmp4_plugin.la \
202         ../modules/libnsc_plugin.la \
203         ../modules/libnsv_plugin.la \
204         ../modules/libnuv_plugin.la \
205         ../modules/libps_plugin.la \
206         ../modules/libpva_plugin.la \
207         ../modules/libsap_plugin.la \
208         ../modules/libsmf_plugin.la \
209         ../modules/libsubtitle_plugin.la \
210         ../modules/libtta_plugin.la \
211         ../modules/libttml_plugin.la \
212         ../modules/libty_plugin.la \
213         ../modules/libvoc_plugin.la \
214         ../modules/libwav_plugin.la \
215         ../modules/libwebvtt_plugin.la \
216         ../modules/libxa_plugin.la \
217         ../modules/libpacketizer_a52_plugin.la \
218         ../modules/libpacketizer_copy_plugin.la \
219         ../modules/libpacketizer_dts_plugin.la \
220         ../modules/libpacketizer_flac_plugin.la \
221         ../modules/libpacketizer_h264_plugin.la \
222         ../modules/libpacketizer_hevc_plugin.la \
223         ../modules/libpacketizer_mlp_plugin.la \
224         ../modules/libpacketizer_mpeg4audio_plugin.la \
225         ../modules/libpacketizer_mpeg4video_plugin.la \
226         ../modules/libpacketizer_mpegaudio_plugin.la \
227         ../modules/libpacketizer_mpegvideo_plugin.la \
228         ../modules/libpacketizer_vc1_plugin.la \
229         ../modules/librawaud_plugin.la \
230         ../modules/librawvid_plugin.la \
231         ../modules/libfilesystem_plugin.la \
232         ../modules/libxml_plugin.la \
233         ../modules/libogg_plugin.la \
234         -lstdc++
235 if HAVE_DVBPSI
236 libvlc_demux_run_la_CPPFLAGS += -DHAVE_DVBPSI
237 libvlc_demux_run_la_LIBADD += ../modules/libts_plugin.la
238 endif
239 if HAVE_MATROSKA
240 libvlc_demux_run_la_CPPFLAGS += -DHAVE_MATROSKA
241 libvlc_demux_run_la_LIBADD += ../modules/libmkv_plugin.la
242 endif
243 endif
244 EXTRA_LTLIBRARIES = libvlc_demux_run.la
246 libvlc_demux_dec_run_la_SOURCES = $(libvlc_demux_run_la_SOURCES) \
247         src/input/decoder.c src/input/decoder.h
248 libvlc_demux_dec_run_la_CPPFLAGS = $(libvlc_demux_run_la_CPPFLAGS) -DHAVE_DECODERS
249 libvlc_demux_dec_run_la_LDFLAGS = $(libvlc_demux_run_la_LDFLAGS)
250 libvlc_demux_dec_run_la_LIBADD = $(libvlc_demux_run_la_LIBADD)
251 if !HAVE_DYNAMIC_PLUGINS
252 libvlc_demux_dec_run_la_LIBADD += \
253         ../modules/libadpcm_plugin.la \
254         ../modules/libaes3_plugin.la \
255         ../modules/libaraw_plugin.la \
256         ../modules/libg711_plugin.la \
257         ../modules/liblpcm_plugin.la \
258         ../modules/libuleaddvaudio_plugin.la \
259         ../modules/librawvideo_plugin.la \
260         ../modules/libcc_plugin.la \
261         ../modules/libcvdsub_plugin.la \
262         ../modules/libdvbsub_plugin.la \
263         ../modules/libscte18_plugin.la \
264         ../modules/libscte27_plugin.la \
265         ../modules/libspudec_plugin.la \
266         ../modules/libstl_plugin.la \
267         ../modules/libsubsdec_plugin.la \
268         ../modules/libsubsusf_plugin.la \
269         ../modules/libsvcdsub_plugin.la \
270         ../modules/libtextst_plugin.la \
271         ../modules/libsubstx3g_plugin.la
272 endif
273 EXTRA_LTLIBRARIES += libvlc_demux_dec_run.la
276 # Fuzzers
278 vlc_demux_run_LDFLAGS = -no-install -static
279 vlc_demux_run_LDADD = libvlc_demux_run.la
280 vlc_demux_dec_run_SOURCES = vlc-demux-run.c
281 vlc_demux_dec_run_LDFLAGS = -no-install -static
282 vlc_demux_dec_run_LDADD = libvlc_demux_dec_run.la
283 EXTRA_PROGRAMS += vlc-demux-run vlc-demux-dec-run
285 vlc_demux_libfuzzer_LDADD = libvlc_demux_run.la
286 vlc_demux_dec_libfuzzer_SOURCES = vlc-demux-libfuzzer.c
287 vlc_demux_dec_libfuzzer_LDADD = libvlc_demux_dec_run.la
288 if HAVE_LIBFUZZER
289 noinst_PROGRAMS += vlc-demux-libfuzzer vlc-demux-dec-libfuzzer vlc-demux-run vlc-demux-dec-run
290 endif