Remove autotools build system

This commit is contained in:
Tim-Philipp Müller 2019-06-09 01:34:04 +01:00
parent 6babf1f086
commit 10d9e18f02
85 changed files with 54 additions and 4904 deletions

58
.gitignore vendored
View file

@ -1,48 +1,6 @@
ABOUT-NLS
INSTALL
Makefile
Makefile.in
aclocal.m4
config.cache
config.guess
config.h
config.h.in
config.h-new
config.log
config.rpath
config.status*
config.sub
configure
gstreamer-[0-9]*
gstreamer-config
gstreamer.pc
gstreamer-uninstalled.pc
gst-element-check-*.m4
libtool
ltconfig
ltmain.sh
missing
stamp-h
stamp-h.in
stamp.h
autom4te.cache
autom4te-2.53.cache
stamp-h1
autoregen.sh
compile
depcomp
install-sh
mkinstalldirs
py-compile
registry.*
coverage-report.txt
/test-driver
.deps
.libs
*~
_stdint.h
*.gir
*.typelib
*.bak
Build
*.user
*.suo
@ -50,14 +8,8 @@ Build
*.sdf
*.opensdf
*.DS_Store
*.log
*.trs
.dirstamp
*.gc??
*.swp
/libs/gst/*/*-enumtypes.[ch]
/libs/gst/helpers/gst-completion-helper-1.0
/tests/misc/netclock-replay
# Meson
/build
/_build
/subprojects

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "common"]
path = common
url = https://gitlab.freedesktop.org/gstreamer/common.git

View file

@ -1,189 +0,0 @@
# note: keep in sync with configure.ac
ACLOCAL_AMFLAGS = -I m4 -I common/m4
aclocaldir = $(datadir)/aclocal
aclocal_DATA = gst-element-check-1.0.m4
SUBDIRS = pkgconfig \
gst libs plugins tests \
po \
m4 \
common \
data
if BUILD_TOOLS
SUBDIRS += tools
endif
# These are all the possible subdirs
DIST_SUBDIRS = pkgconfig \
gst libs plugins tools tests \
po \
m4 \
common \
data
EXTRA_DIST = \
gst-element-check-1.0.m4 \
configure.ac autogen.sh depcomp \
MAINTAINERS ABOUT-NLS RELEASE gstreamer.doap \
scripts/gst-uninstalled \
$(shell find "$(top_srcdir)" -type f -name meson.build ! -path "$(top_srcdir)/gstreamer-*" ) \
meson_options.txt \
gst/parse/gen_lex.py.in gst/parse/gen_grammar.py.in
DISTCLEANFILES = _stdint.h
include $(top_srcdir)/common/release.mak
include $(top_srcdir)/common/po.mak
if GST_GCOV_ENABLED
clean-gcov:
find -name "*.da" -o -name "*.gcov" | xargs rm || true
clean-bbg:
find -name "*.bbg" -o -name "*.bb" | xargs rm || true
GCOV_DIRS=gst libs
## .PHONY so it always rebuilds it
.PHONY: coverage-report.txt
coverage-report.txt:
BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
C_FILES= ; \
for F in $$BBG_FILES ; do \
F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
B=`basename $$F .bbg` ; \
D=`dirname $$F` ; \
DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
DA_libs=`echo $$D/.libs/$$B/.da` ; \
if test -e $$DA || test -e $$DA_libs; then \
C_FILES="$$C_FILES $$C" ; \
fi ; \
done ; \
echo $$C_FILES ; \
$(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
check-coverage: clean-gcov all check coverage-report.txt
cat coverage-report.txt
else
coverage-report.txt:
echo "Need to reconfigure with --enable-gcov"
check-coverage:
echo "Need to reconfigure with --enable-gcov"
endif
if HAVE_CHECK
check-valgrind:
$(MAKE) -C tests/check check-valgrind
check-torture:
$(MAKE) -C tests/check torture
build-checks:
$(MAKE) -C tests/check build-checks
else
check-valgrind:
echo "'check' library not installed, skipping"
check-torture:
echo "'check' library not installed, skipping"
build-checks:
echo "'check' library not installed, skipping"
endif
check-enum-gettypes: $(top_builddir)/gst/gstenumtypes.h
@echo 'Checking if all enum and flag _get_type() funcs are inited in gst_init()'; \
FUNCS=`grep '_get_type (' gst/gstenumtypes.h | sed -e 's/^.*gst_/gst_/' -e 's/_get_type.*$$/_get_type/'`;\
MISSING_FUNCS=''; \
for f in $$FUNCS; do \
INIT_LINE=`grep $$f $(top_srcdir)/gst/*.c | grep g_type_class_ref`; \
if test "x$$INIT_LINE" = "x"; then \
MISSING_FUNCS="$$MISSING_FUNCS $$f"; \
fi; \
done; \
if test "x$$MISSING_FUNCS" != "x"; then \
echo "FIXME: please add to the following to gst/gst.c init_post():"; \
for f in $$MISSING_FUNCS; do \
echo " g_type_class_ref ($$f ());"; \
done; \
exit 1; \
fi; \
echo 'Checking if all enum and flag _get_type() funcs are deinited in gst_deinit()'; \
MISSING_FUNCS=''; \
for f in $$FUNCS; do \
INIT_LINE=`grep $$f $(top_srcdir)/gst/*.c | grep g_type_class_unref`; \
if test "x$$INIT_LINE" = "x"; then \
MISSING_FUNCS="$$MISSING_FUNCS $$f"; \
fi; \
done; \
if test "x$$MISSING_FUNCS" != "x"; then \
echo "FIXME: please add to the following to gst/gst.c gst_deinit():"; \
for f in $$MISSING_FUNCS; do \
echo " g_type_class_unref (g_type_class_peek ($$f ()));"; \
done; \
exit 1; \
fi
include $(top_srcdir)/common/coverage/lcov.mak
check: check-enum-gettypes
# cruft: plugins that have been merged or moved or renamed
CRUFT_FILES = \
$(top_builddir)/win32/common/config.h-new \
$(top_builddir)/common/shave \
$(top_builddir)/common/shave-libtool \
$(top_builddir)/common/m4/codeset.m4 \
$(top_builddir)/common/m4/gettext.m4 \
$(top_builddir)/common/m4/glibc2.m4 \
$(top_builddir)/common/m4/glibc21.m4 \
$(top_builddir)/common/m4/iconv.m4 \
$(top_builddir)/common/m4/intdiv0.m4 \
$(top_builddir)/common/m4/intl.m4 \
$(top_builddir)/common/m4/intldir.m4 \
$(top_builddir)/common/m4/intlmacosx.m4 \
$(top_builddir)/common/m4/intmax.m4 \
$(top_builddir)/common/m4/inttypes-pri.m4 \
$(top_builddir)/common/m4/inttypes_h.m4 \
$(top_builddir)/common/m4/lcmessage.m4 \
$(top_builddir)/common/m4/lib-ld.m4 \
$(top_builddir)/common/m4/lib-link.m4 \
$(top_builddir)/common/m4/lib-prefix.m4 \
$(top_builddir)/common/m4/libtool.m4 \
$(top_builddir)/common/m4/lock.m4 \
$(top_builddir)/common/m4/longlong.m4 \
$(top_builddir)/common/m4/ltoptions.m4 \
$(top_builddir)/common/m4/ltsugar.m4 \
$(top_builddir)/common/m4/ltversion.m4 \
$(top_builddir)/common/m4/lt~obsolete.m4 \
$(top_builddir)/common/m4/nls.m4 \
$(top_builddir)/common/m4/po.m4 \
$(top_builddir)/common/m4/printf-posix.m4 \
$(top_builddir)/common/m4/progtest.m4 \
$(top_builddir)/common/m4/size_max.m4 \
$(top_builddir)/common/m4/stdint_h.m4 \
$(top_builddir)/common/m4/uintmax_t.m4 \
$(top_builddir)/common/m4/visibility.m4 \
$(top_builddir)/common/m4/wchar_t.m4 \
$(top_builddir)/common/m4/wint_t.m4 \
$(top_builddir)/common/m4/xsize.m4
CRUFT_DIRS = \
$(top_builddir)/tests/examples/xml \
$(top_builddir)/tests/examples/launch \
$(top_builddir)/tests/examples/metadata \
$(top_builddir)/tests/examples/queue \
$(top_builddir)/tests/examples/typefind \
$(top_builddir)/gst/tmp-introspect* \
$(top_builddir)/libs/gst/*/tmp-introspect*
include $(top_srcdir)/common/cruft.mak
all-local: check-cruft

101
README
View file

