mux: mp4: simplify mp4_stream_t [de]init
[vlc.git] / test / Makefile.am
blob8343bea50101acb8b6bb79eafb1a2f9552ca3c81
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_input_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_keystore \
39         test_modules_demux_dashuri
40 if ENABLE_SOUT
41 check_PROGRAMS += test_modules_tls
42 endif
43 if UPDATE_CHECK
44 check_PROGRAMS += test_src_crypto_update
45 endif
47 check_SCRIPTS = \
48         modules/lua/telnet.sh \
49         check_POTFILES.sh
51 # Disabled test:
52 # meta: No suitable test file
53 EXTRA_PROGRAMS = \
54         test_libvlc_meta \
55         test_libvlc_media_list_player \
56         test_src_input_stream_net \
57         $(NULL)
59 #check_DATA = samples/test.sample samples/meta.sample
60 EXTRA_DIST = \
61         samples/certs/certkey.pem \
62         samples/empty.voc \
63         samples/image.jpg \
64         samples/subitems \
65         samples/slaves \
66         $(check_SCRIPTS)
68 check_HEADERS = libvlc/test.h libvlc/libvlc_additions.h
70 TESTS = $(check_PROGRAMS) check_POTFILES.sh
72 DISTCLEANFILES = samples/test.sample samples/meta.sample
74 # Samples server
75 SAMPLES_SERVER=http://streams.videolan.org/streams-videolan/reference
77 samples/test.sample:
78         mkdir -p `dirname $@`
79         curl $(SAMPLES_SERVER)/avi/Hero-Div3.avi > $@
81 samples/meta.sample:
82         mkdir -p `dirname $@`
83         curl $(SAMPLES_SERVER)/metadata/id3tag/Wesh-Bonneville.mp3 > $@
85 AM_CFLAGS = -DSRCDIR=\"$(srcdir)\"
86 AM_LDFLAGS = -no-install
87 LIBVLCCORE = -L../src/ -lvlccore
88 LIBVLC = -L../lib -lvlc
90 test_libvlc_core_SOURCES = libvlc/core.c
91 test_libvlc_core_LDADD = $(LIBVLC)
92 test_libvlc_equalizer_SOURCES = libvlc/equalizer.c
93 test_libvlc_equalizer_LDADD = $(LIBVLC)
94 test_libvlc_media_SOURCES = libvlc/media.c
95 test_libvlc_media_LDADD = $(LIBVLCCORE) $(LIBVLC)
96 test_libvlc_media_list_player_SOURCES = libvlc/media_list_player.c
97 test_libvlc_media_list_player_LDADD = $(LIBVLC)
98 test_libvlc_media_list_SOURCES = libvlc/media_list.c
99 test_libvlc_media_list_LDADD = $(LIBVLC)
100 test_libvlc_media_player_SOURCES = libvlc/media_player.c
101 test_libvlc_media_player_LDADD = $(LIBVLC)
102 test_libvlc_media_discoverer_SOURCES = libvlc/media_discoverer.c
103 test_libvlc_media_discoverer_LDADD = $(LIBVLC)
104 test_libvlc_renderer_discoverer_SOURCES = libvlc/renderer_discoverer.c
105 test_libvlc_renderer_discoverer_LDADD = $(LIBVLC)
106 test_libvlc_slaves_SOURCES = libvlc/slaves.c
107 test_libvlc_slaves_LDADD = $(LIBVLCCORE) $(LIBVLC)
108 test_libvlc_meta_SOURCES = libvlc/meta.c
109 test_libvlc_meta_LDADD = $(LIBVLC)
110 test_src_misc_variables_SOURCES = src/misc/variables.c
111 test_src_misc_variables_LDADD = $(LIBVLCCORE) $(LIBVLC)
112 test_src_config_chain_SOURCES = src/config/chain.c
113 test_src_config_chain_LDADD = $(LIBVLCCORE)
114 test_src_crypto_update_SOURCES = src/crypto/update.c
115 test_src_crypto_update_LDADD = $(LIBVLCCORE) $(GCRYPT_LIBS)
116 test_src_input_stream_SOURCES = src/input/stream.c
117 test_src_input_stream_LDADD = $(LIBVLCCORE) $(LIBVLC)
118 test_src_input_player_SOURCES = src/input/player.c
119 test_src_input_player_LDADD = $(LIBVLCCORE) $(LIBVLC) $(LIBM)
120 test_src_input_stream_net_SOURCES = src/input/stream.c
121 test_src_input_stream_net_CFLAGS = $(AM_CFLAGS) -DTEST_NET
122 test_src_input_stream_net_LDADD = $(LIBVLCCORE) $(LIBVLC)
123 test_src_input_stream_fifo_SOURCES = src/input/stream_fifo.c
124 test_src_input_stream_fifo_LDADD = $(LIBVLCCORE) $(LIBVLC)
125 test_src_input_thumbnail_SOURCES = src/input/thumbnail.c
126 test_src_input_thumbnail_LDADD = $(LIBVLCCORE) $(LIBVLC)
127 test_src_misc_bits_SOURCES = src/misc/bits.c
128 test_src_misc_bits_LDADD = $(LIBVLC)
129 test_src_misc_epg_SOURCES = src/misc/epg.c
130 test_src_misc_epg_LDADD = $(LIBVLCCORE) $(LIBVLC)
131 test_src_misc_keystore_SOURCES = src/misc/keystore.c
132 test_src_misc_keystore_LDADD = $(LIBVLCCORE) $(LIBVLC)
133 test_src_interface_dialog_SOURCES = src/interface/dialog.c
134 test_src_interface_dialog_LDADD = $(LIBVLCCORE) $(LIBVLC)
135 test_src_media_source_LDADD = $(LIBVLCCORE) $(LIBVLC)
136 test_src_media_source_SOURCES = src/media_source/media_source.c
137 test_modules_packetizer_helpers_SOURCES = modules/packetizer/helpers.c
138 test_modules_packetizer_helpers_LDADD = $(LIBVLCCORE) $(LIBVLC)
139 test_modules_packetizer_hxxx_SOURCES = modules/packetizer/hxxx.c
140 test_modules_packetizer_hxxx_LDADD = $(LIBVLCCORE) $(LIBVLC)
141 test_modules_keystore_SOURCES = modules/keystore/test.c
142 test_modules_keystore_LDADD = $(LIBVLCCORE) $(LIBVLC)
143 test_modules_tls_SOURCES = modules/misc/tls.c
144 test_modules_tls_LDADD = $(LIBVLCCORE) $(LIBVLC)
145 test_modules_demux_dashuri_SOURCES = modules/demux/dashuri.cpp
147 checkall:
148         $(MAKE) check_PROGRAMS="$(check_PROGRAMS) $(EXTRA_PROGRAMS)" check
150 FORCE:
151         @echo "Generated source cannot be phony. Go away." >&2
152         @exit 1
154 .PHONY: FORCE
156 libvlc_demux_run_la_SOURCES = src/input/demux-run.c src/input/demux-run.h \
157         src/input/common.c src/input/common.h
158 libvlc_demux_run_la_CPPFLAGS = $(AM_CPPFLAGS) \
159         -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
160         -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\"
161 libvlc_demux_run_la_LDFLAGS = -no-install -static
162 libvlc_demux_run_la_LIBADD = \
163         ../lib/libvlc.la ../src/libvlccore.la ../compat/libcompat.la
164 if !HAVE_DYNAMIC_PLUGINS
165 libvlc_demux_run_la_CPPFLAGS += -DHAVE_STATIC_MODULES
166 libvlc_demux_run_la_LIBADD += \
167         ../modules/libxml_plugin.la \
168         ../modules/libconsole_logger_plugin.la \
169         ../modules/libaiff_plugin.la \
170         ../modules/libasf_plugin.la \
171         ../modules/libau_plugin.la \
172         ../modules/libavi_plugin.la \
173         ../modules/libcaf_plugin.la \
174         ../modules/libes_plugin.la \
175         ../modules/libflacsys_plugin.la \
176         ../modules/libh26x_plugin.la \
177         ../modules/libmjpeg_plugin.la \
178         ../modules/libmp4_plugin.la \
179         ../modules/libnsc_plugin.la \
180         ../modules/libnsv_plugin.la \
181         ../modules/libnuv_plugin.la \
182         ../modules/libps_plugin.la \
183         ../modules/libpva_plugin.la \
184         ../modules/libsap_plugin.la \
185         ../modules/libsmf_plugin.la \
186         ../modules/libsubtitle_plugin.la \
187         ../modules/libtta_plugin.la \
188         ../modules/libttml_plugin.la \
189         ../modules/libty_plugin.la \
190         ../modules/libvoc_plugin.la \
191         ../modules/libwav_plugin.la \
192         ../modules/libwebvtt_plugin.la \
193         ../modules/libxa_plugin.la \
194         ../modules/libpacketizer_a52_plugin.la \
195         ../modules/libpacketizer_copy_plugin.la \
196         ../modules/libpacketizer_dts_plugin.la \
197         ../modules/libpacketizer_flac_plugin.la \
198         ../modules/libpacketizer_h264_plugin.la \
199         ../modules/libpacketizer_hevc_plugin.la \
200         ../modules/libpacketizer_mlp_plugin.la \
201         ../modules/libpacketizer_mpeg4audio_plugin.la \
202         ../modules/libpacketizer_mpeg4video_plugin.la \
203         ../modules/libpacketizer_mpegaudio_plugin.la \
204         ../modules/libpacketizer_mpegvideo_plugin.la \
205         ../modules/libpacketizer_vc1_plugin.la \
206         ../modules/librawaud_plugin.la \
207         ../modules/librawvid_plugin.la \
208         ../modules/libfilesystem_plugin.la \
209         ../modules/libxml_plugin.la \
210         ../modules/libogg_plugin.la \
211         -lstdc++
212 if HAVE_DVBPSI
213 libvlc_demux_run_la_CPPFLAGS += -DHAVE_DVBPSI
214 libvlc_demux_run_la_LIBADD += ../modules/libts_plugin.la
215 endif
216 if HAVE_MATROSKA
217 libvlc_demux_run_la_CPPFLAGS += -DHAVE_MATROSKA
218 libvlc_demux_run_la_LIBADD += ../modules/libmkv_plugin.la
219 endif
220 endif
221 EXTRA_LTLIBRARIES = libvlc_demux_run.la
223 libvlc_demux_dec_run_la_SOURCES = $(libvlc_demux_run_la_SOURCES) \
224         src/input/decoder.c src/input/decoder.h
225 libvlc_demux_dec_run_la_CPPFLAGS = $(libvlc_demux_run_la_CPPFLAGS) -DHAVE_DECODERS
226 libvlc_demux_dec_run_la_LDFLAGS = $(libvlc_demux_run_la_LDFLAGS)
227 libvlc_demux_dec_run_la_LIBADD = $(libvlc_demux_run_la_LIBADD)
228 if !HAVE_DYNAMIC_PLUGINS
229 libvlc_demux_dec_run_la_LIBADD += \
230         ../modules/libadpcm_plugin.la \
231         ../modules/libaes3_plugin.la \
232         ../modules/libaraw_plugin.la \
233         ../modules/libg711_plugin.la \
234         ../modules/liblpcm_plugin.la \
235         ../modules/libuleaddvaudio_plugin.la \
236         ../modules/librawvideo_plugin.la \
237         ../modules/libcc_plugin.la \
238         ../modules/libcvdsub_plugin.la \
239         ../modules/libdvbsub_plugin.la \
240         ../modules/libscte18_plugin.la \
241         ../modules/libscte27_plugin.la \
242         ../modules/libspudec_plugin.la \
243         ../modules/libstl_plugin.la \
244         ../modules/libsubsdec_plugin.la \
245         ../modules/libsubsusf_plugin.la \
246         ../modules/libsvcdsub_plugin.la \
247         ../modules/libtextst_plugin.la \
248         ../modules/libsubstx3g_plugin.la
249 endif
250 EXTRA_LTLIBRARIES += libvlc_demux_dec_run.la
253 # Fuzzers
255 vlc_demux_run_LDFLAGS = -no-install -static
256 vlc_demux_run_LDADD = libvlc_demux_run.la
257 vlc_demux_dec_run_SOURCES = vlc-demux-run.c
258 vlc_demux_dec_run_LDFLAGS = -no-install -static
259 vlc_demux_dec_run_LDADD = libvlc_demux_dec_run.la
260 EXTRA_PROGRAMS += vlc-demux-run vlc-demux-dec-run
262 vlc_demux_libfuzzer_LDADD = libvlc_demux_run.la
263 vlc_demux_dec_libfuzzer_SOURCES = vlc-demux-libfuzzer.c
264 vlc_demux_dec_libfuzzer_LDADD = libvlc_demux_dec_run.la
265 if HAVE_LIBFUZZER
266 noinst_PROGRAMS += vlc-demux-libfuzzer vlc-demux-dec-libfuzzer vlc-demux-run vlc-demux-dec-run
267 endif