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