@ -9,17 +9,22 @@ WHERE TO START
--------------
We have a website at
http://gstreamer.freedesktop.org/
You should start by going through our FAQ at
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/
https://gstreamer.freedesktop.org
There is more documentation; go to
http://gstreamer.freedesktop.org/documentation
Our documentation, including tutorials, API reference and FAQ can be found at
You can subscribe to our mailing lists; see the website for details.
https://gstreamer.freedesktop.org/documentation/
We track bugs in GNOME's bugzilla; see the website for details.
You can subscribe to our mailing lists:
https://lists.freedesktop.org/mailman/listinfo/gstreamer-announce
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
We track bugs, feature requests and merge requests (patches) in GitLab at
https://gitlab.freedesktop.org/gstreamer/
You can join us on IRC - #gstreamer on irc.freenode.org
@ -137,12 +142,11 @@ PLATFORMS
---------
- Linux is of course fully supported
- FreeBSD is reported to work; other BSDs should work too
- Solaris is reported to work; a specific sunaudiosink plugin has been written
- MacOSX works, binary 1.x packages can be built using the cerbero build tool
- FreeBSD is reported to work; other BSDs should work too; same for Solaris
- MacOS works, binary 1.x packages can be built using the cerbero build tool
- Windows works; binary 1.x packages can be built using the cerbero build tool
- MSys/MinGW builds
- Microsoft Visual Studio builds are not yet available or supported
- Microsoft Visual Studio builds are also available and supported
- Android works, binary 1.x packages can be built using the cerbero build tool
- iOS works
@ -151,36 +155,49 @@ INSTALLING FROM PACKAGES
You should always prefer installing from packages first. GStreamer is
well-maintained for a number of distributions, including Fedora, Debian,
Ubuntu, Mandrake, Gentoo, ...
Ubuntu, Mandrake, Arch Linux, Gentoo, ...
Only in cases where you:
- want to hack on GStreamer
- want to verify that a bug has been fixed
- do not have a sane distribution
- want to hack on GStreamer
- want to verify that a bug has been fixed
- do not have a sane distribution
should you choose to build from source tarballs or git.
Find more information about the various packages at
http://gstreamer.freedesktop.org/download/
https://gstreamer.freedesktop.org/download/
COMPILING FROM SOURCE TARBALLS
------------------------------
- again, make sure that you really need to install from source !
- again, make sure that you really need to install from source!
If GStreamer is one of your first projects ever that you build from source,
consider taking on an easier project.
- check output of ./configure --help to see if any options apply to you
- you need a recent version of Meson installed, see
http://mesonbuild.com/Getting-meson.html
and
https://gitlab.freedesktop.org/gstreamer/gst-build/blob/master/README.md
- run
./configure
make
meson build
ninja -C build
to build GStreamer.
- if you want to install it (not required, but what you usually want to do), run
make install
ninja -C build install
- try out a simple test:
gst-launch -v fakesrc num_buffers=5 ! fakesink
(If you didn't install GStreamer, prefix gst-launch with tools/)
gst-launch-1.0 -v fakesrc num_buffers=5 ! fakesink
(If you didn't install GStreamer, run `./build/tools/gst-launch-1.0`)
If it outputs a bunch of messages from fakesrc and fakesink, everything is
ok.
@ -196,39 +213,19 @@ COMPILING FROM SOURCE TARBALLS
COMPILING FROM GIT
------------------
When building from git sources, you will need to run autogen.sh to generate
the build system files.
You can build an uninstalled GStreamer from git for development or testing
purposes without affecting your system installation.
You will need a set of additional tools typical for building from git,
including:
- autoconf
- automake
- libtool
Get started with:
autogen.sh will check for recent enough versions and complain if you don't have
them. You can also specify specific versions of automake and autoconf with
--with-automake and --with-autoconf
git clone https://gitlab.freedesktop.org/gstreamer/gst-build
meson build
ninja -C build
ninja -C build uninstalled
Check autogen.sh options by running autogen.sh --help
For more information, see the `gst-build` module and its documentation:
autogen.sh can pass on arguments to configure
When you have done this once, you can use autoregen.sh to re-autogen with
the last passed options as a handy shortcut. Use it.
After the autogen.sh stage, you can follow the directions listed in
"COMPILING FROM SOURCE"
You can also run your whole git stack uninstalled in your home directory,
so that you can quickly test changes without affecting your system setup or
interfering with GStreamer installed from packages. Many GStreamer developers
use an uninstalled setup for their work.
There is a 'create-uninstalled-setup.sh' script in
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/scripts/
to easily create an uninstalled setup from scratch.
https://gitlab.freedesktop.org/gstreamer/gst-build/blob/master/README.md
PLUG-IN DEPENDENCIES AND LICENSES

0
TODO
View file

View file

@ -1,124 +0,0 @@
#!/bin/sh
#
# gstreamer autogen.sh
#
# Run this to generate all the initial makefiles, etc.
#
# This file has been generated from common/autogen.sh.in via common/update-autogen
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
package=gstreamer
srcfile=gstreamer.doap
# Make sure we have common
if test ! -f common/gst-autogen.sh;
then
echo "+ Setting up common submodule"
git submodule init
fi
git submodule update
# source helper functions
if test ! -f common/gst-autogen.sh;
then
echo There is something wrong with your source tree.
echo You are missing common/gst-autogen.sh
exit 1
fi
. common/gst-autogen.sh
# install pre-commit hook for doing clean commits
if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
then
rm -f .git/hooks/pre-commit
if ! ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit 2> /dev/null
then
echo "Failed to create commit hook symlink, copying instead ..."
cp common/hooks/pre-commit.hook .git/hooks/pre-commit
fi
fi
# GNU gettext automake support doesn't get along with git.
# https://bugzilla.gnome.org/show_bug.cgi?id=661128
if test -d po ; then
touch -t 200001010000 po/gstreamer-1.0.pot
fi
CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
if test "x$package" = "xgstreamer"; then
CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --enable-failing-tests --enable-poisoning"
elif test "x$package" = "xgst-plugins-bad"; then
CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-player-tests"
fi
autogen_options $@
printf "+ check for build tools"
if test -z "$NOCHECK"; then
echo
printf " checking for autoreconf ... "
echo
which "autoreconf" 2>/dev/null || {
echo "not found! Please install the autoconf package."
exit 1
}
printf " checking for pkg-config ... "
echo
which "pkg-config" 2>/dev/null || {
echo "not found! Please install pkg-config."
exit 1
}
else
echo ": skipped version checks"
fi
# if no arguments specified then this will be printed
if test -z "$*" && test -z "$NOCONFIGURE"; then
echo "+ checking for autogen.sh options"
echo " This autogen script will automatically run ./configure as:"
echo " ./configure $CONFIGURE_DEF_OPT"
echo " To pass any additional options, please specify them on the $0"
echo " command line."
fi
toplevel_check $srcfile
# autopoint
if test -d po && grep ^AM_GNU_GETTEXT_VERSION configure.ac >/dev/null ; then
tool_run "autopoint" "--force"
fi
# aclocal
if test -f acinclude.m4; then rm acinclude.m4; fi
autoreconf --force --install || exit 1
test -n "$NOCONFIGURE" && {
echo "+ skipping configure stage for package $package, as requested."
echo "+ autogen.sh done."
exit 0
}
cd "$olddir"
echo "+ running configure ... "
test ! -z "$CONFIGURE_DEF_OPT" && echo " default flags: $CONFIGURE_DEF_OPT"
test ! -z "$CONFIGURE_EXT_OPT" && echo " external flags: $CONFIGURE_EXT_OPT"
echo
echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
"$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
echo " configure failed"
exit 1
}
echo "Now type 'make' to compile $package."

1
common

@ -1 +0,0 @@
Subproject commit 59cb678164719ff59dcf6c8b93df4617a1075d11

File diff suppressed because it is too large Load diff

View file

@ -1,7 +0,0 @@
if ENABLE_BASH_COMPLETION
bashhelpersdir = $(BASH_HELPERS_DIR)
dist_bashhelpers_DATA = bash-completion/helpers/gst
bashcompletiondir = $(BASH_COMPLETION_DIR)
dist_bashcompletion_DATA = bash-completion/completions/gst-inspect-1.0 \
bash-completion/completions/gst-launch-1.0
endif

View file

@ -1 +0,0 @@
gst

9
docs/.gitignore vendored
View file

@ -1,9 +0,0 @@
Makefile
Makefile.in
*.o
*.lo
*.la
.deps
.libs
version.entities
tmpl/

View file

@ -1,20 +0,0 @@
gstreamer-plugins-decl-list.txt
gstreamer-plugins-decl.txt
gstreamer-plugins-overrides.txt
gstreamer-plugins-undocumented.txt
gstreamer-plugins.args.new
gstreamer-plugins.signals.new
gstreamer-plugins-unused.txt
gstreamer-plugins-undeclared.txt
html
html-build.stamp
html.stamp
scan-build.stamp
sgml-build.stamp
sgml.stamp
tmpl
tmpl-build.stamp
tmpl.stamp
xml
inspect-registry.*
gstreamer-plugins*.bak

View file

View file

@ -1,61 +0,0 @@
These are some notes on our autotools setup, and some things to remember.
plugin Makefile.am:
- plugindir gets defined for you, don't set it in Makefile.am
- plugin_LTLIBRARIES should contain the name of every plugin,
starting with libgst and ending in .la
- put compile/link variables in the following order: CFLAGS, LIBADD, LDFLAGS
- order _CFLAGS and _LIBADD with the highest in the stack first;
e.g. $(GST_PLUGINS_BASE_LIBS) $(GST_LIBS) $(MUSICBRAINZ_LIBS)
this makes sure that the one you're most likely to be hacking on
(GStreamer) has its -L flags pointing to your hacking directory,
and comes first on the link line. If it were to come later and you
had the library installed in the same place as the dependency, it
would take that version instead
- DO NOT put any libraries in _LDFLAGS. Typically, _LDFLAGS should only
have $(GST_PLUGIN_LDFLAGS)
- when using gst-plugins-base libraries, use $(GST_PLUGINS_BASE_LIBS) then
add -lgst(library)-$(GST_API_VERSION). Example:
libgstsdlvideosink_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \
-lgstvideo-$(GST_API_VERSION) \
-lgstaudio-$(GST_API_VERSION) \
-lgstinterfaces-$(GST_API_VERSION) \
$(SDL_LIBS)
- don't forget to use noinst_HEADERS if you have private headers
plugin configure.ac snippet:
- ORDER THEM ALPHABETICALLY PLEASE
- wrap your check in a block like this:
translit(dnm, m, l) AM_CONDITIONAL(USE_DEP, true)
GST_CHECK_FEATURE(DEP, [(dependency description)], (plug-in-name), [
(here go the checks)
])
- plug-in name is the name of the *plug-in*, not the element; ie, the
first column when running gst-inspect
- For the checks, in the simplest case, use something like:
GST_PKG_CHECK_MODULES(FOO, foo-0.3 >= 0.3.2)
This will:
- do the check
- show a decent message if it can't find it, without failing
- set HAVE_FOO to yes or no
- set FOO_CFLAGS and FOO_LIBS
- if you want to make sure configure fails when this dependency is missing,
use:
GST_PKG_CHECK_MODULES(FOO, libfoo-0.3 >= 0.3.2, yes)
- if your library does not come with a .pc file, you have to roll your own
check
pkg.m4: (last checked: version 0.20)
- was changed at some point to hide the error message from you, and error
out by default if no ACTION-IF-NOT-FOUND is given.
- caller is responsible for doing AC_MSG_RESULT if ACTION-IF-NOT-FOUND
is given
- for automake-1.6, AC_SUBST((PKG)_CFLAGS) and AC_SUBST((PKG)_LIBS) is not
done automatically. Starting from 1.7, it is. We require 1.7 now.

View file

@ -1,8 +0,0 @@
Makefile
Makefile.in
*.o
*.lo
*.la
.deps
.libs
gstobject

20
gst/.gitignore vendored
View file

@ -1,20 +0,0 @@
Makefile
Makefile.in
*.o
*.lo
*.la
.deps
.libs
gstversion.h
gstmarshal.c
gstmarshal.h
gstenumtypes.h
gstenumtypes.c
gstconfig.h
*.bb
*.bbg
*.da
*.def
*.gcno
*.gcov
*.gcov.out

View file

@ -1,336 +0,0 @@
lib_LTLIBRARIES = libgstreamer-@GST_API_VERSION@.la
if GST_DISABLE_REGISTRY
GST_REGISTRY_SRC =
else
GST_REGISTRY_SRC = gstregistrybinary.c
endif
if GST_DISABLE_PARSE
SUBDIRS_PARSE =
GST_PARSE_LA =
else
SUBDIRS_PARSE = parse
GST_PARSE_LA = parse/libgstparse.la
endif
if GST_DISABLE_PLUGIN
GST_PLUGIN_SRC =
else
GST_PLUGIN_SRC = gstplugin.c
endif
if !GST_DISABLE_GST_DEBUG
SUBDIRS_PRINTF = printf
GST_PRINTF_LA = printf/libgstprintf.la
else
SUBDIRS_PRINTF =
GST_PRINTF_LA =
endif
SUBDIRS = $(SUBDIRS_PARSE) $(SUBDIRS_PRINTF)
DIST_SUBDIRS = parse printf
# make variables for all generated source and header files to make the
# distinction clear
built_headers_configure = gstversion.h gstconfig.h
built_header_make = gstenumtypes.h
built_source_make = gstenumtypes.c
EXTRA_libgstreamer_@GST_API_VERSION@_la_SOURCES = \
gstregistrybinary.c
# temporarily not used
# glib-compat.c
libgstreamer_@GST_API_VERSION@_la_SOURCES = \
gst.c \
gstobject.c \
gstallocator.c \
gstbin.c \
gstbuffer.c \
gstbufferlist.c \
gstbufferpool.c \
gstbus.c \
gstcaps.c \
gstcapsfeatures.c \
gstchildproxy.c \
gstclock.c \
gstcontext.c \
gstcontrolbinding.c \
gstcontrolsource.c \
gstdatetime.c \
gstdebugutils.c \
gstdevice.c \
gstdevicemonitor.c \
gstdeviceprovider.c \
gstdeviceproviderfactory.c \
gstdynamictypefactory.c \
gstelement.c \
gstelementfactory.c \
gsterror.c \
gstevent.c \
gstformat.c \
gstghostpad.c \
gstinfo.c \
gstiterator.c \
gstatomicqueue.c \
gstmessage.c \
gstmeta.c \
gstmemory.c \
gstminiobject.c \
gstpad.c \
gstpadtemplate.c \
gstparamspecs.c \
gstpipeline.c \
gstplugin.c \
gstpluginfeature.c \
gstpluginloader.c \
gstpoll.c \
gstpreset.c \
gstprotection.c \
gstquark.c \
gstquery.c \
gstregistry.c \
gstregistrychunks.c \
gstpromise.c \
gstsample.c \
gstsegment.c \
gststreamcollection.c \
gststreams.c \
gststructure.c \
gstsystemclock.c \
gsttaglist.c \
gsttagsetter.c \
gsttask.c \
gsttaskpool.c \
gsttoc.c \
gsttocsetter.c \
gsttracer.c \
gsttracerfactory.c \
gsttracerrecord.c \
gsttracerutils.c \
gsttypefind.c \
gsttypefindfactory.c \
gsturi.c \
gstutils.c \
gstvalue.c \
gstparse.c \
$(GST_REGISTRY_SRC)
# do not put files in the distribution that are generated
nodist_libgstreamer_@GST_API_VERSION@_la_SOURCES = $(built_source_make)
# BUILT_SOURCES are built on make all/check/install before all other targets
BUILT_SOURCES = \
$(built_headers_configure) \
$(built_header_make) \
$(built_source_make)
# CLEANFILES is for files generated by make
CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
# DISTCLEANFILES is for files generated by configure
DISTCLEANFILES = $(built_headers_configure)
libgstreamer_@GST_API_VERSION@_la_CFLAGS = \
-D_GNU_SOURCE \
-DBUILDING_GST \
-DG_LOG_DOMAIN=g_log_domain_gstreamer \
-DGST_API_VERSION=\""$(GST_API_VERSION)"\" \
-DGST_DISABLE_DEPRECATED \
$(VALGRIND_CFLAGS) \
$(UNWIND_CFLAGS) \
$(DW_CFLAGS) \
$(GST_ALL_CFLAGS)
libgstreamer_@GST_API_VERSION@_la_LIBADD = \
$(GST_PARSE_LA) \
$(GST_PRINTF_LA) \
$(GST_ALL_LIBS) \
$(WIN32_LIBS) \
$(SOCKET_LIBS) \
$(UNWIND_LIBS) \
$(DW_LIBS) \
$(LIBM)
libgstreamer_@GST_API_VERSION@_la_LDFLAGS = \
$(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
libgstreamer_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst
gst_headers = \
gst.h \
glib-compat.h \
gstobject.h \
gstallocator.h \
gstbin.h \
gstbuffer.h \
gstbufferlist.h \
gstbufferpool.h \
gstbus.h \
gstcaps.h \
gstcapsfeatures.h \
gstchildproxy.h \
gstclock.h \
gstcompat.h \
gstcontext.h \
gstcontrolbinding.h \
gstcontrolsource.h \
gstdatetime.h \
gstdebugutils.h \
gstelement.h \
gstelementmetadata.h \
gstdevice.h \
gstdeviceprovider.h \
gstdeviceproviderfactory.h \
gstdynamictypefactory.h \
gstelementfactory.h \
gsterror.h \
gstevent.h \
gstformat.h \
gstghostpad.h \
gstdevicemonitor.h \
gstinfo.h \
gstiterator.h \
gstatomicqueue.h \
gstmacros.h \
gstmessage.h \
gstmeta.h \
gstmemory.h \
gstminiobject.h \
gstpad.h \
gstpadtemplate.h \
gstparamspecs.h \
gstpipeline.h \
gstplugin.h \
gstpluginfeature.h \
gstpoll.h \
gstpreset.h \
gstprotection.h \
gstquery.h \
gstpromise.h \
gstsample.h \
gstsegment.h \
gststreamcollection.h \
gststreams.h \
gststructure.h \
gstsystemclock.h \
gsttaglist.h \
gsttagsetter.h \
gsttask.h \
gsttaskpool.h \
gsttoc.h \
gsttocsetter.h \
gsttracer.h \
gsttracerfactory.h \
gsttracerrecord.h \
gsttypefind.h \
gsttypefindfactory.h \
gsturi.h \
gstutils.h \
gstvalue.h \
gstregistry.h \
gstparse.h
libgstreamer_@GST_API_VERSION@include_HEADERS = $(gst_headers) math-compat.h
nodist_libgstreamer_@GST_API_VERSION@include_HEADERS = \
$(built_headers_configure) $(built_header_make)
noinst_HEADERS = \
gettext.h \
glib-compat-private.h \
gst-i18n-lib.h \
gst-i18n-app.h \
gstelementmetadata.h \
gstpluginloader.h \
gstquark.h \
gstregistrybinary.h \
gstregistrychunks.h \
gsttracerutils.h \
gst_private.h
gstenumtypes.h: $(gst_headers)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n#include <gst/gstconfig.h>\n\nG_BEGIN_DECLS\n" \
--fprod "\n/* enumerations from \"@filename@\" */\n" \
--vhead "GST_API GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
$^ > gstenumtypes.h
gstenumtypes.c: $(gst_headers)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--fhead "#include \"gst_private.h\"\n#include <gst/gst.h>\n#define C_ENUM(v) ((gint) v)\n#define C_FLAGS(v) ((guint) v)\n " \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static gsize id = 0;\n static const G@Type@Value values[] = {" \
--vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n\n if (g_once_init_enter (&id)) {\n GType tmp = g_@type@_register_static (\"@EnumName@\", values);\n g_once_init_leave (&id, tmp);\n }\n\n return (GType) id;\n}" \
$^ > gstenumtypes.c
%.c.gcov: .libs/libgstreamer_@GST_API_VERSION@_la-%.gcda %.c
$(GCOV) -b -f -o $^ > $@.out
gcov: $(libgstreamer_@GST_API_VERSION@_la_SOURCES:=.gcov)
if HAVE_INTROSPECTION
BUILT_GIRSOURCES = Gst-@GST_API_VERSION@.gir
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@include_HEADERS))
gir_headers+=$(patsubst %,$(builddir)/%, $(built_header_make))
gir_headers+=$(patsubst %,$(builddir)/%, gstversion.h)
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@_la_SOURCES))
gir_sources+=$(patsubst %,$(builddir)/%, $(built_source_make))
Gst-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_API_VERSION@.la
$(AM_V_GEN)GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes GI_SCANNER_DISABLE_CACHE=yes \
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
$(INTROSPECTION_SCANNER) -v --namespace Gst \
--nsversion=@GST_API_VERSION@ \
--verbose \
--warn-all \
-I$(top_srcdir) \
-I$(top_builddir) \
-DIN_GOBJECT_INTROSPECTION=1 \
--c-include='gst/gst.h' \
--library=libgstreamer-@GST_API_VERSION@.la \
--include=GLib-2.0 \
--include=GObject-2.0 \
--include=GModule-2.0 \
--libtool="${LIBTOOL}" \
--pkg glib-2.0 \
--pkg gobject-2.0 \
--pkg gmodule-no-export-2.0 \
--pkg-export gstreamer-@GST_API_VERSION@ \
--add-init-section="$(INTROSPECTION_INIT)" \
--output $@ \
$(gir_headers) \
$(gir_sources)
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif
# try to prevent packaging errors
check-libexecdir-consistency:
@if test "${GST_PLUGIN_SCANNER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-plugin-scanner"; then \
echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
echo "*** The same goes for prefix, libdir etc."; \
echo "*** ${GST_PLUGIN_SCANNER_INSTALLED} != ${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-plugin-scanner"; \
exit 1; \
fi
all-local: check-libexecdir-consistency

12
gst/parse/.gitignore vendored
View file

@ -1,12 +0,0 @@
grammar
grammar.output
grammar.tab.c
grammar.tab.h
lex.yy.c
parse.c
parse_lex.h
lex.priv_gst_parse_yy.c
*.bb
*.bbg
*.da
*.gcno

