1 include $(top_srcdir)/common/check.mak
3 CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
4 TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
6 REGISTRY_ENVIRONMENT = \
7 GST_REGISTRY_1_0=$(CHECK_REGISTRY)
10 $(REGISTRY_ENVIRONMENT) \
11 GST_PLUGIN_SYSTEM_PATH_1_0= \
12 GST_PLUGIN_PATH_1_0=$(top_builddir)/gst:$(top_builddir)/ext:$(top_builddir)/sys:$(GSTPB_PLUGINS_DIR):$(GST_PLUGINS_DIR) \
13 GST_PLUGIN_LOADING_WHITELIST="gstreamer@$(GST_PLUGINS_DIR):gst-plugins-base@$(GSTPB_PLUGINS_DIR):gst-plugins-good@$(top_builddir)" \
14 GST_STATE_IGNORE_ELEMENTS="aasink autoaudiosrc autoaudiosink autovideosrc autovideosink \
15 cacasink cairotextoverlay \
16 halaudiosrc halaudiosink jackaudiosrc jackaudiosink \
17 osssrc osssink osxaudiosink osxaudiosrc osxvideosrc osxvideosink \
18 pulsesink pulsesrc pulsemixer v4l2src"
20 # fake device drivers: we could run hardware element tests against dummy drivers
21 # v4l2: vivo (part of normal kernel)
23 # gst-launch v4l2src device="/dev/video1" ! xvimagesink;
26 # alsa: snd-dummy (part of normal alsa, not removable)
28 # gst-launch alsasrc device="hw:2" ! fakesink
29 # gst-launch fakesrc ! alsasink device="hw:2"
31 # need a way to figure out value for the device property
33 # the core dumps of some machines have PIDs appended
34 CLEANFILES = core.* test-registry.*
36 clean-local: clean-local-check clean-local-orc
39 check_flac = pipelines/flacdec
45 check_gdkpixbuf = elements/gdkpixbufsink
59 check_soup = elements/souphttpsrc
65 check_sunaudio = elements/sunaudio
79 check_vpx=elements/vp8enc elements/vp8dec
94 check_orc = orc/deinterlace orc/videomixer orc/videobox
105 elements/alphacolor \
106 elements/aspectratiocrop \
107 elements/audioamplify \
108 elements/audiochebband \
109 elements/audiocheblimit \
110 elements/audiodynamic \
112 elements/audiofirfilter \
113 elements/audioiirfilter \
114 elements/audioinvert \
115 elements/audiopanorama \
116 elements/audiowsincband \
117 elements/audiowsinclimit \
118 elements/autodetect \
120 elements/avisubtitle \
121 elements/capssetter \
122 elements/deinterlace \
123 elements/deinterleave \
130 elements/imagefreeze \
131 elements/interleave \
133 elements/matroskamux \
134 elements/matroskaparse \
135 elements/mpegaudioparse \
138 elements/rganalysis \
141 elements/rtp-payloading \
143 elements/rtpbin_buffer_list \
144 elements/rtpjitterbuffer \
151 elements/videofilter \
152 elements/wavpackparse \
154 pipelines/simple-launch-lines \
156 pipelines/tagschecking \
169 elements/rtp-payloading
171 TESTS = $(check_PROGRAMS)
173 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) \
174 $(GST_OPTION_CFLAGS) $(GST_CFLAGS) -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
175 -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
176 LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
179 # videocrop disabled since it takes way too long in valgrind
180 VALGRIND_TESTS_DISABLE = \
184 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-good.supp
186 # parser unit test convenience lib
187 noinst_LTLIBRARIES = libparser.la
188 libparser_la_SOURCES = elements/parser.c elements/parser.h
189 libparser_la_CFLAGS = \
190 -I$(top_srcdir)/tests/check \
191 $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) -DGST_USE_UNSTABLE_API
193 elements_aacparse_LDADD = libparser.la $(LDADD)
195 elements_ac3parse_LDADD = libparser.la $(LDADD)
197 elements_amrparse_LDADD = libparser.la $(LDADD)
199 elements_flacparse_LDADD = libparser.la $(LDADD)
201 elements_mpegaudioparse_LDADD = libparser.la $(LDADD)
203 elements_aspectratiocrop_LDADD = $(LDADD)
204 elements_aspectratiocrop_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
206 elements_audioamplify_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
207 elements_audioamplify_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
209 elements_audiochebband_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
210 elements_audiochebband_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
212 elements_audiocheblimit_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
213 elements_audiocheblimit_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
215 elements_audiodynamic_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
216 elements_audiodynamic_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
218 elements_audioecho_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
219 elements_audioecho_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
221 elements_audioinvert_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
222 elements_audioinvert_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
224 elements_audiopanorama_LDADD = \
225 $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(GST_BASE_LIBS) \
226 $(GST_CONTROLLER_LIBS) $(LDADD)
228 elements_audiopanorama_CFLAGS = \
229 $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) \
230 $(CFLAGS) $(AM_CFLAGS)
232 elements_audiowsincband_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
233 elements_audiowsincband_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
235 elements_audiowsinclimit_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
236 elements_audiowsinclimit_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
238 elements_equalizer_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
239 elements_equalizer_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
241 elements_rganalysis_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
242 elements_rganalysis_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
243 elements_rglimiter_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
244 elements_rglimiter_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
245 elements_rgvolume_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
246 elements_rgvolume_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
248 elements_spectrum_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
249 elements_spectrum_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
251 elements_alphacolor_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
253 elements_deinterlace_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
254 elements_deinterlace_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(LDADD)
256 elements_deinterleave_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
257 elements_deinterleave_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
258 elements_interleave_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
259 elements_interleave_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
261 elements_level_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
262 elements_level_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
264 elements_imagefreeze_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
265 elements_imagefreeze_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
267 elements_jpegdec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GIO_CFLAGS) $(AM_CFLAGS)
268 elements_jpegdec_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstapp-$(GST_API_VERSION) -lgstpbutils-$(GST_API_VERSION) $(GST_BASE_LIBS) $(GIO_LIBS) $(LDADD)
270 elements_jpegenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
271 elements_jpegenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstapp-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
273 elements_matroskamux_LDADD = $(GST_BASE_LIBS) $(LDADD) $(LIBM)
275 elements_multifile_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
276 elements_multifile_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_LIBS) $(LDADD) $(LIBM)
278 elements_qtmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
279 elements_qtmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstpbutils-@GST_API_VERSION@ \
280 $(GST_BASE_LIBS) $(GST_LIBS) $(GST_CHECK_LIBS)
282 elements_rtpbin_buffer_list_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \
283 $(WARNING_CFLAGS) $(ERROR_CFLAGS) $(GST_CHECK_CFLAGS) $(AM_CFLAGS)
284 elements_rtpbin_buffer_list_LDADD = $(GST_PLUGINS_BASE_LIBS) \
285 -lgstrtp-@GST_API_VERSION@ \
286 $(GST_BASE_LIBS) $(GST_LIBS) $(GST_CHECK_LIBS)
287 elements_rtpbin_buffer_list_SOURCES = elements/rtpbin_buffer_list.c
289 elements_rtpmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
290 elements_rtpmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstrtp-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
292 elements_souphttpsrc_CFLAGS = $(SOUP_CFLAGS) $(AM_CFLAGS)
293 elements_souphttpsrc_LDADD = $(SOUP_LIBS) $(LDADD)
295 elements_sunaudio_CFLAGS = \
296 $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) \
298 elements_sunaudio_LDADD = \
299 $(GST_PLUGINS_BASE_LIBS) \
302 elements_udpsrc_CFLAGS = $(AM_CFLAGS) $(GIO_CFLAGS)
303 elements_udpsrc_LDADD = $(LDADD) $(GIO_LIBS)
305 elements_videocrop_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(LDADD)
306 elements_videocrop_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
308 elements_videofilter_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
309 elements_videofilter_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(LDADD)
311 # FIXME: configure should check for gdk-pixbuf not gtk
312 # only need video.h header, not the lib
313 elements_gdkpixbufsink_CFLAGS = \
314 $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS) $(GDK_PIXBUF_CFLAGS)
315 elements_gdkpixbufsink_LDADD = \
316 $(LDADD) $(GDK_PIXBUF_LIBS)
319 pipelines_flacdec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
320 pipelines_flacdec_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
322 pipelines_wavenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
323 pipelines_wavenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) $(LDADD)
325 pipelines_wavpack_LDADD = $(LDADD) $(GST_BASE_LIBS)
326 pipelines_wavpack_CFLAGS = $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
328 orc_deinterlace_CFLAGS = $(ORC_CFLAGS)
329 orc_deinterlace_LDADD = $(ORC_LIBS) -lorc-test-0.4
330 nodist_orc_deinterlace_SOURCES = orc/deinterlace.c
331 orc_videomixer_CFLAGS = $(ORC_CFLAGS)
332 orc_videomixer_LDADD = $(ORC_LIBS) -lorc-test-0.4
333 nodist_orc_videomixer_SOURCES = orc/videomixer.c
334 orc_videobox_CFLAGS = $(ORC_CFLAGS)
335 orc_videobox_LDADD = $(ORC_LIBS) -lorc-test-0.4
336 nodist_orc_videobox_SOURCES = orc/videobox.c
338 orc/deinterlace.c: $(top_srcdir)/gst/deinterlace/tvtime.orc
340 $(ORCC) --test -o $@ $<
342 orc/videomixer.c: $(top_srcdir)/gst/videomixer/blendorc.orc
344 $(ORCC) --test -o $@ $<
346 orc/videobox.c: $(top_srcdir)/gst/videobox/gstvideoboxorc.orc
348 $(ORCC) --test -o $@ $<
353 EXTRA_DIST = gst-plugins-good.supp