gstreamer/tests/check/Makefile.am

386 lines
11 KiB
Makefile
Raw Normal View History

include $(top_srcdir)/common/check.mak
CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
GST_TOOLS_DIR = $(top_builddir)/tools
REGISTRY_ENVIRONMENT = \
GST_REGISTRY_1_0=$(CHECK_REGISTRY)
# GST_PLUGINS_XYZ_DIR is only set in an uninstalled setup
TESTS_ENVIRONMENT = \
$(REGISTRY_ENVIRONMENT) \
GST_PLUGIN_SYSTEM_PATH_1_0= \
GST_PLUGIN_PATH_1_0=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(GST_PLUGINS_LIBAV_DIR):$(GST_PLUGINS_UGLY_DIR):$(GST_PLUGINS_GOOD_DIR):$(GST_PLUGINS_BASE_DIR):$(GST_PLUGINS_DIR) \
GST_PLUGIN_LOADING_WHITELIST="gstreamer@$(GST_PLUGINS_DIR):gst-plugins-base@$(GSTPB_PLUGINS_DIR):gst-plugins-good:gst-plugins-ugly:gst-libav:gst-plugins-bad@$(top_builddir)" \
GST_STATE_IGNORE_ELEMENTS="apexsink avdtpsrc camerabin cdaudio dc1394src \
dccpclientsrc dccpclientsink dccpserversrc dccpserversink decklinksrc \
decklinksink dvbsrc dvbbasebin dfbvideosink festival fluidsynth gsettingsvideosrc \
gsettingsvideosink gsettingsaudiosrc gsettingsaudiosink linsyssdisrc linsyssdisink nassink \
rsndvdbin sdlaudiosink sdlvideosink vcdsrc rfbsrc vdpauyuvvideo vdpauvideoyuv \
vdpaumpegdec vdpaumpeg4dec vdpauh264dec vdpauvideopostprocess vdpausink neonhttpsrc"
2012-04-04 12:41:22 +00:00
plugindir = $(libdir)/gstreamer-@GST_API_VERSION@
# override to _not_ install the test plugins
install-pluginLTLIBRARIES:
# the core dumps of some machines have PIDs appended
CLEANFILES = core.* test-registry.*
SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-bad.supp
2010-06-02 06:34:05 +00:00
clean-local: clean-local-check clean-local-orc
if USE_ASSRENDER
check_assrender = elements/assrender
else
check_assrender =
endif
2009-09-06 09:50:39 +00:00
if USE_FAAC
check_faac = elements/faac
else
check_faac =
endif
2010-02-11 19:37:55 +00:00
if USE_FAAD
check_faad = elements/faad
else
check_faad =
endif
if USE_VOAACENC
check_voaacenc = elements/voaacenc
else
check_voaacenc =
endif
2011-11-25 14:49:05 +00:00
if USE_VOAMRWBENC
check_voamrwbenc = elements/voamrwbenc
else
check_voamrwbenc =
endif
if USE_EXIF
check_jifmux = elements/jifmux
else
check_jifmux =
endif
if USE_MPEG2ENC
check_mpeg2enc = elements/mpeg2enc
else
check_mpeg2enc =
endif
if USE_MPG123
check_mpg123 = elements/mpg123audiodec
else
check_mpg123 =
endif
if USE_MPLEX
check_mplex = elements/mplex
else
check_mplex =
endif
if USE_NEON
check_neon = elements/neonhttpsrc
else
check_neon =
endif
if USE_OFA
check_ofa = elements/ofa
else
check_ofa =
endif
2010-10-10 00:39:36 +00:00
if USE_SCHRO
check_schro=elements/schroenc
else
check_schro=
endif
if USE_TIMIDITY
check_timidity=elements/timidity
else
check_timidity=
endif
if USE_KATE
check_kate=elements/kate
else
check_kate=
endif
2009-09-18 22:45:09 +00:00
if USE_MIMIC
check_mimic=pipelines/mimic
else
check_mimic=
endif
2010-06-02 06:34:05 +00:00
if HAVE_ORC
check_orc = orc/bayer
2010-06-02 06:34:05 +00:00
else
check_orc =
endif
if USE_ZBAR
check_zbar = elements/zbar
else
check_zbar =
endif
2011-11-22 18:33:17 +00:00
if USE_OPUS
check_opus = elements/opus
else
check_opus =
endif
if USE_CURL
check_curl = elements/curlhttpsink \
elements/curlfilesink \
elements/curlftpsink \
elements/curlsmtpsink
else
check_curl =
endif
2012-09-10 20:09:26 +00:00
if USE_UVCH264
check_uvch264=elements/uvch264demux
else
check_uvch264=
endif
uvch264_dist_data = elements/uvch264demux_data/valid_h264_jpg.mjpg \
elements/uvch264demux_data/valid_h264_jpg.jpg \
elements/uvch264demux_data/valid_h264_jpg.h264 \
elements/uvch264demux_data/valid_h264_yuy2.mjpg \
elements/uvch264demux_data/valid_h264_yuy2.h264 \
elements/uvch264demux_data/valid_h264_yuy2.yuy2
if USE_SHM
check_shm=elements/shm
else
check_shm=
endif
2012-09-10 20:09:26 +00:00
VALGRIND_TO_FIX = \
elements/mpeg2enc \
elements/mplex \
elements/zbar \
pipeline/colorspace
# valgrind testing
VALGRIND_TESTS_DISABLE = \
$(VALGRIND_TO_FIX)
# these tests don't even pass
# neon: too flaky (almost always fails 'the first time')
# colorspace: bad memory accesses in orc code for odd width buffers - https://bugzilla.gnome.org/show_bug.cgi?id=663248
noinst_PROGRAMS = \
pipelines/colorspace \
pipelines/streamheader \
$(check_neon)
check_PROGRAMS = \
generic/states \
$(check_assrender) \
2009-09-06 09:50:39 +00:00
$(check_faac) \
2010-02-11 19:37:55 +00:00
$(check_faad) \
$(check_voaacenc) \
2011-11-25 14:49:05 +00:00
$(check_voamrwbenc) \
$(check_mpeg2enc) \
$(check_mplex) \
$(check_ofa) \
$(check_timidity) \
$(check_kate) \
2011-11-22 18:33:17 +00:00
$(check_opus) \
$(check_curl) \
$(check_shm) \
elements/autoconvert \
elements/autovideoconvert \
elements/asfmux \
elements/baseaudiovisualizer \
elements/camerabin \
elements/dataurisrc \
elements/gdppay \
elements/gdpdepay \
$(check_jifmux) \
elements/jpegparse \
elements/h263parse \
elements/h264parse \
elements/mpegtsmux \
elements/mpegvideoparse \
elements/mpeg4videoparse \
$(check_mpg123) \
elements/mxfdemux \
2009-04-02 10:46:13 +00:00
elements/mxfmux \
elements/id3mux \
pipelines/mxf \
2009-09-28 23:54:53 +00:00
$(check_mimic) \
libs/mpegvideoparser \
libs/h264parser \
2012-09-10 20:09:26 +00:00
$(check_uvch264) \
libs/vc1parser \
2010-10-10 00:39:36 +00:00
$(check_schro) \
elements/viewfinderbin \
$(check_zbar) \
2010-06-02 06:34:05 +00:00
$(check_orc) \
libs/insertbin \
$(EXPERIMENTAL_CHECKS)
noinst_HEADERS = elements/mxfdemux.h
TESTS = $(check_PROGRAMS)
2011-10-04 12:27:08 +00:00
AM_CFLAGS = $(GST_CFLAGS) $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) \
-DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
-UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
LDADD = $(GST_CHECK_LIBS)
# parser unit test convenience lib
noinst_LTLIBRARIES = libparser.la
libparser_la_SOURCES = elements/parser.c elements/parser.h
libparser_la_CFLAGS = \
-I$(top_srcdir)/tests/check \
2011-10-04 12:27:08 +00:00
$(GST_CFLAGS) $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS)
elements_mpegvideoparse_LDADD = libparser.la $(LDADD)
elements_mpeg4videoparse_LDADD = libparser.la $(LDADD)
elements_h263parse_LDADD = libparser.la $(LDADD)
elements_h264parse_LDADD = libparser.la $(LDADD)
libs_mpegvideoparser_CFLAGS = \
$(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
-DGST_USE_UNSTABLE_API \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
libs_mpegvideoparser_LDADD = \
2012-04-04 12:41:22 +00:00
$(top_builddir)/gst-libs/gst/codecparsers/libgstcodecparsers-@GST_API_VERSION@.la \
$(GST_PLUGINS_BAD_LIBS) -lgstcodecparsers-@GST_API_VERSION@ \
$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
libs_h264parser_CFLAGS = \
$(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
-DGST_USE_UNSTABLE_API \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
libs_h264parser_LDADD = \
2012-04-04 12:41:22 +00:00
$(top_builddir)/gst-libs/gst/codecparsers/libgstcodecparsers-@GST_API_VERSION@.la \
$(GST_PLUGINS_BAD_LIBS) -lgstcodecparsers-@GST_API_VERSION@ \
$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
libs_vc1parser_CFLAGS = \
$(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
-DGST_USE_UNSTABLE_API \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
libs_vc1parser_LDADD = \
2012-04-04 12:41:22 +00:00
$(top_builddir)/gst-libs/gst/codecparsers/libgstcodecparsers-@GST_API_VERSION@.la \
$(GST_PLUGINS_BAD_LIBS) -lgstcodecparsers-@GST_API_VERSION@ \
$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
2012-02-07 11:02:34 +00:00
2012-02-07 16:00:26 +00:00
elements_faad_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
elements_faad_LDADD = \
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) \
2012-04-04 12:41:22 +00:00
-lgstaudio-@GST_API_VERSION@
2012-02-07 16:00:26 +00:00
2012-02-07 11:02:34 +00:00
elements_faac_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
elements_faac_LDADD = \
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) \
2012-04-04 12:41:22 +00:00
-lgstaudio-@GST_API_VERSION@
2012-02-07 11:14:05 +00:00
elements_gdppay_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
elements_gdppay_LDADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
elements_gdpdepay_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
elements_gdpdepay_LDADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
elements_voaacenc_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
elements_voaacenc_LDADD = \
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) \
2012-04-04 12:41:22 +00:00
-lgstaudio-@GST_API_VERSION@
elements_baseaudiovisualizer_SOURCES = elements/baseaudiovisualizer.c \
2012-07-24 08:32:20 +00:00
$(top_srcdir)/gst/audiovisualizers/gstaudiovisualizer.c \
$(top_srcdir)/gst/audiovisualizers/gstaudiovisualizer.h
elements_baseaudiovisualizer_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) \
-I$(top_srcdir)/gst/audiovisualizers $(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
elements_baseaudiovisualizer_LDADD = \
2012-04-04 12:41:22 +00:00
$(GST_PLUGINS_BASE_LIBS) -lgstaudio-@GST_API_VERSION@ \
-lgstvideo-@GST_API_VERSION@ $(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) \
$(GST_LIBS) $(LDADD)
elements_camerabin_CFLAGS = \
$(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS) -DGST_USE_UNSTABLE_API
elements_camerabin_LDADD = \
2012-04-04 12:41:22 +00:00
$(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_API_VERSION@.la \
$(top_builddir)/gst-libs/gst/basecamerabinsrc/libgstbasecamerabinsrc-@GST_API_VERSION@.la \
$(GST_PLUGINS_BASE_LIBS) -lgstpbutils-$(GST_API_VERSION) \
$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
2012-04-30 16:44:34 +00:00
elements_camerabin_SOURCES = elements/camerabin.c
elements_jifmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(EXIF_CFLAGS) $(AM_CFLAGS)
2012-04-04 12:41:22 +00:00
elements_jifmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_API_VERSION) $(GST_CHECK_LIBS) $(EXIF_LIBS) $(LDADD)
elements_jifmux_SOURCES = elements/jifmux.c
elements_timidity_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
elements_timidity_LDADD = $(GST_BASE_LIBS) $(LDADD)
elements_kate_CFLAGS = $(GST_BASE_CFLAGS) $(AM_CFLAGS)
elements_kate_LDADD = $(GST_BASE_LIBS) $(LDADD)
elements_assrender_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
2012-04-04 12:41:22 +00:00
elements_assrender_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) -lgstapp-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
elements_mpegtsmux_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
2012-04-04 12:41:22 +00:00
elements_mpegtsmux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_BASE_LIBS) $(LDADD)
elements_mpg123audiodec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS)
elements_mpg123audiodec_LDADD = \
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) \
-lgstaudio-@GST_API_VERSION@ -lgstfft-@GST_API_VERSION@ -lgstapp-@GST_API_VERSION@
2012-09-10 20:09:26 +00:00
elements_uvch264demux_CFLAGS = -DUVCH264DEMUX_DATADIR="$(srcdir)/elements/uvch264demux_data" \
$(AM_CFLAGS)
pipelines_streamheader_CFLAGS = $(GIO_CFLAGS) $(AM_CFLAGS)
pipelines_streamheader_LDADD = $(GIO_LIBS) $(LDADD)
libs_insertbin_LDADD = \
$(GST_PLUGINS_BAD_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) \
$(top_builddir)/gst-libs/gst/insertbin/libgstinsertbin-@GST_API_VERSION@.la
libs_insertbin_CFLAGS = \
$(GST_PLUGINS_BAD_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS)
2012-09-10 20:09:26 +00:00
EXTRA_DIST = gst-plugins-bad.supp $(uvch264_dist_data)
2010-06-02 06:34:05 +00:00
orc_bayer_CFLAGS = $(ORC_CFLAGS)
orc_bayer_LDADD = $(ORC_LIBS) -lorc-test-0.4
2010-06-02 06:34:05 +00:00
orc/bayer.c: $(top_srcdir)/gst/bayer/gstbayerorc.orc
$(MKDIR_P) orc
$(ORCC) --test -o $@ $<
2010-06-02 06:34:05 +00:00
clean-local-orc:
rm -rf orc