View file

@ -1,47 +0,0 @@
# libgstparse.la is an optionally built helper library linked into core
noinst_LTLIBRARIES = libgstparse.la
CLEANFILES = grammar.tab.h parse_lex.h grammar.output
EXTRA_DIST = \
get_flex_version.py \
grammar.y \
parse.l
# uncomment these lines to dist the generated sources
#BUILT_SOURCES = grammar.tab.h grammar.tab.c parse_lex.h lex.priv_gst_parse_yy.c
#libgstparse_la_SOURCES = lex.priv_gst_parse_yy.c grammar.tab.c
# uncomment these lines to _NOT_ dist the generated sources
nodist_libgstparse_la_SOURCES = lex.priv_gst_parse_yy.c grammar.tab.c grammar.tag.h parse_lex.h
CLEANFILES += grammar.tab.c lex.priv_gst_parse_yy.c
libgstparse_la_CFLAGS = $(GST_ALL_CFLAGS) -DBUILDING_GST -DYYMALLOC=g_malloc -DYYFREE=g_free
libgstparse_la_LIBADD = $(GST_ALL_LIBS)
noinst_HEADERS = types.h
grammar.tab.c grammar.tab.h: grammar.y
$(AM_V_GEN)$(BISON_PATH) -d -v -ppriv_gst_parse_yy $(srcdir)/grammar.y -o grammar.tab.c && \
mv grammar.tab.c grammar.tab_tmp.c && \
echo '#ifdef HAVE_CONFIG_H' > grammar.tab_tmp2.c && \
echo '#include <config.h>' >> grammar.tab_tmp2.c && \
echo '#endif' >> grammar.tab_tmp2.c && \
cat grammar.tab_tmp.c >> grammar.tab_tmp2.c && \
rm grammar.tab_tmp.c && \
mv grammar.tab_tmp2.c grammar.tab.c
lex.priv_gst_parse_yy.c parse_lex.h: parse.l grammar.tab.h
$(AM_V_GEN)$(FLEX_PATH) --header-file=parse_lex.h -Ppriv_gst_parse_yy $^ && \
mv lex.priv_gst_parse_yy.c lex.priv_gst_parse_yy_tmp.c && \
echo '#ifdef HAVE_CONFIG_H' > lex.priv_gst_parse_yy_tmp2.c && \
echo '#include <config.h>' >> lex.priv_gst_parse_yy_tmp2.c && \
echo '#endif' >> lex.priv_gst_parse_yy_tmp2.c && \
{ grep -q priv_gst_parse_yyget_column parse_lex.h || \
{ echo 'int priv_gst_parse_yyget_column (void * yyscanner);' >> lex.priv_gst_parse_yy_tmp2.c && \
echo 'void priv_gst_parse_yyset_column (int column_no , void * yyscanner);' >> lex.priv_gst_parse_yy_tmp2.c; }; } && \
cat lex.priv_gst_parse_yy_tmp.c >> lex.priv_gst_parse_yy_tmp2.c && \
rm lex.priv_gst_parse_yy_tmp.c && \
mv lex.priv_gst_parse_yy_tmp2.c lex.priv_gst_parse_yy.c
.NOTPARALLEL:

View file

@ -1,32 +0,0 @@
AM_CPPFLAGS = $(GLIB_CFLAGS) -DSTATIC=G_GNUC_INTERNAL $(WARNING_CFLAGS) $(PRINTF_CFLAGS)
# don't have a need for that and it's not portable so just ignore for now
AM_CPPFLAGS += -UHAVE_LONG_DOUBLE
# just use internal emulation for printing long longs for now
AM_CPPFLAGS += -UHAVE_LONG_LONG_FORMAT
# don't need any of this widechar stuff, so just disable it for now
AM_CPPFLAGS += -UHAVE_WCHAR_T -UHAVE_WCSLEN -UHAVE_WINT_T
# in case anyone wants to add anything else or undo some of the undefs
AM_CPPFLAGS += $(PRINTF_EXTRA_CFLAGS)
noinst_LTLIBRARIES = libgstprintf.la
libgstprintf_la_CFLAGS = $(EXTRA_CFLAGS) $(VISIBILITY_CFLAGS)
libgstprintf_la_SOURCES = \
asnprintf.c \
printf-args.c \
printf-args.h \
printf-parse.c \
printf-parse.h \
vasnprintf.c \
vasnprintf.h \
printf.c \
printf.h \
printf-extension.c \
printf-extension.h \
gst-printf.h
EXTRA_DIST = README

View file

@ -1 +0,0 @@
SUBDIRS = gst

View file

@ -1,16 +0,0 @@
if HAVE_CHECK
SUBDIRS_CHECK = check
else
SUBDIRS_CHECK =
endif
if GST_DISABLE_REGISTRY
SUBDIRS_HELPERS =
else
SUBDIRS_HELPERS = helpers
endif
SUBDIRS_ALWAYS = base controller net
SUBDIRS = $(SUBDIRS_ALWAYS) $(SUBDIRS_CHECK) $(SUBDIRS_HELPERS)
DIST_SUBDIRS = $(SUBDIRS_ALWAYS) check helpers

View file

@ -1,8 +0,0 @@
*.gcno
*.c.gcov
*.c.gcov
*.c.gcov.out
*.c.gcov
*.o
*.lo
*.la

View file

@ -1,111 +0,0 @@
lib_LTLIBRARIES = libgstbase-@GST_API_VERSION@.la
libgstbase_@GST_API_VERSION@_la_DEPENDENCIES = \
$(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la
libgstbase_@GST_API_VERSION@_la_SOURCES = \
gstadapter.c \
gstaggregator.c \
gstbaseparse.c \
gstbasesink.c \
gstbasesrc.c \
gstbasetransform.c \
gstbitreader.c \
gstbitwriter.c \
gstbytereader.c \
gstbytewriter.c \
gstcollectpads.c \
gstdataqueue.c \
gstflowcombiner.c \
gstpushsrc.c \
gstqueuearray.c \
gsttypefindhelper.c
libgstbase_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) -DBUILDING_GST_BASE
libgstbase_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS)
libgstbase_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
libgstbase_@GST_API_VERSION@includedir = \
$(includedir)/gstreamer-@GST_API_VERSION@/gst/base
libgstbase_@GST_API_VERSION@include_HEADERS = \
base.h \
base-prelude.h \
gstadapter.h \
gstaggregator.h \
gstbaseparse.h \
gstbasesink.h \
gstbasesrc.h \
gstbasetransform.h \
gstbitreader.h \
gstbitwriter.h \
gstbytereader.h \
gstbytewriter.h \
gstcollectpads.h \
gstdataqueue.h \
gstflowcombiner.h \
gstpushsrc.h \
gstqueuearray.h \
gsttypefindhelper.h
noinst_HEADERS = \
gstbytereader-docs.h \
gstbytewriter-docs.h \
gstbitreader-docs.h \
gstbitwriter-docs.h \
gstindex.h
EXTRA_DIST = gstindex.c gstmemindex.c
CLEANFILES = *.gcno *.gcda *.gcov
%.c.gcov: .libs/libgstbase_@GST_API_VERSION@_la-%.gcda %.c
$(GCOV) -b -f -o $^ > $@.out
gcov: $(libgstbase_@GST_API_VERSION@_la_SOURCES:=.gcov)
if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstBase-@GST_API_VERSION@.gir
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstbase_@GST_API_VERSION@include_HEADERS))
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstbase_@GST_API_VERSION@_la_SOURCES))
GstBase-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstbase-@GST_API_VERSION@.la
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
$(INTROSPECTION_SCANNER) -v --namespace GstBase \
--nsversion=@GST_API_VERSION@ \
--warn-all \
--identifier-prefix=Gst \
--symbol-prefix=gst \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
-I$(top_builddir)/libs \
--c-include "gst/base/base.h" \
--add-include-path=$(top_builddir)/gst \
--library-path=$(top_builddir)/gst \
--library=libgstbase-@GST_API_VERSION@.la \
--include=Gst-@GST_API_VERSION@ \
--libtool="${LIBTOOL}" \
--pkg gstreamer-@GST_API_VERSION@ \
--pkg-export gstreamer-base-@GST_API_VERSION@ \
--add-init-section="$(INTROSPECTION_INIT)" \
--output $@ \
$(gir_headers) \
$(gir_sources)
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif

View file

@ -1,8 +0,0 @@
*.c.gcov.out
*.c.gcov.out
*.o
*.lo
*.la
internal-check.h
exports.sym
libcheck/check.h

View file

