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