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 GST_TOOLS_DIR = $(top_builddir)/tools
8 REGISTRY_ENVIRONMENT = \
9 GST_REGISTRY=$(CHECK_REGISTRY)
11 # GST_PLUGINS_XYZ_DIR is only set in an uninstalled setup
13 $(REGISTRY_ENVIRONMENT) \
14 GST_PLUGIN_SYSTEM_PATH= \
15 GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(GST_PLUGINS_FFMPEG_DIR):$(GST_PLUGINS_UGLY_DIR):$(GST_PLUGINS_GOOD_DIR):$(GST_PLUGINS_BASE_DIR):$(GST_PLUGINS_DIR) \
16 GST_PLUGIN_LOADING_WHITELIST="gstreamer@$(GST_PLUGINS_DIR):gst-plugins-base@$(GSTPB_PLUGINS_DIR):gst-plugins-good:gst-plugins-ugly:gst-ffmpeg:gst-plugins-bad@$(top_builddir)" \
17 GST_STATE_IGNORE_ELEMENTS="apexsink camerabin cdaudio dc1394src \
18 dccpclientsrc dccpclientsink dccpserversrc dccpserversink decklinksrc \
19 decklinksink dvbsrc dvbbasebin dfbvideosink festival gsettingsvideosrc \
20 gsettingsvideosink gsettingsaudiosrc gsettingsaudiosink linsyssdisrc linsyssdisink nassink \
21 rsndvdbin sdlaudiosink sdlvideosink vcdsrc rfbsrc vdpauyuvvideo vdpauvideoyuv \
22 vdpaumpegdec vdpaumpeg4dec vdpauh264dec vdpauvideopostprocess vdpausink neonhttpsrc"
24 plugindir = $(libdir)/gstreamer-@GST_API_VERSION@
26 # override to _not_ install the test plugins
27 install-pluginLTLIBRARIES:
29 # the core dumps of some machines have PIDs appended
30 CLEANFILES = core.* test-registry.*
32 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-bad.supp
34 clean-local: clean-local-check clean-local-orc
37 check_assrender = elements/assrender
43 check_faac = elements/faac
49 check_faad = elements/faad
55 check_voaacenc = elements/voaacenc
61 check_voamrwbenc = elements/voamrwbenc
67 check_jifmux = elements/jifmux
73 check_logoinsert = elements/logoinsert
79 check_mpeg2enc = elements/mpeg2enc
85 check_mplex = elements/mplex
91 check_neon = elements/neonhttpsrc
97 check_ofa = elements/ofa
103 check_schro=elements/schroenc
109 check_timidity=elements/timidity
115 check_kate=elements/kate
121 check_mimic=pipelines/mimic
127 check_vp8=elements/vp8enc elements/vp8dec
133 check_orc = orc/cog orc/bayer
139 check_zbar = elements/zbar
145 check_opus = elements/opus
151 check_curl = elements/curlhttpsink \
152 elements/curlfilesink \
153 elements/curlftpsink \
154 elements/curlsmtpsink
166 VALGRIND_TESTS_DISABLE = \
169 # these tests don't even pass
170 # neon: too flaky (almost always fails 'the first time')
171 # colorspace: bad memory accesses in orc code for odd width buffers - https://bugzilla.gnome.org/show_bug.cgi?id=663248
173 pipelines/colorspace \
182 $(check_voamrwbenc) \
190 elements/autoconvert \
191 elements/autovideoconvert \
193 elements/baseaudiovisualizer \
195 elements/dataurisrc \
198 $(check_logoinsert) \
202 elements/mpegvideoparse \
203 elements/mpeg4videoparse \
210 libs/mpegvideoparser \
215 elements/viewfinderbin \
218 $(EXPERIMENTAL_CHECKS)
220 noinst_HEADERS = elements/mxfdemux.h
222 TESTS = $(check_PROGRAMS)
224 AM_CFLAGS = $(GST_CFLAGS) $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) \
225 -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
226 -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
227 LDADD = $(GST_CHECK_LIBS)
229 # parser unit test convenience lib
230 noinst_LTLIBRARIES = libparser.la
231 libparser_la_SOURCES = elements/parser.c elements/parser.h
232 libparser_la_CFLAGS = \
233 -I$(top_srcdir)/tests/check \
234 $(GST_CFLAGS) $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS)
236 elements_mpegvideoparse_LDADD = libparser.la $(LDADD)
238 elements_mpeg4videoparse_LDADD = libparser.la $(LDADD)
240 elements_h263parse_LDADD = libparser.la $(LDADD)
242 elements_h264parse_LDADD = libparser.la $(LDADD)
244 libs_mpegvideoparser_CFLAGS = \
245 $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
246 -DGST_USE_UNSTABLE_API \
247 $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
249 libs_mpegvideoparser_LDADD = \
250 $(top_builddir)/gst-libs/gst/codecparsers/libgstcodecparsers-@GST_API_VERSION@.la \
251 $(GST_PLUGINS_BAD_LIBS) -lgstcodecparsers-@GST_API_VERSION@ \
252 $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
254 libs_h264parser_CFLAGS = \
255 $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
256 -DGST_USE_UNSTABLE_API \
257 $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
259 libs_h264parser_LDADD = \
260 $(top_builddir)/gst-libs/gst/codecparsers/libgstcodecparsers-@GST_API_VERSION@.la \
261 $(GST_PLUGINS_BAD_LIBS) -lgstcodecparsers-@GST_API_VERSION@ \
262 $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
264 libs_vc1parser_CFLAGS = \
265 $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
266 -DGST_USE_UNSTABLE_API \
267 $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
269 libs_vc1parser_LDADD = \
270 $(top_builddir)/gst-libs/gst/codecparsers/libgstcodecparsers-@GST_API_VERSION@.la \
271 $(GST_PLUGINS_BAD_LIBS) -lgstcodecparsers-@GST_API_VERSION@ \
272 $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
274 elements_faad_CFLAGS = \
275 $(GST_PLUGINS_BASE_CFLAGS) \
276 $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
277 elements_faad_LDADD = \
278 $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) \
279 -lgstaudio-@GST_API_VERSION@
281 elements_faac_CFLAGS = \
282 $(GST_PLUGINS_BASE_CFLAGS) \
283 $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
284 elements_faac_LDADD = \
285 $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) \
286 -lgstaudio-@GST_API_VERSION@
288 elements_voaacenc_CFLAGS = \
289 $(GST_PLUGINS_BASE_CFLAGS) \
290 $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
291 elements_voaacenc_LDADD = \
292 $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) \
293 -lgstaudio-@GST_API_VERSION@
295 elements_baseaudiovisualizer_SOURCES = elements/baseaudiovisualizer.c \
296 $(top_srcdir)/gst/audiovisualizers/gstaudiovisualizer.c \
297 $(top_srcdir)/gst/audiovisualizers/gstaudiovisualizer.h
298 elements_baseaudiovisualizer_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) \
299 -I$(top_srcdir)/gst/audiovisualizers $(GST_PLUGINS_BASE_CFLAGS) \
300 $(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
301 elements_baseaudiovisualizer_LDADD = \
302 $(GST_PLUGINS_BASE_LIBS) -lgstaudio-@GST_API_VERSION@ \
303 -lgstvideo-@GST_API_VERSION@ $(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) \
306 elements_camerabin_CFLAGS = \
307 $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
308 $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS) -DGST_USE_UNSTABLE_API
309 elements_camerabin_LDADD = \
310 $(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_API_VERSION@.la \
311 $(top_builddir)/gst-libs/gst/basecamerabinsrc/libgstbasecamerabinsrc-@GST_API_VERSION@.la \
312 -lgstpbutils-$(GST_API_VERSION) \
313 $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
314 elements_camerabin_SOURCES = elements/camerabin.c
316 elements_jifmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(EXIF_CFLAGS) $(AM_CFLAGS)
317 elements_jifmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_API_VERSION) $(GST_CHECK_LIBS) $(EXIF_LIBS) $(LDADD)
318 elements_jifmux_SOURCES = elements/jifmux.c
320 elements_timidity_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
321 elements_timidity_LDADD = $(GST_BASE_LIBS) $(LDADD)
323 elements_kate_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
324 elements_kate_LDADD = $(GST_BASE_LIBS) $(LDADD)
326 elements_rtpmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
327 elements_rtpmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstrtp-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
329 elements_assrender_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
330 elements_assrender_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) -lgstapp-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
332 elements_mpegtsmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
333 elements_mpegtsmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
336 EXTRA_DIST = gst-plugins-bad.supp
338 orc_bayer_CFLAGS = $(ORC_CFLAGS)
339 orc_bayer_LDADD = $(ORC_LIBS) -lorc-test-0.4
340 orc_cog_CFLAGS = $(ORC_CFLAGS)
341 orc_cog_LDADD = $(ORC_LIBS) -lorc-test-0.4
343 orc/cog.c: $(top_srcdir)/ext/cog/gstcogorc.orc
345 $(ORCC) --test -o $@ $<
347 orc/bayer.c: $(top_srcdir)/gst/bayer/gstbayerorc.orc
349 $(ORCC) --test -o $@ $<