@ -1,272 +0,0 @@
lib_LTLIBRARIES = libgstcheck-@GST_API_VERSION@.la
SYMBOLS_FILE = exports.sym
libgstcheck_@GST_API_VERSION@_la_DEPENDENCIES = \
$(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la \
$(SYMBOLS_FILE)
libgstcheck_@GST_API_VERSION@_la_SOURCES = \
gstbufferstraw.c \
gstcheck.c \
gstconsistencychecker.c \
gstharness.c \
gsttestclock.c
libgstcheck_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) \
-UG_DISABLE_ASSERT \
-DBUILDING_GST_CHECK \
-I$(top_builddir)/libs \
-I$(top_builddir)/libs/gst/check \
-I$(top_builddir)/libs/gst/check/libcheck
libgstcheck_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) \
$(top_builddir)/libs/gst/check/libcheck/libcheckinternal.la \
$(LIBM)
libgstcheck_@GST_API_VERSION@_la_LDFLAGS = \
-export-symbols $(SYMBOLS_FILE) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
libgstcheck_@GST_API_VERSION@includedir = \
$(includedir)/gstreamer-@GST_API_VERSION@/gst/check
libgstcheck_@GST_API_VERSION@include_HEADERS = \
check.h \
check-prelude.h \
gstbufferstraw.h \
gstcheck.h \
gstconsistencychecker.h \
gstharness.h \
gsttestclock.h
nodist_libgstcheck_@GST_API_VERSION@include_HEADERS = \
internal-check.h
CLEANFILES = *.gcno *.gcda *.gcov $(SYMBOLS_FILE)
%.c.gcov: .libs/libgstcheck_@GST_API_VERSION@_la-%.gcda %.c
$(GCOV) -b -f -o $^ > $@.out
gcov: $(libgstcheck_@GST_API_VERSION@_la_SOURCES:=.gcov)
SUBDIRS = libcheck
LIBGSTCHECK_EXPORTED_VARS = \
_gst_check_threads_running \
_gst_check_raised_critical \
_gst_check_raised_warning \
_gst_check_expecting_log \
_gst_check_list_tests \
buffers \
check_cond \
check_debug \
check_mutex \
mutex \
start_cond \
sync_cond \
thread_list
LIBGSTCHECK_EXPORTED_FUNCS = \
_gst_check_run_test_func \
gst_buffer_straw_get_buffer \
gst_buffer_straw_start_pipeline \
gst_buffer_straw_stop_pipeline \
gst_check_abi_list \
gst_check_caps_equal \
gst_check_buffer_data \
gst_check_chain_func \
gst_check_drop_buffers \
gst_check_element_push_buffer \
gst_check_element_push_buffer_list \
gst_check_init \
gst_check_add_log_filter \
gst_check_remove_log_filter \
gst_check_clear_log_filter \
gst_check_message_error \
gst_check_run_suite \
gst_check_setup_element \
gst_check_setup_events \
gst_check_setup_events_with_stream_id \
gst_check_setup_sink_pad \
gst_check_setup_sink_pad_from_template \
gst_check_setup_sink_pad_by_name \
gst_check_setup_sink_pad_by_name_from_template \
gst_check_setup_src_pad \
gst_check_setup_src_pad_from_template \
gst_check_setup_src_pad_by_name \
gst_check_setup_src_pad_by_name_from_template \
gst_check_teardown_element \
gst_check_teardown_pad_by_name \
gst_check_teardown_sink_pad \
gst_check_teardown_src_pad \
gst_check_objects_destroyed_on_unref \
gst_check_object_destroyed_on_unref \
gst_consistency_checker_add_pad \
gst_consistency_checker_new \
gst_consistency_checker_reset \
gst_consistency_checker_free \
gst_harness_add_element_full \
gst_harness_add_element_src_pad \
gst_harness_add_element_sink_pad \
gst_harness_add_parse \
gst_harness_add_probe \
gst_harness_add_propose_allocation_meta \
gst_harness_add_sink \
gst_harness_add_sink_harness \
gst_harness_add_sink_parse \
gst_harness_add_src \
gst_harness_add_src_harness \
gst_harness_add_src_parse \
gst_harness_buffers_in_queue \
gst_harness_buffers_received \
gst_harness_crank_multiple_clock_waits \
gst_harness_crank_single_clock_wait \
gst_harness_create_buffer \
gst_harness_dump_to_file \
gst_harness_events_in_queue \
gst_harness_events_received \
gst_harness_find_element \
gst_harness_get \
gst_harness_get_allocator \
gst_harness_get_last_pushed_timestamp \
gst_harness_get_testclock \
gst_harness_new \
gst_harness_new_empty \
gst_harness_new_full \
gst_harness_new_parse \
gst_harness_new_with_element \
gst_harness_new_with_padnames \
gst_harness_new_with_templates \
gst_harness_play \
gst_harness_pull \
gst_harness_pull_event \
gst_harness_pull_upstream_event \
gst_harness_push \
gst_harness_push_and_pull \
gst_harness_push_event \
gst_harness_push_from_src \
gst_harness_push_to_sink \
gst_harness_query_latency \
gst_harness_push_upstream_event \
gst_harness_set \
gst_harness_set_caps \
gst_harness_set_caps_str \
gst_harness_set_drop_buffers \
gst_harness_set_blocking_push_mode \
gst_harness_set_forwarding \
gst_harness_set_propose_allocator \
gst_harness_set_sink_caps \
gst_harness_set_src_caps \
gst_harness_set_src_caps_str \
gst_harness_set_sink_caps_str \
gst_harness_set_time \
gst_harness_set_upstream_latency \
gst_harness_sink_push_many \
gst_harness_src_crank_and_push_many \
gst_harness_src_push_event \
gst_harness_stress_custom_start \
gst_harness_stress_property_start_full \
gst_harness_stress_push_buffer_start_full \
gst_harness_stress_push_buffer_with_cb_start_full \
gst_harness_stress_push_event_start_full \
gst_harness_stress_push_event_with_cb_start_full \
gst_harness_stress_push_upstream_event_start_full \
gst_harness_stress_push_upstream_event_with_cb_start_full \
gst_harness_stress_requestpad_start_full \
gst_harness_stress_statechange_start_full \
gst_harness_stress_thread_stop \
gst_harness_take_all_data \
gst_harness_take_all_data_as_buffer \
gst_harness_take_all_data_as_bytes \
gst_harness_teardown \
gst_harness_try_pull \
gst_harness_try_pull_event \
gst_harness_try_pull_upstream_event \
gst_harness_upstream_events_in_queue \
gst_harness_upstream_events_received \
gst_harness_use_systemclock \
gst_harness_use_testclock \
gst_harness_wait_for_clock_id_waits \
gst_test_clock_advance_time \
gst_test_clock_crank \
gst_test_clock_get_next_entry_time \
gst_test_clock_get_type \
gst_test_clock_has_id \
gst_test_clock_id_list_get_latest_time \
gst_test_clock_new \
gst_test_clock_new_with_start_time \
gst_test_clock_peek_id_count \
gst_test_clock_peek_next_pending_id \
gst_test_clock_process_id_list \
gst_test_clock_process_next_clock_id \
gst_test_clock_set_time \
gst_test_clock_wait_for_multiple_pending_ids \
gst_test_clock_wait_for_next_pending_id \
gst_test_clock_wait_for_pending_id_count
# For backwards compatibility with GStreamer < 1.5
LIBGSTCHECK_EXPORTED_COMPAT_FUNCS = \
_fail_unless
LIBGSTCHECK_EXPORTED_SYMBOLS = \
$(LIBGSTCHECK_EXPORTED_VARS) \
$(LIBGSTCHECK_EXPORTED_FUNCS) \
$(LIBGSTCHECK_EXPORTED_COMPAT_FUNCS)
# Please do not even think about changing the alphabet below into A-Za-z.
# It is there for purpose. (Bug #602093)
CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in`
print-check-symbols:
@for s in $(CHECK_SYMS); do \
echo $$s; \
done;
$(SYMBOLS_FILE): $(libgstcheck_@GST_API_VERSION@include_HEADERS) internal-check.h
$(AM_V_GEN)rm -f $(SYMBOLS_FILE) 2>/dev/null; \
for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $(CHECK_SYMS); do \
echo $$s >> $(SYMBOLS_FILE); \
done
if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstCheck-@GST_API_VERSION@.gir
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_API_VERSION@include_HEADERS))
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_API_VERSION@_la_SOURCES))
GstCheck-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_API_VERSION@.la
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
$(INTROSPECTION_SCANNER) -v --namespace GstCheck \
--nsversion=@GST_API_VERSION@ \
--identifier-prefix=Gst \
--symbol-prefix=gst \
--warn-all \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
-I$(top_builddir)/libs \
--c-include "gst/check/check.h" \
--add-include-path=$(top_builddir)/gst \
--library-path=$(top_builddir)/gst \
--library=libgstcheck-@GST_API_VERSION@.la \
--include=Gst-@GST_API_VERSION@ \
--libtool="${LIBTOOL}" \
--pkg gstreamer-@GST_API_VERSION@ \
--pkg-export gstreamer-check-@GST_API_VERSION@ \
--add-init-section="$(INTROSPECTION_INIT)" \
--output $@ \
$(gir_headers) \
$(gir_sources)
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif

View file

@ -1,80 +0,0 @@
noinst_LTLIBRARIES = libcheckinternal.la
EXTRA_DIST = check.h.in
CFILES =\
check.c \
check_error.c \
check_list.c \
check_log.c \
check_msg.c \
check_pack.c \
check_print.c \
check_run.c \
check_str.c \
libcompat/libcompat.c
if !HAVE_ALARM
CFILES += libcompat/alarm.c
endif
if !HAVE_CLOCK_GETTIME
CFILES += libcompat/clock_gettime.c
endif
if !HAVE_GETTIMEOFDAY
CFILES += libcompat/gettimeofday.c
endif
if !HAVE_LOCALTIME_R
CFILES += libcompat/localtime_r.c
endif
if !HAVE_STRSIGNAL
CFILES += libcompat/strsignal.c
endif
if !HAVE_STRDUP
CFILES += libcompat/strdup.c
endif
if !HAVE_GETLINE
CFILES += libcompat/getline.c
endif
if !HAVE_TIMER_CREATE_SETTIME_DELETE
CFILES +=\
libcompat/timer_create.c \
libcompat/timer_settime.c \
libcompat/timer_delete.c
endif
HFILES =\
check_error.h \
check_impl.h \
check_list.h \
check_log.h \
check_msg.h \
check_pack.h \
check_print.h \
check_str.h \
libcompat/libcompat.h
noinst_HEADERS = $(HFILES)
libcheckinternal_la_SOURCES = $(CFILES) $(HFILES)
libcheckinternal_la_CFLAGS = -I$(top_builddir)/libs/gst/check
libcheckinternal_la_LIBADD =
# define HAVE_PTHREAD here as well so we keep changes to the code to a minimum
if HAVE_PTHREAD
libcheckinternal_la_CFLAGS += $(PTHREAD_CFLAGS) -D_GNU_SOURCE -DHAVE_PTHREAD
libcheckinternal_la_LIBADD += $(PTHREAD_LIBS)
else
libcheckinternal_la_CFLAGS += -D_GNU_SOURCE
endif
# Don't want libcompat to think we don't have these and substitute replacements
# See libcompat/libcompat.h
libcheckinternal_la_CFLAGS += -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DHAVE_MALLOC -DHAVE_REALLOC

View file

@ -1,8 +0,0 @@
*.bb
*.bbg
*.da
*.def
*.gcno
*.o
*.lo
*.la

View file

@ -1,103 +0,0 @@
lib_LTLIBRARIES = libgstcontroller-@GST_API_VERSION@.la
glib_enum_headers= \
gstinterpolationcontrolsource.h \
gstlfocontrolsource.h
glib_enum_define = GST_CONTROLLER
glib_gen_prefix = gst
glib_gen_basename = controller
glib_gen_decl_banner=GST_CONTROLLER_API
glib_gen_decl_include=\#include <gst/controller/controller-prelude.h>
built_sources = controller-enumtypes.c
built_headers = controller-enumtypes.h
BUILT_SOURCES = $(built_sources) $(built_headers)
libgstcontroller_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/controller
libgstcontroller_@GST_API_VERSION@_include_HEADERS = \
controller.h \
controller-prelude.h \
gstargbcontrolbinding.h \
gstdirectcontrolbinding.h \
gsttimedvaluecontrolsource.h \
gstinterpolationcontrolsource.h \
gstproxycontrolbinding.h \
gsttriggercontrolsource.h \
gstlfocontrolsource.h
nodist_libgstcontroller_@GST_API_VERSION@_include_HEADERS = \
controller-enumtypes.h
libgstcontroller_@GST_API_VERSION@_la_SOURCES = \
gstargbcontrolbinding.c \
gstdirectcontrolbinding.c \
gsttimedvaluecontrolsource.c \
gstinterpolationcontrolsource.c \
gstproxycontrolbinding.c \
gsttriggercontrolsource.c \
gstlfocontrolsource.c
nodist_libgstcontroller_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
libgstcontroller_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) -DBUILDING_GST_CONTROLLER
libgstcontroller_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) $(LIBM)
libgstcontroller_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
CLEANFILES = *.gcno *.gcda *.gcov $(BUILT_SOURCES)
%.c.gcov: .libs/libgstcontroller_@GST_API_VERSION@_la-%.gcda %.c
$(GCOV) -b -f -o $^ > $@.out
gcov: $(libgstcontroller_@GST_API_VERSION@_la_SOURCES:=.gcov)
include $(top_srcdir)/common/gst-glib-gen.mak
if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstController-@GST_API_VERSION@.gir
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcontroller_@GST_API_VERSION@_include_HEADERS))
gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstcontroller_@GST_API_VERSION@_include_HEADERS))
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcontroller_@GST_API_VERSION@_la_SOURCES))
gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstcontroller_@GST_API_VERSION@_la_SOURCES))
GstController-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcontroller-@GST_API_VERSION@.la
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
$(INTROSPECTION_SCANNER) -v --namespace GstController \
--nsversion=@GST_API_VERSION@ \
--warn-all \
--identifier-prefix=Gst \
--symbol-prefix=gst \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
-I$(top_builddir)/libs \
--c-include "gst/controller/controller.h" \
--add-include-path=$(top_builddir)/gst \
--library-path=$(top_builddir)/gst \
--library=libgstcontroller-@GST_API_VERSION@.la \
--include=Gst-@GST_API_VERSION@ \
--libtool="${LIBTOOL}" \
--pkg gstreamer-@GST_API_VERSION@ \
--pkg-export gstreamer-controller-@GST_API_VERSION@ \
--add-init-section="$(INTROSPECTION_INIT)" \
--output $@ \
$(gir_headers) \
$(gir_sources)
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif

View file

@ -1,5 +0,0 @@
gst-plugin-scanner
gst-completion-helper
gst-ptp-helper
libgstreamer-gdb.py
*.o

View file

@ -1,46 +0,0 @@
helpers_PROGRAMS = gst-plugin-scanner
helpersdir=$(libexecdir)/gstreamer-$(GST_API_VERSION)
gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
if ENABLE_BASH_COMPLETION
helpers_PROGRAMS += gst-completion-helper
gst_completion_helper_SOURCES = gst-completion-helper.c
gst_completion_helper_CFLAGS = $(GST_OBJ_CFLAGS)
gst_completion_helper_LDADD = $(GST_OBJ_LIBS)
endif
if HAVE_PTP
helpers_PROGRAMS += gst-ptp-helper
gst_ptp_helper_SOURCES = gst-ptp-helper.c
gst_ptp_helper_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)
gst_ptp_helper_LDADD = $(GST_OBJ_LIBS) $(GIO_LIBS) $(CAP_LIBS)
endif
install-data-hook:
if HAVE_PTP
if HAVE_PTP_HELPER_SETUID
- chown root $(DESTDIR)$(helpersdir)/gst-ptp-helper
- chmod u+s $(DESTDIR)$(helpersdir)/gst-ptp-helper
endif
if HAVE_PTP_HELPER_CAPABILITIES
- $(SETCAP) cap_net_bind_service,cap_net_admin+ep $(DESTDIR)$(helpersdir)/gst-ptp-helper
endif
endif
EXTRA_DIST = ptp_helper_post_install.sh
DISTCLEANFILES = libgstreamer-gdb.py
# install gdb scripts
gdbdir = $(datadir)/gstreamer-@GST_API_VERSION@/gdb
dist_gdb_DATA = gst_gdb.py glib_gobject_helper.py
install-data-hook:
$(INSTALL) -d $(DESTDIR)$(datadir)/gdb/auto-load$(libdir)
$(INSTALL) $(builddir)/libgstreamer-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(libdir)/libgstreamer-@GST_API_VERSION@.so.0.$(GST_CURRENT).$(GST_REVISION)-gdb.py
uninstall-hook:
rm -f "$(DESTDIR)$(datadir)/gdb/auto-load$(libdir)/libgstreamer-@GST_API_VERSION@.so.0.$(GST_CURRENT).$(GST_REVISION)-gdb.py"

View file

@ -1,3 +0,0 @@
*.o
*.lo
*.la

View file

@ -1,101 +0,0 @@
lib_LTLIBRARIES = libgstnet-@GST_API_VERSION@.la
libgstnet_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/net
libgstnet_@GST_API_VERSION@_include_HEADERS = \
net.h \
net-prelude.h \
gstnet.h \
gstnetaddressmeta.h \
gstnetclientclock.h \
gstnetcontrolmessagemeta.h \
gstnettimepacket.h \
gstnettimeprovider.h \
gstnetutils.h \
gstptpclock.h
libgstnet_@GST_API_VERSION@_la_SOURCES = \
gstnetaddressmeta.c \
gstnetclientclock.c \
gstnetcontrolmessagemeta.c \
gstnettimepacket.c \
gstnettimeprovider.c \
gstptpclock.c \
gstntppacket.c \
gstnetutils.c
noinst_HEADERS = gstptp_private.h gstntppacket.h
libgstnet_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS) -DBUILDING_GST_NET
libgstnet_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) $(GIO_LIBS) \
$(top_builddir)/libs/gst/base/libgstbase-@GST_API_VERSION@.la
libgstnet_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
# try to prevent packaging errors
check-libexecdir-consistency:
@if test "${GST_PTP_HELPER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-ptp-helper"; then \
echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
echo "*** The same goes for prefix, libdir etc."; \
echo "*** ${GST_PTP_HELPER_INSTALLED} != ${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-ptp-helper"; \
exit 1; \
fi
all-local: check-libexecdir-consistency
CLEANFILES = *.gcno *.gcda *.gcov
%.c.gcov: .libs/libgstnet_@GST_API_VERSION@_la-%.gcda %.c
$(GCOV) -b -f -o $^ > $@.out
gcov: $(libgstnet_@GST_API_VERSION@_la_SOURCES:=.gcov)
if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstNet-@GST_API_VERSION@.gir
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstnet_@GST_API_VERSION@_include_HEADERS))
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstnet_@GST_API_VERSION@_la_SOURCES))
gir_cincludes=--c-include="gst/net/net.h"
GstNet-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstnet-@GST_API_VERSION@.la
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
$(INTROSPECTION_SCANNER) -v --namespace GstNet \
--identifier-prefix=Gst \
--symbol-prefix=gst \
--warn-all \
--nsversion=@GST_API_VERSION@ \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
-I$(top_builddir)/libs \
$(gir_cincludes) \
--add-include-path=$(top_builddir)/gst \
--library-path=$(top_builddir)/gst \
--library=libgstnet-@GST_API_VERSION@.la \
--include=Gst-@GST_API_VERSION@ \
--include=Gio-2.0 \
--libtool="${LIBTOOL}" \
--pkg gstreamer-@GST_API_VERSION@ \
--pkg gio-2.0 \
--pkg-export="gstreamer-net-@GST_API_VERSION@" \
--add-init-section="$(INTROSPECTION_INIT)" \
--output $@ \
$(gir_headers) \
$(gir_sources)
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif

36
m4/.gitignore vendored
View file

@ -1,36 +0,0 @@
codeset.m4
gettext.m4
glibc*.m4
iconv.m4
intdiv0.m4
intl.m4
intldir.m4
intlmacosx.m4
intmax.m4
inttypes-pri.m4
inttypes.m4
inttypes_h.m4
isc-posix.m4
lcmessage.m4
lib-ld.m4
lib-link.m4
lib-prefix.m4
libtool.m4
lock.m4
longlong.m4
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
nls.m4
po.m4
printf-posix.m4
progtest.m4
size_max.m4
stdint_h.m4
uintmax_t.m4
ulonglong.m4
visibility.m4
wchar_t.m4
wint_t.m4
xsize.m4

View file

@ -1 +0,0 @@
EXTRA_DIST = $(wildcard *.m4)

View file

@ -1,127 +0,0 @@
dnl Check for things that check needs/wants and that we don't check for already
dnl AM_GST_CHECK_CHECKS()
AC_DEFUN([AG_GST_CHECK_CHECKS],
[
AC_MSG_NOTICE([Running check unit test framework checks now...])
CHECK_MAJOR_VERSION=0
CHECK_MINOR_VERSION=10
CHECK_MICRO_VERSION=0
CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
AC_SUBST(CHECK_MAJOR_VERSION)
AC_SUBST(CHECK_MINOR_VERSION)
AC_SUBST(CHECK_MICRO_VERSION)
AC_SUBST(CHECK_VERSION)
dnl Checks for header files and declarations
AC_CHECK_HEADERS([unistd.h sys/wait.h sys/time.h], [], [], [AC_INCLUDES_DEFAULT])
dnl Check for localtime_r()
AC_CHECK_FUNCS([localtime_r])
AM_CONDITIONAL(HAVE_LOCALTIME_R, test "x$ac_cv_func_localtime_r" = "xyes")
dnl Check for gettimeofday()
AC_CHECK_FUNCS([gettimeofday])
AM_CONDITIONAL(HAVE_GETTIMEOFDAY, test "x$ac_cv_func_gettimeofday" = "xyes")
dnl Check for getpid() and _getpid()
AC_CHECK_FUNCS([getpid _getpid])
dnl Check for strdup() and _strdup()
AC_CHECK_DECLS([strdup])
AC_CHECK_FUNCS([_strdup])
AM_CONDITIONAL(HAVE_STRDUP, test "x$ac_cv_have_decl_strdup" = "xyes" -o "x$ac_cv_func__strdup" = "xyes")
dnl Check for getline()
AC_CHECK_FUNCS([getline])
AM_CONDITIONAL(HAVE_GETLINE, test "x$ac_cv_func_getline" = "xyes")
dnl Check for mkstemp
AC_CHECK_FUNCS([mkstemp])
dnl Check for fork
AC_CHECK_FUNCS([fork], HAVE_FORK=1, HAVE_FORK=0)
AC_SUBST(HAVE_FORK)
dnl Check for alarm, localtime_r and strsignal
dnl First check for time.h as it might be used by localtime_r
AC_CHECK_HEADERS([time.h])
AC_CHECK_DECLS([alarm, localtime_r, strsignal], [], [], [
AC_INCLUDES_DEFAULT
#if HAVE_TIME_H
#include <time.h>
#endif /* HAVE_TIME_H */
])
AC_CHECK_FUNCS([alarm setitimer strsignal])
AM_CONDITIONAL(HAVE_ALARM, test "x$ac_cv_func_alarm" = "xyes")
AM_CONDITIONAL(HAVE_LOCALTIME_R, test "x$ac_cv_func_localtime_r" = "xyes")
AM_CONDITIONAL(HAVE_STRSIGNAL, test "x$ac_cv_func_strsignal" = "xyes")
dnl Check if struct timespec/itimerspec are defined in time.h. If not, we need
dnl to define it in libs/gst/check/libcheck/libcompat.h. Note the optional
dnl inclusion of pthread.h. On MinGW(-w64), the pthread.h file contains the
dnl timespec/itimerspec definitions.
AC_CHECK_MEMBERS([struct timespec.tv_sec, struct timespec.tv_nsec], [],
[AC_DEFINE_UNQUOTED(STRUCT_TIMESPEC_DEFINITION_MISSING, 1,
[Need to define the timespec structure])], [
#include <time.h>
#if HAVE_PTHREAD
#include <pthread.h>
#endif /* HAVE_PTHREAD */
])
AC_CHECK_MEMBERS([struct itimerspec.it_interval, struct itimerspec.it_value],
[], [AC_DEFINE_UNQUOTED(STRUCT_ITIMERSPEC_DEFINITION_MISSING, 1,
[Need to define the itimerspec structure])], [
#include <time.h>
#if HAVE_PTHREAD
#include <pthread.h>
#endif /* HAVE_PTHREAD */
])
dnl Check if types timer_t/clockid_t are defined. If not, we need to define it
dnl in libs/gst/check/libcheck/libcompat/libcompat.h. Note the optional
dnl inclusion of pthread.h. On MinGW(-w64), the pthread.h file contains the
dnl timer_t/clockid_t definitions.
AC_CHECK_TYPE(timer_t, [], [
AC_DEFINE([timer_t], [int], [timer_t])
], [
AC_INCLUDES_DEFAULT
#if HAVE_PTHREAD
#include <pthread.h>
#endif /* HAVE_PTHREAD */
])
AC_CHECK_TYPE(clockid_t, [], [
AC_DEFINE([clockid_t], [int], [clockid_t])
], [
AC_INCLUDES_DEFAULT
#if HAVE_PTHREAD
#include <pthread.h>
#endif /* HAVE_PTHREAD */
])
dnl Check for POSIX timer functions in librt
AC_CHECK_LIB([rt], [timer_create, timer_settime, timer_delete])
AM_CONDITIONAL(HAVE_TIMER_CREATE_SETTIME_DELETE, test "x$ac_cv_lib_rt_timer_create__timer_settime__timer_delete" = "xyes")
dnl Allow for checking HAVE_CLOCK_GETTIME in automake files
AM_CONDITIONAL(HAVE_CLOCK_GETTIME, test "x$CLOCK_GETTIME_FOUND" = "xyes")
dnl Create _stdint.h in the top-level directory
AX_CREATE_STDINT_H
dnl Disable subunit support for the time being
enable_subunit=false
if test xfalse = x"$enable_subunit"; then
ENABLE_SUBUNIT="0"
else
ENABLE_SUBUNIT="1"
fi
AC_SUBST(ENABLE_SUBUNIT)
AC_DEFINE_UNQUOTED(ENABLE_SUBUNIT, $ENABLE_SUBUNIT, [Subunit protocol result output])
AM_CONDITIONAL(SUBUNIT, test x"$enable_subunit" != "xfalse")
])

View file

@ -1 +0,0 @@
*.pc

View file

@ -1,59 +0,0 @@
### all of the standard pc files we need to generate
if HAVE_CHECK
CHECK_PC_I = gstreamer-check-@GST_API_VERSION@.pc
CHECK_PC_U = gstreamer-check-@GST_API_VERSION@-uninstalled.pc
else
CHECK_PC_I =
CHECK_PC_U =
endif
pcfiles = \
gstreamer-@GST_API_VERSION@.pc \
gstreamer-base-@GST_API_VERSION@.pc \
$(CHECK_PC_I) \
gstreamer-controller-@GST_API_VERSION@.pc \
gstreamer-net-@GST_API_VERSION@.pc
pcfiles_uninstalled = \
gstreamer-@GST_API_VERSION@-uninstalled.pc \
gstreamer-base-@GST_API_VERSION@-uninstalled.pc \
$(CHECK_PC_U) \
gstreamer-controller-@GST_API_VERSION@-uninstalled.pc \
gstreamer-net-@GST_API_VERSION@-uninstalled.pc
all-local: $(pcfiles) $(pcfiles_uninstalled)
cp_verbose = $(cp_verbose_$(V))
cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
cp_verbose_0 = @echo " CP $@";
### how to generate pc files
%-@GST_API_VERSION@.pc: %.pc
$(cp_verbose_0)cp $< $@
%-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
### the uninstalled libdir is depend of the build system used so set it here
### rather than hardcoding it in the file directly.
$(AM_V_GEN) sed \
-e "s|[@]gstlibdir[@]|$(abs_top_builddir)/gst/.libs|" \
-e "s|[@]checklibdir[@]|$(abs_top_builddir)/libs/gst/check/.libs|" \
-e "s|[@]baselibdir[@]|$(abs_top_builddir)/libs/gst/base/.libs|" \
-e "s|[@]netlibdir[@]|$(abs_top_builddir)/libs/gst/net/.libs|" \
-e "s|[@]controllerlibdir[@]|$(abs_top_builddir)/libs/gst/controller/.libs|" \
$< > $@.tmp && mv $@.tmp $@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(pcfiles)
EXTRA_DIST = \
gstreamer.pc.in \
gstreamer-uninstalled.pc.in \
gstreamer-base.pc.in \
gstreamer-base-uninstalled.pc.in \
gstreamer-check.pc.in \
gstreamer-check-uninstalled.pc.in \
gstreamer-controller.pc.in \
gstreamer-controller-uninstalled.pc.in \
gstreamer-net.pc.in \
gstreamer-net-uninstalled.pc.in
CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)

View file

@ -1,7 +0,0 @@
SUBDIRS = elements
if !GST_DISABLE_GST_TRACER_HOOKS
SUBDIRS += tracers
endif
DIST_SUBDIRS = elements tracers

View file

@ -1,12 +0,0 @@
Makefile
Makefile.in
*.o
*.lo
*.la
.deps
.libs
*.bb
*.bbg
*.da
*.def
*.gcno

View file

@ -1,71 +0,0 @@
plugin_LTLIBRARIES = libgstcoreelements.la
libgstcoreelements_la_DEPENDENCIES = $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la
libgstcoreelements_la_SOURCES = \
gstcapsfilter.c \
gstconcat.c \
gstdataurisrc.c \
gstdownloadbuffer.c \
gstelements.c \
gstelements_private.c \
gstfakesrc.c \
gstfakesink.c \
gstfdsrc.c \
gstfdsink.c \
gstfilesink.c \
gstfilesrc.c \
gstfunnel.c \
gstidentity.c \
gstinputselector.c \
gstoutputselector.c \
gstmultiqueue.c \
gstqueue.c \
gstqueue2.c \
gstsparsefile.c \
gsttee.c \
gsttypefindelement.c \
gststreamiddemux.c \
gstvalve.c
libgstcoreelements_la_CFLAGS = $(GST_OBJ_CFLAGS)
libgstcoreelements_la_LIBADD = \
$(top_builddir)/libs/gst/base/libgstbase-@GST_API_VERSION@.la \
$(GST_OBJ_LIBS)
libgstcoreelements_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = \
gstcapsfilter.h \
gstconcat.h \
gstdataurisrc.h \
gstdownloadbuffer.h \
gstelements_private.h \
gstfakesink.h \
gstfakesrc.h \
gstfdsrc.h \
gstfdsink.h \
gstfilesink.h \
gstfilesrc.h \
gstfunnel.h \
gstidentity.h \
gstinputselector.h \
gstoutputselector.h \
gstmultiqueue.h \
gstqueue.h \
gstqueue2.h \
gstsparsefile.h \
gsttee.h \
gsttypefindelement.h \
gststreamiddemux.h \
gstvalve.h
EXTRA_DIST = gstfdsrc.c \
gstfdsink.c
CLEANFILES = *.gcno *.gcda *.gcov *.gcov.out
%.c.gcov: .libs/libgstcoreelements_la-%.gcda %.c
$(GCOV) -b -f -o $^ > $@.out
gcov: $(libgstcoreelements_la_SOURCES:=.gcov)

View file

@ -1,12 +0,0 @@
Makefile
Makefile.in
*.o
*.lo
*.la
.deps
.libs
*.bb
*.bbg
*.da
*.def
*.gcno

View file

@ -1,43 +0,0 @@
plugin_LTLIBRARIES = libgstcoretracers.la
if HAVE_GETRUSAGE
RUSAGE_SOURCES = gstrusage.c
else
RUSAGE_SOURCES =
endif
if GST_DISABLE_GST_DEBUG
LOG_SOURCES =
else
LOG_SOURCES = gstlog.c
endif
libgstcoretracers_la_DEPENDENCIES = $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la
libgstcoretracers_la_SOURCES = \
gstlatency.c \
gstleaks.c \
$(LOG_SOURCES) \
$(RUSAGE_SOURCES) \
gststats.c \
gsttracers.c
libgstcoretracers_la_CFLAGS = $(GST_OBJ_CFLAGS) \
-DGST_USE_UNSTABLE_API
libgstcoretracers_la_LIBADD = $(GST_OBJ_LIBS)
libgstcoretracers_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = \
gstlatency.h \
gstleaks.h \
gstlog.h \
gstrusage.h \
gststats.h
CLEANFILES = *.gcno *.gcda *.gcov *.gcov.out
%.c.gcov: .libs/libgstcoretracers_la-%.gcda %.c
$(GCOV) -b -f -o $^ > $@.out
gcov: $(libgstcoretracers_la_SOURCES:=.gcov)

15
po/.gitignore vendored
View file

@ -1,15 +0,0 @@
*.gmo
remove-potcdate.sed
stamp-po
POTFILES
cat-id-tbl.c
gstreamer-*.pot
Makefile.in.in
Makefile.in.in.orig
Makevars.template
Rules-quot
boldquot.sed
en@boldquot.header
en@quot.header
insert-header.sin
quot.sed

View file

@ -1,47 +0,0 @@
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
DOMAIN = gstreamer-1.0
# These two variables depend on the location of this directory.
subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
# package. (Note that the msgstr strings, extracted from the package's
# sources, belong to the copyright holder of the package.) Translators are
# expected to transfer the copyright for their translations to this person
# or entity, or to disclaim their copyright. The empty string stands for
# the public domain; in this case the translators are expected to disclaim
# their copyright.
COPYRIGHT_HOLDER =
# This is the email address or URL to which the translators shall report
# bugs in the untranslated strings:
# - Strings which are not entire sentences, see the maintainer guidelines
# in the GNU gettext documentation, section 'Preparing Strings'.
# - Strings which use unclear terms or require additional context to be
# understood.
# - Strings which make invalid assumptions about notation of date, time or
# money.
# - Pluralisation problems.
# - Incorrect English spelling.
# - Incorrect formatting.
# It can be your email address, or a mailing list address where translators
# can write to without being subscribed, or the URL of a web page through
# which the translators can contact you.
MSGID_BUGS_ADDRESS = http://bugzilla.gnome.org/
# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used. It is usually empty.
EXTRA_LOCALE_CATEGORIES =
# Avoid line numbers in *.po, but keep them in *.pot.
MSGMERGE = msgmerge --no-location
MSGMERGE_UPDATE = msgmerge --no-location --update --backup=off
MSGFILTER = msgfilter --no-location

View file

@ -1,30 +0,0 @@
The idiot's guide to managing this directory
Q: How do I add source files to be translated ?
A: - Make sure the source file includes either gst-i18n-lib.h (if it's a part
of a library/plugin) or gst-i18n-app.h (if it's an application)
- Add the file path, relative to the top of the module, to POTFILES.in
Q: How do I add/mark strings to be translated ?
A: - Use N_(...) to mark for translation.
- Use _(...) to get a translated string
- run "make gstreamer-1.0.pot-update" to update the .pot file
and check if your new strings got added
Q: How do I add a language ?
A: - copy gstreamer-1.0.pot to your new language.po
- add the language code to LINGUAS
- edit the header of this language.po file and make it match one of
the existing .po files
- translate the strings
Q: How do I update a language ?
A: - run make language.po-update to update your .po file
(replace language with your language code)
- edit the .po file, and translate the untranslated strings
- run make install from the .po dir (so the updated strings get installed
and will be used in the lib/app) and test if the new strings are
translated
(To check, you need to export LANG=ll_LL. Make sure you add the last
bit; ie. for Dutch you need export LANG=nl_NL)
- commit

View file

@ -1,19 +0,0 @@
# Sed script that remove the POT-Creation-Date line in the header entry
# from a POT file.
#
# The distinction between the first and the following occurrences of the
# pattern is achieved by looking at the hold space.
/^"POT-Creation-Date: .*"$/{
x
# Test if the hold space is empty.
s/P/P/
ta
# Yes it was empty. First occurrence. Remove the line.
g
d
bb
:a
# The hold space was nonempty. Following occurrences. Do nothing.
x
:b
}

View file

@ -1,166 +0,0 @@
#!/bin/sh
# ----------------------------------------------------------------------------
#
# create-uninstalled-setup.sh
#
# Little shell script that creates a fresh GStreamer uninstalled setup in
# your home directory.
#
# This is the legacy uninstalled setup for autotools. There is also the
# gst-build module which provides the same using the meson build system.
#
# ----------------------------------------------------------------------------
#
# Copyright (C) 2011-2015 Tim-Philipp Müller <tim centricular net>
#
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ----------------------------------------------------------------------------
set -e
# set BRANCH to e.g. "1.2" to track the stable 1.2 branch instead of master
BRANCH="master"
# set to "ssh" if you have a developer account and ssh access
GIT_ACCESS="anongit"
# extra clone options
#CLONE_OPTS="--depth=1 --no-single-branch"
# re-use and reference local master branch checkout if one already exists
# (saves network bandwidth)
REUSE_EXISTING_MASTER_CHECKOUT="true"
# git modules to clone
MODULES="gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad gst-libav"
# note: we use ~/gst because that's what the gst-uninstalled script
# uses by default, so don't just change that to something else
UNINSTALLED_ROOT=~/gst
echo "==========================================================================================="
echo "Creating new GStreamer uninstalled environment for branch $BRANCH in $UNINSTALLED_ROOT ... "
echo "==========================================================================================="
mkdir -p $UNINSTALLED_ROOT
mkdir -p $UNINSTALLED_ROOT/$BRANCH
mkdir -p $UNINSTALLED_ROOT/$BRANCH/prefix
echo ""
echo "Checking basic build tools and dependencies are installed..."
echo ""
if ! pkg-config --version 2>/dev/null >/dev/null; then
DEPS_OK="no"
elif ! pkg-config --exists glib-2.0 orc-0.4 2>/dev/null >/dev/null; then
DEPS_OK="no"
elif ! bison --version 2>/dev/null >/dev/null; then
DEPS_OK="no"
elif ! flex --version 2>/dev/null >/dev/null; then
DEPS_OK="no"
elif ! git --version 2>/dev/null >/dev/null; then
DEPS_OK="no"
else
DEPS_OK="yes"
fi
if test "$DEPS_OK" != "yes"; then
echo "==========================================================================================="
echo ""
echo " Some very basic build tools or dependencies are missing."
echo ""
echo " Please install the following tools: pkg-config, bison, flex, git"
echo ""
echo " and the following libraries: GLib (libglib2.0-dev or glib2-devel)"
echo " and Orc (liborc-0.4-dev or orc-devel)"
#echo " Please visit"
#echo ""
#echo " http://gstreamer.freedesktop.org/wiki/BuildDependenciesDebianUbuntu"
#echo ""
#echo " or"
#echo ""
#echo " http://gstreamer.freedesktop.org/wiki/Fedora"
#echo ""
#echo " for instructions how to install them on Debian/Ubuntu-based systems."
echo ""
echo "==========================================================================================="
exit 1
fi
cd $UNINSTALLED_ROOT/$BRANCH
for m in $MODULES
do
REF=""
if test "$BRANCH" != "master" \
-a "x$REUSE_EXISTING_MASTER_CHECKOUT" = "xtrue" \
-a -d ../master/$m; then
REF="--reference=../master/$m"
fi
if test "$GIT_ACCESS" = "ssh"; then
git clone $CLONE_OPTS $REF git@gitlab.freedesktop.org:gstreamer/$m
else
git clone $CLONE_OPTS $REF https://gitlab.freedesktop.org/gstreamer/$m.git
fi
cd $m
if test "$BRANCH" != "master"; then
git checkout -b $BRANCH origin/$BRANCH
fi
git submodule init && git submodule update
cd ..
done
cd $UNINSTALLED_ROOT
ln -s $BRANCH/gstreamer/scripts/gst-uninstalled gst-$BRANCH
chmod +x gst-$BRANCH
cd ~
echo "==========================================================================================="
echo
echo "Done. Created new GStreamer uninstalled environment for branch $BRANCH in $UNINSTALLED_ROOT"
echo
echo "To enter the uninstalled environment do: cd $UNINSTALLED_ROOT; ./gst-$BRANCH"
echo
echo "To leave the uninstalled environment do: exit"
echo
echo "To check the uninstalled environment do: printenv | grep GST"
echo " (loads of output = you're in the uninstalled environment)"
echo
echo "==========================================================================================="
echo
echo "Now compile all GStreamer modules one by one by first switching into"
echo "the uninstalled environment and then doing:"
echo
echo " cd <MODULE>; ./autogen.sh; make"
echo
echo "First gstreamer, then gst-plugins-base, then the other modules."
echo "You do not need to do 'make install'"
echo
echo "==========================================================================================="
echo
echo "If your system GLib is too old, you can install a newer version"
echo "into --prefix=$UNINSTALLED_ROOT/$BRANCH/prefix and it should be picked up"
echo "by autogen.sh/configure"
echo
echo "==========================================================================================="

View file

@ -1,168 +0,0 @@
#!/usr/bin/env perl
#
# ----------------------------------------------------------------------------
#
# five-bugs-a-day.pl
#
# Little script that outputs a list of N random open bugs from bugzilla
# for a certain bugzilla product
#
# ----------------------------------------------------------------------------
#
# Copyright (C) 2011-2012 Tim-Philipp Muller <tim centricular net>
#
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ----------------------------------------------------------------------------
#
# You can use it to send yourself an e-mail with a few bugs to check up on
# every day, just put it into your crontab on a computer of your choice
# (with proper e-mail forwarding configured in some way):
#
# $ crontab -e
#
# add:
#
# MAILTO=you@nowhere.org
# # send ten random buglinks every day at 16.30
# 30 16 * * * /usr/bin/perl /path/to/five-bugs-a-day.pl
#
#
# Yes, it's PERL, sorry.
#
# Yes, I know the default is 10 bugs.
#
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# subroutines
# ----------------------------------------------------------------------------
sub shuffle
{
my $array = shift;
my $i = @$array;
while ( --$i )
{
my $j = int rand( $i+1 );
@$array[$i,$j] = @$array[$j,$i];
}
return @$array;
}
# ----------------------------------------------------------------------------
# main
# ----------------------------------------------------------------------------
my $NUM_BUGS = 10;
my $PRODUCT = "GStreamer";
# ----- command line options -----
if (@ARGV) {
$NUM_BUGS = shift @ARGV;
}
if (@ARGV) {
$PRODUCT = shift @ARGV;
}
my $QUERY_URL = "https://bugzilla.gnome.org/buglist.cgi?product=$PRODUCT&" .
'bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&' .
'bug_status=REOPENED&' .
'query_format=advanced&ctype=csv';
my $COL_ID;
my $COL_DESC;
my %BUGS;
# for testing/debugging:
# unless (@lines = `cat bugs.csv`) {
unless (@lines = `wget --no-check-certificate --quiet -O - '$QUERY_URL'`) {
die 'Could not download bug list';
}
# ----- parse column headers -----
my $headers;
# get first line which contains the field names
$headers = shift @lines;
# get rid of newline at end
chop $headers;
my @fields = split (/,/, $headers);
my $num_fields = scalar(@fields);
for (my $c = 0; $c < $num_fields; $c++) {
#print "$c $fields[$c] \n";
if ($fields[$c] =~ m/bug_id/) {
$COL_ID = $c;
} elsif ($fields[$c] =~ m/short_desc/) {
$COL_DESC = $c;
}
}
die "Could not find bug_id column in CVS file" if not defined ($COL_ID);
die "Could not find short_desc column in CVS file" if not defined ($COL_DESC);
#print "bugid is column $COL_ID\n";
#print "desc is column $COL_DESC\n";
foreach (@lines) {
if (m/,/) {
chop;
# We specify num_fields as limit here, because the short_desc field
# might contain commas as well, and we don't want it to get cut off.
# This is a hack for the fact that we don't handle quoted fields
# (12345,"UNCONFIRMED","foo, bar: errors out") properly. As long as the
# short_desc field is the last one, that should be ok. (FIXME)
my @vals = split (/,/, $_, $num_fields);
my $id = $vals[$COL_ID];
my $desc = $vals[$COL_DESC];
$desc =~ s/^"(.*)"$/$1/;
$BUGS{$id} = $desc;
}
}
my @all_bugs = keys %BUGS;
my @bugs = shuffle (\@all_bugs);
# only want first NUM_BUGS bugs
@bugs = splice (@bugs, 0, $NUM_BUGS);
print "\n";
print "$NUM_BUGS random bugs:\n";
print "\n";
for my $bug_id ( @bugs ) {
print "$BUGS{$bug_id}\n";
print "https://bugzilla.gnome.org/show_bug.cgi?id=$bug_id\n";
print "\n";
}
print "\n";
print "More bugs at:\n";
print " - http://gstreamer.freedesktop.org/bugs/\n";
print " - https://bugzilla.gnome.org/browse.cgi?product=GStreamer\n";
print "\n";

View file

@ -1,150 +0,0 @@
#!/bin/bash
# update all known gstreamer modules
# build them one by one
# report failures at the end
# run this from a directory that contains the checkouts for each of the
# modules
PIDS=
CORE="\
gstreamer gst-plugins-base"
MODULES="\
gst-plugins-good gst-plugins-ugly gst-plugins-bad \
gst-libav"
EXTRA_MODULES="\
gst-editing-services \
gst-rtsp-server \
gst-python"
tmp=${TMPDIR-/tmp}
tmp=$tmp/git-update.$(date +%Y%m%d-%H%M-).$RANDOM.$RANDOM.$RANDOM.$$
(umask 077 && mkdir "$tmp") || {
echo "Could not create temporary directory! Exiting." 1>&2
exit 1
}
ERROR_LOG="$tmp/failures.log"
ERROR_RETURN=255
CPUCORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo "1")
for m in $CORE $MODULES $EXTRA_MODULES; do
if test -d $m; then
echo "+ updating $m"
cd $m
git pull --rebase
if test $? -ne 0
then
echo "$m: update (trying stash, pull, stash apply)" >> $ERROR_LOG
git stash
git pull --rebase
if test $? -ne 0
then
echo "$m: update" >> $ERROR_LOG
cd ..
continue
fi
git stash apply
fi
git submodule update
if test $? -ne 0
then
echo "$m: update (submodule)" >> $ERROR_LOG
cd ..
continue
fi
cd ..
fi
done
build()
{
if test -d $1; then
cd $1
if test ! -e Makefile
then
if test -e autoregen.sh
then
echo "+ $1: autoregen.sh"
./autoregen.sh > "$tmp/$1-regen.log" 2>&1
if test $? -ne 0
then
echo "$1: autoregen.sh [$tmp/$1-regen.log]" >> $ERROR_LOG
cd ..
return $ERROR_RETURN
fi
echo "+ $1: autoregen.sh done"
else
echo "+ $1: autogen.sh"
./autogen.sh > "$tmp/$1-gen.log" 2>&1
if test $? -ne 0
then
echo "$1: autogen.sh [$tmp/$1-gen.log]" >> $ERROR_LOG
cd ..
return $ERROR_RETURN
fi
echo "+ $1: autogen.sh done"
fi
fi
echo "+ $1: make"
MAKEFLAGS="-j$CPUCORES $MAKEFLAGS" make > "$tmp/$1-make.log" 2>&1
if test $? -ne 0
then
echo "$1: make [$tmp/$1-make.log]" >> $ERROR_LOG
cd ..
return $ERROR_RETURN
fi
echo "+ $1: make done"
if test "x$CHECK" != "x"; then
echo "+ $1: make check"
make check > "$tmp/$1-check.log" 2>&1
if test $? -ne 0
then
echo "$1: check [$tmp/$1-check.log]" >> $ERROR_LOG
cd ..
return
fi
echo "+ $1: make check done"
fi
cd ..
fi
}
beach()
{
if test -e $ERROR_LOG; then
echo "Failures:"
echo
cat $ERROR_LOG
else
echo "Update done"
rm -rf "$tmp"
fi
exit
}
# build core and base plugins sequentially
# exit if build fails (excluding checks)
for m in $CORE; do
build $m
if [ $? -eq $ERROR_RETURN ]; then
beach
fi
done
# build other modules in parallel
for m in $MODULES $EXTRA_MODULES; do
build $m &
PIDS="$PIDS $!"
done
wait $PIDS
beach

View file

@ -1,265 +0,0 @@
#!/bin/bash -i
#
# this script is in git as gstreamer/scripts/gst-uninstalled
#
# It will set up the environment to use and develop gstreamer and projects
# that use gstreamer with an uninstalled git checkout of gstreamer and the
# plugin modules.
#
# It will set up LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PKG_CONFIG_PATH,
# GST_PLUGIN_PATH, GST_PLUGIN_SYSTEM_PATH, GST_REGISTRY, MANPATH, PYTHONPATH
# to prefer the uninstalled versions but also contain the installed ones.
# The only exception to this is, that no system installed plugins will be
# used but only the uninstalled ones.
#
# This script assumes that the relevant modules are checked out one by one
# under a given tree specified below in MYGST.
#
# Symlink this script in a directory in your path (for example $HOME/bin). You
# must name the symlink gst-something, where something is the subdirectory
# of MYGST that contains your gstreamer module checkouts.
#
# e.g.:
# - mkdir $HOME/gst/head
# - ln -sf gst-uninstalled $HOME/bin/gst-head
# - checkout copies of gstreamer modules in $HOME/gst/head
# - gst-head
# This script is run -i so that PS1 doesn't get cleared
if [ -z $GST_UNINSTALLED_ROOT ];
then
# Change this variable to the location of your gstreamer git checkouts
MYGST=$HOME/gst
#
# Everything below this line shouldn't be edited!
#
# extract version from $0
# if this script is called "gst-head" then version will be "head"
VERSION=`echo $0 | sed s/.*gst-//g`
# base path under which dirs are installed
GST=$MYGST/$VERSION
else
# Alternatively, you can set the GST_UNINSTALLED_ROOT environment variable to the
# location of your checkout and call this script directly.
#
# Ex: GST_UNINSTALLED_ROOT=$HOME/checkout/location gst-uninstalled
GST=$GST_UNINSTALLED_ROOT
fi
GST_PREFIX=$GST/prefix
if test ! -e $GST; then
echo "$GST does not exist !"
exit
fi
# set up a bunch of paths
PATH="\
$GST/gstreamer/tools:\
$GST/gst-plugins-base/tools:\
$GST/gst-player/src:\
$GST/gst-editor/src:\
$GST/gstreamer-sharp/tools:\
$GST/orc/tools:\
$GST_PREFIX/bin:\
$PATH"
# /some/path: makes the dynamic linker look in . too, so avoid this
LD_LIBRARY_PATH=$GST_PREFIX/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
DYLD_LIBRARY_PATH=$GST_PREFIX/lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}
GI_TYPELIB_PATH=$GST_PREFIX/share/gir-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}
# Nice
LD_LIBRARY_PATH=$GST/libnice/nice/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/libnice/nice/.libs:$DYLD_LIBRARY_PATH
# ORC
LD_LIBRARY_PATH=$GST/orc/orc/.libs:$GST/orc/orc-test/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/orc/orc/.libs:$GST/orc/orc-test/.libs:$DYLD_LIBRARY_PATH
# GStreamer rtsp server library
LD_LIBRARY_PATH=$GST/gst-rtsp-server/gst/rtsp-server/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/gst-rtsp-server/gst/rtsp-server/.libs:$DYLD_LIBRARY_PATH
GI_TYPELIB_PATH=$GST/gst-rtsp-server/gst/rtsp-server:$GI_TYPELIB_PATH
# GStreamer Editing Services library
LD_LIBRARY_PATH=$GST/gst-editing-services/ges/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/gst-editing-services/ges/.libs:$DYLD_LIBRARY_PATH
GI_TYPELIB_PATH=$GST/gst-editing-services/ges:$GI_TYPELIB_PATH
PATH=$GST/gst-editing-services/tools:$PATH
# GStreamer plugins vaapi libraries
LD_LIBRARY_PATH=$GST/gstreamer-vaapi/gst-libs/gst/vaapi/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/gstreamer-vaapi/gst-libs/gst/vaapi/.libs:$DYLD_LIBRARY_PATH
# GStreamer plugins base libraries
for path in allocators app audio fft gl pbutils riff rtp rtsp sdp tag utils video
do
LD_LIBRARY_PATH=$GST/gst-plugins-base/gst-libs/gst/$path/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/gst-plugins-base/gst-libs/gst/$path/.libs:$DYLD_LIBRARY_PATH
GI_TYPELIB_PATH=$GST/gst-plugins-base/gst-libs/gst/$path:$GI_TYPELIB_PATH
done
# GStreamer plugins bad libraries
for path in adaptivedemux audio basecamerabinsrc codecparsers insertbin interfaces mpegts opencv player uridownloader video wayland webrtc
do
LD_LIBRARY_PATH=$GST/gst-plugins-bad/gst-libs/gst/$path/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/gst-plugins-bad/gst-libs/gst/$path/.libs:$DYLD_LIBRARY_PATH
GI_TYPELIB_PATH=$GST/gst-plugins-bad/gst-libs/gst/$path:$GI_TYPELIB_PATH
done
export GST_HAAR_CASCADES_PATH=$GST/gst-plugins-bad/ext/opencv/
# GStreamer core libraries
for path in base check controller net
do
LD_LIBRARY_PATH=$GST/gstreamer/libs/gst/$path/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/gstreamer/libs/gst/$path/.libs:$DYLD_LIBRARY_PATH
GI_TYPELIB_PATH=$GST/gstreamer/libs/gst/$path:$GI_TYPELIB_PATH
done
LD_LIBRARY_PATH=$GST/gstreamer/gst/.libs:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$GST/gstreamer/gst/.libs:$DYLD_LIBRARY_PATH
GI_TYPELIB_PATH=$GST/gstreamer/gst:$GI_TYPELIB_PATH
export LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH
export GI_TYPELIB_PATH
export PKG_CONFIG_PATH="\
$GST_PREFIX/lib/pkgconfig\
:$GST/gstreamer/pkgconfig\
:$GST/gst-plugins-base/pkgconfig\
:$GST/gst-plugins-good/pkgconfig\
:$GST/gst-plugins-ugly/pkgconfig\
:$GST/gst-plugins-bad/pkgconfig\
:$GST/gst-libav/pkgconfig\
:$GST/gst-ffmpeg/pkgconfig\
:$GST/gst-python/pkgconfig\
:$GST/gst-rtsp-server/pkgconfig\
:$GST/gst-editing-services/pkgconfig\
:$GST/gstreamer-sharp/pkgconfig\
:$GST/gstreamer-vaapi/pkgconfig\
:$GST/orc\
:$GST/farsight2\
:$GST/libnice/nice\
${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
export GST_PLUGIN_PATH="\
$GST/gstreamer/plugins\
:$GST/gst-plugins-base/ext\
:$GST/gst-plugins-base/gst\
:$GST/gst-plugins-base/sys\
:$GST/gst-plugins-good/ext\
:$GST/gst-plugins-good/gst\
:$GST/gst-plugins-good/sys\
:$GST/gst-plugins-ugly/ext\
:$GST/gst-plugins-ugly/gst\
:$GST/gst-plugins-ugly/sys\
:$GST/gst-plugins-bad/ext\
:$GST/gst-plugins-bad/gst\
:$GST/gst-plugins-bad/sys\
:$GST/gst-libav/ext/\
:$GST/gst-ffmpeg/ext/\
:$GST/gst-omx/omx/.libs\
:$GST/clutter-gst/clutter-gst/.libs\
:$GST/gstreamer-vaapi/gst/vaapi/.libs\
:$GST/plugins\
:$GST/farsight2/gst\
:$GST/farsight2/transmitters\
:$GST/libnice/gst\
:$GST/gst-rpicamsrc/src/.libs\
:$GST/gst-rtsp-server/gst/rtsp-sink/.libs\
:$GST/gst-editing-services/plugins/nle/.libs\
:$GST/prefix/lib/gstreamer-1.0\
${GST_PLUGIN_PATH:+:$GST_PLUGIN_PATH}"
export GST_PRESET_PATH="\
$GST/gst-plugins-good/gst/equalizer/\
:$GST/gst-plugins-good/gst/equalizer\
:$GST/gst-plugins-good/ext/vpx/\
:$GST/gst-plugins-ugly/ext/x264\
:$GST/gst-plugins-ugly/ext/amrnb\
:$GST/gst-plugins-bad/gst/freeverb\
:$GST/gst-plugins-bad/ext/voamrwbenc\
${GST_PRESET_PATH:+:$GST_PRESET_PATH}"
# don't use any system-installed plug-ins at all
export GST_PLUGIN_SYSTEM_PATH=
# set our registry somewhere else so we don't mess up the registry generated
# by an installed copy
rm -f $GST/gstreamer/registry.xml 2>/dev/null
export GST_REGISTRY=$GST/gstreamer/registry.dat
# Point at the uninstalled plugin scanner
export GST_PLUGIN_SCANNER=$GST/gstreamer/libs/gst/helpers/gst-plugin-scanner
# Point at the uninstalled PTP helper
export GST_PTP_HELPER=$GST/gstreamer/libs/gst/helpers/.libs/gst-ptp-helper
# once MANPATH is set, it needs at least an "empty"component to keep pulling
# in the system-configured man paths from man.config
# this still doesn't make it work for the uninstalled case, since man goes
# look for a man directory "nearby" instead of the directory I'm telling it to
export MANPATH=$GST/gstreamer/tools:$GST_PREFIX/share/man:$GST/gst-editing-services/docs/man/:$MANPATH
if [ -z "$PYTHON" ]; then PYTHON="python3"; fi
pythonver=`$PYTHON -c "import sys; print (sys.version[:3])"`
pythonsites=`$PYTHON -c "import site; print(':'.join(site.getsitepackages()))"`
export PYTHONPATH="${PYTHONPATH}:${pythonsites}:${GST}/gst-python"
# clutter-gst
export PKG_CONFIG_PATH=$GST/clutter-gst:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$GST/clutter-gst/clutter-gst/.libs:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$GST/clutter-gst/clutter-gst/.libs:$DYLD_LIBRARY_PATH
# totem-pl-parser
export PKG_CONFIG_PATH=$GST/totem-pl-parser:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$GST/totem-pl-parser/plparse/.libs:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$GST/totem-pl-parser/plparse/.libs:$DYLD_LIBRARY_PATH
# totem
export PATH=$GST/totem/src:$PATH
# gstreamer-sharp
export MONO_PATH=$GST/gstreamer-sharp/gstreamer-sharp:$MONO_PATH
export LD_LIBRARY_PATH=$GST/gstreamer-sharp/gstreamer-sharp/glue/.libs:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$GST/gstreamer-sharp/gstreamer-sharp/glue/.libs:$DYLD_LIBRARY_PATH
# gst-devtools/validate
export PATH=$GST/gst-devtools/validate/tools:$PATH
export PKG_CONFIG_PATH=$GST/gst-devtools/validate/pkgconfig:$PKG_CONFIG_PATH
export GST_VALIDATE_SCENARIOS_PATH=$GST/gst-devtools/validate/data/scenarios:$GST_VALIDATE_SCENARIOS_PATH
export GST_VALIDATE_APPS_DIR=$GST_VALIDATE_APPS_DIR:$GST/gst-editing-services/tests/validate/
export GST_VALIDATE_PLUGIN_PATH=$GST_VALIDATE_PLUGIN_PATH:$GST/gst-devtools/validate/plugins/
export GIO_EXTRA_MODULES=$GST/prefix/lib/gio/modules:$GIO_EXTRA_MODULES
if [ -d "$GST/gst-libav" -a -d "$GST/gst-ffmpeg" ]; then
echo
echo "====================================================================="
echo " You have both an uninstalled gst-ffmpeg checkout and a gst-libav"
echo " checkout. You need to remove one of those. You should remove"
echo
echo " $GST/gst-ffmpeg"
echo
echo " since gst-libav replaces gst-ffmpeg."
echo "====================================================================="
echo
fi
# if we got a command, run it, else start a shell
if test ! -z "$1";
then
$@
exit $?
fi
# set up prompt to help us remember we're in a subshell, cd to
# the gstreamer base dir and start $SHELL
cd $GST
shell=$SHELL
if test "x$SHELL" = "x/bin/bash"
then
# debian/ubuntu resets our PS1. bastards.
shell="$SHELL --noprofile"
fi
PS1="[gst-$VERSION] $PS1" $shell

View file

@ -1 +0,0 @@
timestamp

17
tests/.gitignore vendored
View file

@ -1,17 +0,0 @@
Makefile
Makefile.in
*.o
*.lo
*.la
.deps
.libs
*.xml
*.gst
init
mass_elements
*.bb
*.bbg
*.da
*.data
*.ps
/examples/streamiddemux/streamiddemux-stream

View file

@ -1,45 +0,0 @@
EXTRA_DIST = README
# Build misc unless both --disable-examples and --disable-benchmarks were passed
if BUILD_BENCHMARKS
SUBDIRS_BENCHMARKS = benchmarks
SUBDIRS_MISC = misc
else
SUBDIRS_BENCHMARKS =
endif
if BUILD_TESTS
## SUBDIRS_TESTS = tests testsuite
## FIXME: write tests from scratch
SUBDIRS_TESTS =
if HAVE_CHECK
SUBDIRS_CHECK = check
else
SUBDIRS_CHECK =
endif
else
SUBDIRS_TESTS =
SUBDIRS_CHECK =
endif
if BUILD_EXAMPLES
SUBDIRS_EXAMPLES = examples
SUBDIRS_MISC = misc
else
SUBDIRS_EXAMPLES =
endif
SUBDIRS = \
$(SUBDIRS_BENCHMARKS) \
$(SUBDIRS_CHECK) \
$(SUBDIRS_MISC) \
$(SUBDIRS_TESTS) \
$(SUBDIRS_EXAMPLES)
# These are all the possible subdirs
DIST_SUBDIRS = \
benchmarks \
check \
examples \
misc

View file

@ -1,13 +0,0 @@
Makefile
Makefile.in
caps
capsnego
complexity
controller
gstbufferstress
gstclockstress
gstpollstress
gstpoolstress
mass-elements
tracerserialize
*.gcno

View file

@ -1,25 +0,0 @@
if !GST_DISABLE_GST_DEBUG
TRACER_BENCH = tracerserialize
else
TRACER_BENCH =
endif
noinst_PROGRAMS = \
caps \
capsnego \
complexity \
controller \
init \
mass-elements \
gstpollstress \
gstpoolstress \
gstclockstress \
gstbufferstress \
$(TRACER_BENCH)
LDADD = $(GST_OBJ_LIBS)
AM_CFLAGS = $(GST_OBJ_CFLAGS)
controller_CFLAGS = $(GST_OBJ_CFLAGS) -I$(top_builddir)/libs
controller_LDADD = $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_API_VERSION@.la $(LDADD)

View file

@ -1,6 +0,0 @@
test-registry.*
*.gcno
*.gcda
tools/.dirstamp
tools/gstinspect

View file

@ -1,313 +0,0 @@
include $(top_srcdir)/common/check.mak
CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
GST_TOOLS_DIR = $(top_builddir)/tools
REGISTRY_ENVIRONMENT = \
GST_REGISTRY=$(CHECK_REGISTRY)
AM_TESTS_ENVIRONMENT += \
GST_STATE_IGNORE_ELEMENTS="$(STATE_IGNORE_ELEMENTS)" \
$(REGISTRY_ENVIRONMENT) \
GST_PLUGIN_SCANNER_1_0=$(top_builddir)/libs/gst/helpers/gst-plugin-scanner \
GST_PLUGIN_SYSTEM_PATH_1_0= \
GST_PLUGIN_PATH_1_0=$(top_builddir)/plugins
plugindir = $(libdir)/gstreamer-@GST_API_VERSION@
# override to _not_ install the test plugins
install-pluginLTLIBRARIES:
# the core dumps of some machines have PIDs appended, test registry and
# profiling data
CLEANFILES = core core.* test-registry.* *.gcno *.gcda
SUPPRESSIONS = $(top_srcdir)/common/gst.supp
clean-local: clean-local-check
# These tests don't even build any longer:
# gst/gstindex.c
if GST_DISABLE_PARSE
PARSE_CHECKS = pipelines/parse-disabled
else
PARSE_CHECKS = pipelines/simple-launch-lines pipelines/cleanup pipelines/parse-launch
endif
# Do not run the abi test in case any option which causes the API to change has
# been used
if !GST_DISABLE_REGISTRY
ABI_CHECKS = gst/gstabi
endif
if !GST_DISABLE_GST_DEBUG
PRINTF_CHECKS = gst/gstprintf
else
PRINTF_CHECKS =
endif
LIBSABI_CHECKS = libs/libsabi
if HAVE_CXX
CXX_CHECKS = gst/gstcpp libs/gstlibscpp
else
CXX_CHECKS =
endif
# if it's calling gst_element_factory_make(), it will probably not work without
# a registry
if GST_DISABLE_REGISTRY
REGISTRY_CHECKS =
else
REGISTRY_CHECKS = \
gst/gst \
gst/gstbin \
gst/gstchildproxy \
gst/gstcontext \
gst/gstcontroller \
gst/gstelement \
gst/gstelementfactory \
gst/gstevent \
gst/gstghostpad \
gst/gstplugin \
gst/gstpreset \
gst/gstprotection \
gst/gstquery \
gst/gstregistry \
gst/gsturi \
gst/gstutils \
generic/sinks \
elements/capsfilter \
elements/concat \
elements/dataurisrc \
elements/fakesink \
elements/fakesrc \
elements/fdsrc \
elements/filesink \
elements/filesrc \
elements/funnel \
elements/identity \
elements/multiqueue \
elements/selector \
elements/tee \
elements/queue \
elements/queue2 \
elements/valve \
elements/streamiddemux \
libs/baseparse \
libs/basesrc \
libs/basesink \
libs/sparsefile \
libs/controller \
libs/queuearray \
libs/typefindhelper \
pipelines/seek \
pipelines/stress \
pipelines/queue-error
endif
check_PROGRAMS = \
$(ABI_CHECKS) \
gst/gstatomicqueue \
gst/gstbuffer \
gst/gstbufferlist \
gst/gstbufferpool \
gst/gstmeta \
gst/gstmemory \
gst/gstbus \
gst/gstcaps \
gst/gstcapsfeatures \
$(CXX_CHECKS) \
gst/gstdatetime \
gst/gstdeinit \
gst/gstdevice \
gst/gstinfo \
gst/gstiterator \
gst/gstmessage \
gst/gstminiobject \
gst/gstobject \
gst/gstpad \
gst/gstparamspecs \
gst/gstpipeline \
gst/gstpoll \
gst/gstprotection \
$(PRINTF_CHECKS) \
gst/gstpromise \
gst/gstsegment \
gst/gstsystemclock \
gst/gstclock \
gst/gststream \
gst/gststructure \
gst/gsttag \
gst/gsttracerrecord \
gst/gsttagsetter \
gst/gsttask \
gst/gsttoc \
gst/gsttocsetter \
gst/gstvalue \
generic/states \
$(PARSE_CHECKS) \
$(REGISTRY_CHECKS) \
$(LIBSABI_CHECKS) \
libs/adapter \
libs/aggregator \
libs/bitreader \
libs/bitwriter \
libs/bytereader \
libs/bytewriter \
libs/bitreader-noinline \
libs/bytereader-noinline \
libs/bytewriter-noinline \
libs/flowcombiner \
libs/sparsefile \
libs/collectpads \
libs/gstharness \
libs/gstnetclientclock \
libs/gstnettimeprovider \
libs/gsttestclock \
libs/transform1 \
libs/transform2 \
tools/gstinspect
# failing tests
noinst_PROGRAMS =
# elements to ignore for the state tests
# STATE_IGNORE_ELEMENTS =
TESTS = $(check_PROGRAMS)
noinst_HEADERS = \
gst/capslist.h \
gst/struct_arm.h \
gst/struct_i386.h \
gst/struct_i386w.h \
gst/struct_hppa.h \
gst/struct_ppc32.h \
gst/struct_ppc64.h \
gst/struct_sparc.h \
gst/struct_x86_64.h \
gst/struct_x86_64w.h \
libs/struct_arm.h \
libs/struct_i386.h \
libs/struct_hppa.h \
libs/struct_ppc32.h \
libs/struct_ppc64.h \
libs/struct_sparc.h \
libs/struct_x86_64.h
EXTRA_DIST = \
libs/test_transform.c
AM_CFLAGS = $(PTHREAD_CFLAGS) $(GST_OBJ_CFLAGS) -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS \
-DGST_CHECK_TEST_ENVIRONMENT_BEACON="\"GST_STATE_IGNORE_ELEMENTS\""
AM_CXXFLAGS = $(GST_OBJ_CXXFLAGS) -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS \
-DGST_CHECK_TEST_ENVIRONMENT_BEACON="\"GST_STATE_IGNORE_ELEMENTS\""
LDADD = $(top_builddir)/libs/gst/check/libgstcheck-@GST_API_VERSION@.la \
$(top_builddir)/libs/gst/base/libgstbase-@GST_API_VERSION@.la \
$(GST_OBJ_LIBS)
gst_gstcpp_SOURCES = gst/gstcpp.cc
libs_gstlibscpp_SOURCES = libs/gstlibscpp.cc
gst_gsttracerrecord_CFLAGS = $(GST_OBJ_CFLAGS) $(AM_CFLAGS) -DGST_USE_UNSTABLE_API
gst_gstutils_LDADD = $(LDADD) $(GSL_LIBS) $(GMP_LIBS)
gst_gstprintf_LDADD = \
$(top_builddir)/gst/printf/libgstprintf.la \
$(LDADD)
elements_fdsrc_CFLAGS=$(GST_OBJ_CFLAGS) $(AM_CFLAGS) \
-DTESTFILE=\"$(top_srcdir)/configure.ac\"
elements_filesrc_CFLAGS=$(GST_OBJ_CFLAGS) $(AM_CFLAGS) \
-DTESTFILE=\"$(top_srcdir)/configure.ac\"
libs_controller_LDADD = \
$(top_builddir)/libs/gst/controller/libgstcontroller-@GST_API_VERSION@.la \
$(LDADD)
libs_gstnetclientclock_LDADD = \
$(top_builddir)/libs/gst/net/libgstnet-@GST_API_VERSION@.la \
$(LDADD)
libs_gstnettimeprovider_LDADD = \
$(top_builddir)/libs/gst/net/libgstnet-@GST_API_VERSION@.la \
$(GIO_LIBS) $(LDADD)
# valgrind testing
# these just need valgrind fixing, period
VALGRIND_TO_FIX = \
gst/gstinfo \
gst/gsttracerrecord \
tools/gstinspect
VALGRIND_IGNORE = \
pipelines/stress
# these need fixing because the threads cause segfaults under valgrind
TESTS_THREADED = \
gst/gstminiobject \
gst/gstobject
VALGRIND_TESTS_DISABLE = \
$(TESTS_THREADED) \
$(VALGRIND_IGNORE) \
$(VALGRIND_TO_FIX)
# indexers does not get tested yet
COVERAGE_DIRS = \
gst \
libs/gst/base \
libs/gst/controller \
libs/gst/check \
libs/gst/net \
plugins/elements
COVERAGE_FILES = $(foreach dir,$(COVERAGE_DIRS),$(wildcard $(top_builddir)/$(dir)/*.gcov))
COVERAGE_FILES_REL = $(subst $(top_builddir)/,,$(COVERAGE_FILES))
COVERAGE_OUT_FILES = $(foreach dir,$(COVERAGE_DIRS),$(wildcard $(top_builddir)/$(dir)/*.gcov.out))
COVERAGE_OUT_FILES_REL = $(subst $(top_builddir)/,,$(COVERAGE_OUT_FILES))
debug:
echo $(COVERAGE_FILES)
echo $(COVERAGE_FILES_REL)
.PHONY: coverage
if GST_GCOV_ENABLED
# we rebuild a registry and do gst-inspect so that all the get/set codepaths
# are also covered
coverage:
for file in `find $(top_builddir) -name '*.gcda'`; do rm $$file; done
-rm $(CHECK_REGISTRY)
echo "Inspecting all elements"
for e in `$(GST_INSPECT) | head -n -2 | cut -d: -f2`; do $(GST_INSPECT) $$e > /dev/null 2>&1; done
make check
make coverage-report
else
coverage:
echo "You need to configure with --enable-gcov to get coverage data"
exit 1
endif
coverage-report:
rm -r coverage
for dir in $(COVERAGE_DIRS); do \
mkdir -p coverage/$$dir; \
make -C $(top_builddir)/$$dir gcov; \
done
for dir in $(COVERAGE_DIRS); do \
files="`ls $(top_builddir)/$$dir/*.gcov.out 2> /dev/null`"; \
if test ! -z "$$files"; then \
perl $(top_srcdir)/common/coverage/coverage-report.pl \
$(top_builddir)/$$dir/*.gcov.out > \
coverage/$$dir/index.xml; \
xsltproc $(top_srcdir)/common/coverage/coverage-report.xsl \
coverage/$$dir/index.xml > coverage/$$dir/index.html; \
fi; \
done
for file in $(COVERAGE_FILES_REL); do \
echo Generating coverage/$$file.html; \
perl $(top_srcdir)/common/coverage/coverage-report-entry.pl \
$(top_builddir)/$$file > coverage/$$file.html; \
done

View file

@ -1,19 +0,0 @@
.dirstamp
capsfilter
concat
dataurisrc
fakesrc
fakesink
fdsrc
filesink
filesrc
funnel
identity
multiqueue
queue
queue2
selector
streamiddemux
tee
valve
*.check.xml

View file

@ -1,4 +0,0 @@
.dirstamp
sinks
states
*.check.xml

View file

@ -1,58 +0,0 @@
.dirstamp
gst
gstabi
gstatomicqueue
gstbin
gstbuffer
gstbufferlist
gstbufferpool
gstbus
gstcaps
gstcapsfeatures
gstchildproxy
gstclock
gstcontroller
gstcontext
gstcpp
gstcustombufferpool
gstdata
gstdatetime
gstdeinit
gstdevice
gstelement
gstelementfactory
gstevent
gstghostpad
gstiterator
gstindex
gstmessage
gstmeta
gstmemory
gstminiobject
gstobject
gstpad
gstparamspecs
gstpipeline
gstplugin
gstpoll
gstpreset
gstprintf
gstpromise
gstprotection
gstregistry
gstsegment
gststream
gststructure
gstsystemclock
gsttag
gsttagsetter
gsttoc
gsttocsetter
gsttracerrecord
gsturi
gstutils
gstvalue
gstquery
gsttask
*.check.xml
gstinfo

View file

@ -1,29 +0,0 @@
.dirstamp
adapter
aggregator
baseparse
basesink
basesrc
bitreader
bitreader-noinline
bitwriter
bytereader
bytereader-noinline
bytewriter
bytewriter-noinline
gdp
collectpads
controller
flowcombiner
gstharness
gstlibscpp
gstnetclientclock
gstnettimeprovider
gsttestclock
libsabi
sparsefile
transform1
transform2
typefindhelper
queuearray
*.check.xml

View file

@ -1,9 +0,0 @@
.dirstamp
cleanup
seek
simple-launch-lines
stress
parse-launch
*.check.xml
parse-disabled
queue-error

View file

@ -1,24 +0,0 @@
# adapter test needs sys/times.h and unistd.h
if HAVE_SYS_TIMES_H_AND_UNISTD_H
ADAPTER_TEST_DIR = adapter
else
ADAPTER_TEST_DIR =
endif
always_dirs = \
controller \
helloworld \
memory \
netclock \
ptp \
stepping \
streamiddemux \
streams
SUBDIRS = \
$(always_dirs) \
$(ADAPTER_TEST_DIR)
DIST_SUBDIRS = $(always_dirs) adapter
include $(top_srcdir)/common/parallel-subdirs.mak

View file

@ -1,2 +0,0 @@
adapter_test
*.gcno

View file

@ -1,4 +0,0 @@
noinst_PROGRAMS = adapter_test
adapter_test_LDADD = $(GST_OBJ_LIBS) $(top_builddir)/libs/gst/base/libgstbase-@GST_API_VERSION@.la
adapter_test_CFLAGS = $(GST_OBJ_CFLAGS)

View file

@ -1,9 +0,0 @@
audio-example
control-sources
controller-graph
text-color-example
absolute-example
*.bb
*.bbg
*.da
*.gcno

View file

@ -1,17 +0,0 @@
noinst_PROGRAMS = audio-example control-sources text-color-example absolute-example
AM_CFLAGS = $(GST_OBJ_CFLAGS) -I$(top_builddir)/libs
LDADD = \
$(top_builddir)/libs/gst/controller/libgstcontroller-@GST_API_VERSION@.la \
$(GST_OBJ_LIBS)
if HAVE_GTK
noinst_PROGRAMS += controller-graph
controller_graph_CFLAGS = $(GST_OBJ_CFLAGS) $(GTK_CFLAGS)
controller_graph_LDADD = \
$(top_builddir)/libs/gst/controller/libgstcontroller-@GST_API_VERSION@.la \
$(GST_OBJ_LIBS) $(GTK_LIBS)
endif

View file

@ -1,5 +0,0 @@
helloworld
*.bb
*.bbg
*.da
helloworld-helloworld.gcno

View file

@ -1,4 +0,0 @@
noinst_PROGRAMS = helloworld
helloworld_LDADD = $(GST_OBJ_LIBS)
helloworld_CFLAGS = $(GST_OBJ_CFLAGS)

View file

@ -1,2 +0,0 @@
memory_test
*.gcno

View file

@ -1,5 +0,0 @@
noinst_PROGRAMS = memory_test
memory_test_SOURCES = memory_test.c my-memory.c my-memory.h my-vidmem.c my-vidmem.h
memory_test_LDADD = $(GST_OBJ_LIBS)
memory_test_CFLAGS = $(GST_OBJ_CFLAGS)

View file

@ -1,2 +0,0 @@
netclock-server
netclock-client

View file

@ -1,11 +0,0 @@
noinst_PROGRAMS = netclock-server netclock-client
netclock_server_LDADD = \
$(top_builddir)/libs/gst/net/libgstnet-@GST_API_VERSION@.la \
$(GST_OBJ_LIBS)
netclock_server_CFLAGS = $(GST_OBJ_CFLAGS)
netclock_client_LDADD = \
$(top_builddir)/libs/gst/net/libgstnet-@GST_API_VERSION@.la \
$(GST_OBJ_LIBS)
netclock_client_CFLAGS = $(GST_OBJ_CFLAGS)

View file

@ -1 +0,0 @@
ptp-print-times

View file

@ -1,7 +0,0 @@
noinst_PROGRAMS = ptp-print-times
ptp_print_times_LDADD = \
$(top_builddir)/libs/gst/net/libgstnet-@GST_API_VERSION@.la \
$(GST_OBJ_LIBS)
ptp_print_times_CFLAGS = $(GST_OBJ_CFLAGS)

View file

@ -1,5 +0,0 @@
framestep1
*.bb
*.bbg
*.da
framestep1-framestep1.gcno

View file

@ -1,4 +0,0 @@
noinst_PROGRAMS = framestep1
framestep1_LDADD = $(GST_OBJ_LIBS)
framestep1_CFLAGS = $(GST_OBJ_CFLAGS)

View file

@ -1,6 +0,0 @@
noinst_PROGRAMS = streamiddemux-stream
streamiddemux_stream_SOURCES = streamiddemux-stream.c
streamiddemux_stream_LDADD = $(GST_OBJ_LIBS)
streamiddemux_stream_CFLAGS = $(GST_OBJ_CFLAGS)

View file

@ -1,6 +0,0 @@
stream-status
rtpool-test
*.bb
*.bbg
*.da
stream-status-stream-status.gcno

View file

@ -1,14 +0,0 @@
noinst_PROGRAMS = stream-status
if HAVE_PTHREAD
noinst_PROGRAMS += rtpool-test
endif
stream_status_SOURCES = stream-status.c
stream_status_LDADD = $(GST_OBJ_LIBS)
stream_status_CFLAGS = $(GST_OBJ_CFLAGS)
rtpool_test_SOURCES = rtpool-test.c testrtpool.h testrtpool.c
rtpool_test_LDADD = $(GST_OBJ_LIBS) $(PTHREAD_LIBS)
rtpool_test_CFLAGS = $(GST_OBJ_CFLAGS) $(PTHREAD_CFLAGS)
EXTRA_DIST = rtpool-test.c testrtpool.h testrtpool.c

View file

@ -1,9 +0,0 @@
EXTRA_DIST = \
network-clock.scm \
network-clock-utils.scm \
plot-data
noinst_PROGRAMS = netclock-replay
netclock_replay_LDADD = $(GST_OBJ_LIBS) $(GIO_LIBS)
netclock_replay_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)

17
tools/.gitignore vendored
View file

@ -1,17 +0,0 @@
Makefile
Makefile.in
.dirstamp
*.o
*.lo
*.la
.deps
.libs
*.bb
*.bbg
*.da
*.gcno
gst-inspect-?.0
gst-launch-?.0
gst-typefind-?.0
gst-stats-?.0

View file

@ -1,48 +0,0 @@
bin_PROGRAMS = \
gst-inspect-@GST_API_VERSION@ \
gst-stats-@GST_API_VERSION@ \
gst-typefind-@GST_API_VERSION@
gst_inspect_@GST_API_VERSION@_SOURCES = gst-inspect.c tools.h
gst_inspect_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
gst_inspect_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
gst_stats_@GST_API_VERSION@_SOURCES = gst-stats.c tools.h
gst_stats_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
gst_stats_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
gst_typefind_@GST_API_VERSION@_SOURCES = gst-typefind.c tools.h
gst_typefind_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
gst_typefind_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
if !GST_DISABLE_PARSE
bin_PROGRAMS += gst-launch-@GST_API_VERSION@
gst_launch_@GST_API_VERSION@_SOURCES = gst-launch.c tools.h
gst_launch_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
gst_launch_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
endif
manpages = \
gst-inspect-@GST_API_VERSION@.1 \
gst-stats-@GST_API_VERSION@.1 \
gst-typefind-@GST_API_VERSION@.1
if !GST_DISABLE_PARSE
manpages += gst-launch-@GST_API_VERSION@.1
endif
man_MANS = $(manpages)
# developer helper tools, not meant for installation
noinst_SCRIPTS = gst-indent
noinst_HEADERS = tools.h
EXTRA_DIST = \
gst-inspect-@GST_API_VERSION@.1 \
gst-typefind-@GST_API_VERSION@.1 \
gst-launch-@GST_API_VERSION@.1 \
gst-stats-@GST_API_VERSION@.1 \
$(noinst_SCRIPTS)