diff --git a/.gitignore b/.gitignore index f8adb7f524..9cf107aa94 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 596ee78b75..0000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "common"] - path = common - url = https://gitlab.freedesktop.org/gstreamer/common.git diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index b2223cac32..0000000000 --- a/Makefile.am +++ /dev/null @@ -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 diff --git a/README b/README index 78f907df56..c55b0a6c00 100644 --- a/README +++ b/README @@ -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 diff --git a/TODO b/TODO deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index e2e6f7471f..0000000000 --- a/autogen.sh +++ /dev/null @@ -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." diff --git a/common b/common deleted file mode 160000 index 59cb678164..0000000000 --- a/common +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 59cb678164719ff59dcf6c8b93df4617a1075d11 diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 79f0bb2599..0000000000 --- a/configure.ac +++ /dev/null @@ -1,1197 +0,0 @@ -AC_PREREQ([2.69]) - -dnl initialize autoconf -dnl when going to/from release please set the nano (fourth number) right ! -dnl releases only do Wall, git and prerelease does Werror too -dnl -AC_INIT([GStreamer],[1.17.0.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer],[gstreamer]) -AG_GST_INIT - -dnl initialize automake (we require GNU make) -AM_INIT_AUTOMAKE([-Wno-portability 1.14 no-dist-gzip dist-xz tar-ustar subdir-objects]) - -dnl define PACKAGE_VERSION_* variables -AS_VERSION - -dnl check if this is a release version -AS_NANO(GST_GIT="no", GST_GIT="yes") - -dnl can autoconf find the source ? -AC_CONFIG_SRCDIR([gst/gst.c]) - -dnl define the output header for config -AC_CONFIG_HEADERS([config.h]) - -dnl AM_MAINTAINER_MODE only provides the option to configure to enable it -AM_MAINTAINER_MODE([enable]) - -dnl sets host_* variables -AC_CANONICAL_HOST - -dnl use pretty build output by default -AM_SILENT_RULES([yes]) - -dnl GStreamer versioning, this is mostly informational -GST_VERSION_MAJOR=$PACKAGE_VERSION_MAJOR -GST_VERSION_MINOR=$PACKAGE_VERSION_MINOR -GST_VERSION_MICRO=$PACKAGE_VERSION_MICRO -GST_VERSION_NANO=$PACKAGE_VERSION_NANO -AC_SUBST(GST_VERSION_MAJOR) -AC_SUBST(GST_VERSION_MINOR) -AC_SUBST(GST_VERSION_MICRO) -AC_SUBST(GST_VERSION_NANO) - -dnl our libraries and install dirs use GST_API_VERSION in the filename -dnl to allow side-by-side installation of different API versions -GST_API_VERSION=1.0 -AC_SUBST(GST_API_VERSION) -AC_DEFINE_UNQUOTED(GST_API_VERSION, "$GST_API_VERSION", - [GStreamer API Version]) - -dnl CURRENT, REVISION, AGE -dnl - library source changed -> increment REVISION -dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0 -dnl - interfaces added -> increment AGE -dnl - interfaces removed -> AGE = 0 -dnl -dnl Keep CURRENT as MINOR * 100 + MICRO -dnl Ex : 1.0.0 => 0 -dnl 1.0.3 => 3 -dnl 1.1.0 => 100 -dnl 1.2.5 => 205 -dnl 1.10.9 (who knows) => 1009 -dnl -dnl sets GST_LT_LDFLAGS -AS_LIBTOOL(GST, 1700, 0, 1700) - -dnl *** autotools stuff **** - -dnl allow for different autotools -AS_AUTOTOOLS_ALTERNATE - -dnl Add parameters for aclocal (keep in sync with Makefile.am) -AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4") - -dnl set up gettext -dnl the version check needs to stay here because autopoint greps for it -AM_GNU_GETTEXT_VERSION([0.17]) -AM_GNU_GETTEXT([external]) -AG_GST_GETTEXT([gstreamer-$GST_API_VERSION]) - -dnl *** check for arguments to configure *** - -AG_GST_ARG_DISABLE_FATAL_WARNINGS -AG_GST_ARG_ENABLE_EXTRA_CHECKS - -dnl subsystems - can influence other decisions so needs to be high up -dnl we need to AM_CONDITIONAL them here for automake 1.6.x compatibility -AG_GST_CHECK_SUBSYSTEM_DISABLE(GST_DEBUG,[debugging subsystem]) -AM_CONDITIONAL(GST_DISABLE_GST_DEBUG, test "x$GST_DISABLE_GST_DEBUG" = "xyes") -AG_GST_CHECK_SUBSYSTEM_DISABLE(GST_TRACER_HOOKS,[tracing subsystem hooks]) -AM_CONDITIONAL(GST_DISABLE_GST_TRACER_HOOKS, test "x$GST_DISABLE_GST_TRACER_HOOKS" = "xyes") -if test "x$GST_DISABLE_GST_TRACER_HOOKS" = xyes; then - AC_DEFINE(GST_DISABLE_GST_TRACER_HOOKS, 1, - [Define if tracing subsystem hooks is disabled]) -fi -AG_GST_CHECK_SUBSYSTEM_DISABLE(PARSE,[command-line parser]) -AM_CONDITIONAL(GST_DISABLE_PARSE, test "x$GST_DISABLE_PARSE" = "xyes") -if test "x$GST_DISABLE_PARSE" = xyes; then - AC_DEFINE(GST_DISABLE_PARSE, 1, - [Define if pipeline parsing code is disabled]) -fi -AG_GST_CHECK_SUBSYSTEM_DISABLE(OPTION_PARSING,[option parsing when gst_init]) -AM_CONDITIONAL(GST_DISABLE_OPTION_PARSING, test "x$GST_DISABLE_OPTION_PARSING" = "xyes") -if test "x$GST_DISABLE_OPTION_PARSING" = xyes; then - AC_DEFINE(GST_DISABLE_OPTION_PARSING, 1, - [Define if option parsing is disabled]) -fi -AG_GST_CHECK_SUBSYSTEM_DISABLE(REGISTRY,[plugin registry]) -AM_CONDITIONAL(GST_DISABLE_REGISTRY, test "x$GST_DISABLE_REGISTRY" = "xyes") -dnl define a substitution to use in docs/gst/gstreamer.types -if test "x$GST_DISABLE_REGISTRY" = "xyes" -then - GST_REGISTRY_DOC_TYPES="%" -else - GST_REGISTRY_DOC_TYPES= -fi -AC_SUBST(GST_REGISTRY_DOC_TYPES) -AG_GST_CHECK_SUBSYSTEM_DISABLE(PLUGIN,[plugin]) -AM_CONDITIONAL(GST_DISABLE_PLUGIN, test "x$GST_DISABLE_PLUGIN" = "xyes") - -GST_DISABLE_CAST_CHECKS_DEFINE=0 -AC_SUBST(GST_DISABLE_CAST_CHECKS_DEFINE) - -GST_DISABLE_GLIB_ASSERTS_DEFINE=0 -AC_SUBST(GST_DISABLE_GLIB_ASSERTS_DEFINE) - -GST_DISABLE_GLIB_CHECKS_DEFINE=0 -AC_SUBST(GST_DISABLE_GLIB_CHECKS_DEFINE) - - -AG_GST_ARG_DEBUG -AG_GST_ARG_PROFILING -AG_GST_ARG_VALGRIND -AG_GST_ARG_GCOV - -AG_GST_ARG_EXAMPLES - -AG_GST_ARG_WITH_PKG_CONFIG_PATH -AG_GST_ARG_WITH_PACKAGE_NAME -AG_GST_ARG_WITH_PACKAGE_ORIGIN - -AG_GST_PKG_CONFIG_PATH - -AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO], - ["${srcdir}/gstreamer.doap"], - [$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO]) - -# We only use this when building with MSVC, which is only done with the -# alternate Meson build system files -GSTCONFIG_BUILT_WITH_MSVC=0 -AC_SUBST(GSTCONFIG_BUILT_WITH_MSVC) - -dnl check for bash completion -AC_ARG_WITH([bash-completion-dir], - AS_HELP_STRING([--with-bash-completion-dir[=PATH]], - [Install the bash auto-completion script in this directory. @<:@default=yes@:>@]), - [], - [with_bash_completion_dir=yes]) - -if test "x$with_bash_completion_dir" = "xyes" -then - extra_args= - - if test "x$prefix" != "xNONE" - then - extra_args="--define-variable=prefix=\"$prefix\"" - fi - - PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0], - [ - BASH_COMPLETION_DIR="`eval pkg-config $extra_args --variable=completionsdir bash-completion`" - BASH_HELPERS_DIR="`eval pkg-config $extra_args --variable=helpersdir bash-completion`" - ], - [ - BASH_COMPLETION_DIR="$datadir/bash-completion/completions" - BASH_HELPERS_DIR="$datadir/bash-completion/helpers" - ]) -else - BASH_COMPLETION_DIR="$with_bash_completion_dir/completions" - BASH_HELPERS_DIR="$with_bash_completion_dir/helpers" -fi - -AC_SUBST([BASH_COMPLETION_DIR]) -AC_SUBST([BASH_HELPERS_DIR]) -AM_CONDITIONAL([ENABLE_BASH_COMPLETION],[test "x$with_bash_completion_dir" != "xno"]) - -dnl If only building static libraries, define GST_STATIC_COMPILATION. This is -dnl needed only on Windows, but it doesn't hurt to have it everywhere. -if test x$enable_static = xyes -a x$enable_shared = xno; then - GST_OBJ_STATIC_CFLAGS="-DGST_STATIC_COMPILATION" -fi - -dnl building of tests -AC_ARG_ENABLE(tests, - AS_HELP_STRING([--disable-tests],[disable building test apps]), - [ - case "${enableval}" in - yes) BUILD_TESTS=yes ;; - no) BUILD_TESTS=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;; - esac - ], -[BUILD_TESTS=yes]) dnl Default value -AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes") - -dnl tests known to fail -AC_ARG_ENABLE(failing-tests, - AS_HELP_STRING([--disable-failing-tests],[disable building tests known to fail]), - [ - case "${enableval}" in - yes) BUILD_FAILING_TESTS=yes ;; - no) BUILD_FAILING_TESTS=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for --disable-failing-tests) ;; - esac - ], - [BUILD_FAILING_TESTS=no]) dnl Default value -AM_CONDITIONAL(BUILD_FAILING_TESTS, test "x$BUILD_FAILING_TESTS" = "xyes") -if test x$BUILD_FAILING_TESTS = xyes; then - AC_MSG_WARN([building tests known to fail, use --disable-failing-tests to disable]) -else - AC_MSG_WARN([By asking to not build the tests known to fail, you hereby waive your right to customer support. If you do not agree with this EULA, please press Ctrl-C before the next line is printed. By allowing the next line to be printed, you expressly acknowledge your acceptance of this EULA.]) -fi - -dnl building of benchmarks -AC_ARG_ENABLE(benchmarks, - AS_HELP_STRING([--disable-benchmarks],[disable building benchmarks apps]), - [ - case "${enableval}" in - yes) BUILD_BENCHMARKS=yes ;; - no) BUILD_BENCHMARKS=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for --disable-benchmarks) ;; - esac - ], -[BUILD_BENCHMARKS=yes]) dnl Default value -AM_CONDITIONAL(BUILD_BENCHMARKS, test "x$BUILD_BENCHMARKS" = "xyes") - -dnl building of tools -AC_ARG_ENABLE(tools, - AS_HELP_STRING([--disable-tools],[disable building tools]), - [ - case "${enableval}" in - yes) BUILD_TOOLS=yes ;; - no) BUILD_TOOLS=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for --disable-tools) ;; - esac - ], -[BUILD_TOOLS=yes]) dnl Default value -AM_CONDITIONAL(BUILD_TOOLS, test "x$BUILD_TOOLS" = "xyes") - -dnl poison destroyed objects -AC_ARG_ENABLE(poisoning, - AS_HELP_STRING([--enable-poisoning],[enable poisoning of deallocated objects]), - [ - case "${enableval}" in - yes) USE_POISONING=yes ;; - no) USE_POISONING=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-poisoning) ;; - esac - ], - [USE_POISONING=$GST_GIT]) dnl Default value -if test "x$USE_POISONING" = xyes; then - AC_DEFINE(USE_POISONING, 1, - [Define if we should poison deallocated memory]) -fi - -dnl PTP support parts -AC_MSG_CHECKING([whether PTP support can be enabled]) -case "$host_os" in - *android*) - dnl Can't run on Android because of permissions - HAVE_PTP=no - ;; - mingw*|pw32*|cygwin*) - dnl Not ported to Windows yet - HAVE_PTP=no - ;; - darwin*) - dnl Can't run on iOS because of permissions - AC_CHECK_HEADER(MobileCoreServices/MobileCoreServices.h, HAVE_PTP="no", HAVE_PTP="yes", [-]) - ;; - linux*|darwin*|solaris*|netbsd*|freebsd*|openbsd*|kfreebsd*|dragonfly*|gnu*) - HAVE_PTP=yes - ;; - *) - HAVE_PTP=no - ;; -esac -AC_MSG_RESULT([$HAVE_PTP]) - -dnl user/group to change to in gst-ptp-helper -AC_ARG_WITH([ptp-helper-setuid-user], - AS_HELP_STRING([--with-ptp-helper-setuid-user],[User to switch to when installing gst-ptp-helper setuid root]), - [ - if test "x$withval" != "x" - then - AC_DEFINE_UNQUOTED(HAVE_PTP_HELPER_SETUID_USER, "$withval", [PTP helper setuid user]) - fi - ], [] -) - -dnl group/group to change to in gst-ptp-helper -AC_ARG_WITH([ptp-helper-setuid-group], - AS_HELP_STRING([--with-ptp-helper-setuid-group],[Group to switch to when installing gst-ptp-helper setuid root]), - [ - if test "x$withval" != "x" - then - AC_DEFINE_UNQUOTED(HAVE_PTP_HELPER_SETUID_GROUP, "$withval", [PTP helper setuid group]) - fi - ], [] -) - -AC_ARG_WITH( - ptp-helper-permissions, - AC_HELP_STRING( - [--with-ptp-helper-permissions], - [how to gain PTP permissions (none, setuid-root, capabilities, auto)]), - [], - [with_ptp_helper_permissions=auto]) - -gst_ptp_have_cap=no -AG_GST_CHECK_LIBHEADER(CAP, cap, - cap_init, , - sys/capability.h, - CAP_LIBS="-lcap" - AC_SUBST(CAP_LIBS) - gst_ptp_have_cap=yes) - -AC_PATH_PROG([SETCAP], [setcap], [no], [$PATH:/usr/bin:/bin:/usr/sbin:/sbin]) - -if test "x$HAVE_PTP" = "xyes"; then -AC_DEFINE(HAVE_PTP, 1, [PTP support available]) - -AC_MSG_CHECKING([for SIOCGIFCONF, SIOCGIFFLAGS and SIOCGIFHWADDR]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [[ - #include - #include - ]], - [[ - struct ifreq ifr; - struct ifconf ifc; - ioctl(0, SIOCGIFCONF, &ifc); - ioctl(0, SIOCGIFFLAGS, &ifr); - ioctl(0, SIOCGIFHWADDR, &ifr); - int dummy = ifr.ifr_hwaddr.sa_data[0]; - ]])], [ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_SIOCGIFCONF_SIOCGIFFLAGS_SIOCGIFHWADDR, 1, [SIOCGIFCONF, SIOCGIFFLAGS and SIOCGIFHWADDR is available]) - ], [ - AC_MSG_RESULT(no) -]) - -AC_MSG_CHECKING([for getifaddrs() and AF_LINK]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [[ - #include - #include - #include - ]], - [[ - struct ifaddrs *ifaddr; - getifaddrs(&ifaddr); - int dummy = (ifaddr->ifa_flags & IFF_LOOPBACK) && ifaddr->ifa_addr->sa_family != AF_LINK; - ]])], [ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_GETIFADDRS_AF_LINK, 1, [getifaddrs() and AF_LINK is available]) - ], [ - AC_MSG_RESULT(no) - ]) - -AC_MSG_CHECKING([how to install gst-ptp-helper]) -if test "x$with_ptp_helper_permissions" = "xauto"; then - if test "x$gst_ptp_have_cap" = "xyes" -a "x$SETCAP" != "xno"; then - with_ptp_helper_permissions="capabilities" - else - with_ptp_helper_permissions="setuid-root" - fi -fi -AC_MSG_RESULT([$with_ptp_helper_permissions]) - -case "$with_ptp_helper_permissions" in - none) - ;; - setuid-root) - AC_DEFINE(HAVE_PTP_HELPER_SETUID, 1, - [Use setuid-root for permissions in PTP helper]) - ;; - capabilities) - AC_DEFINE(HAVE_PTP_HELPER_CAPABILITIES, 1, - [Use capabilities for permissions in PTP helper]) - ;; - *) - AC_MSG_ERROR(Invalid parameter [$with_ptp_helper_permissions]) - ;; -esac - -fi - -AM_CONDITIONAL(HAVE_PTP, test "x$HAVE_PTP" = "xyes") -AM_CONDITIONAL(HAVE_PTP_HELPER_SETUID, test "x$with_ptp_helper_permissions" = "xsetuid-root") -AM_CONDITIONAL(HAVE_PTP_HELPER_CAPABILITIES, test "x$with_ptp_helper_permissions" = "xcapabilities") - -dnl *** checks for platform *** - -dnl * hardware/architecture * - -dnl common/m4/gst-arch.m4 -dnl check CPU type -AG_GST_ARCH - -dnl check for platform specific settings -AG_GST_PLATFORM - -dnl * software * - -dnl check for large file support -dnl affected plugins must include config.h -AC_SYS_LARGEFILE - -dnl *** checks for programs *** - -dnl find a compiler -AC_PROG_CC -AC_PROG_CC_STDC - -dnl check if the compiler supports '-c' and '-o' options -AM_PROG_CC_C_O - -dnl find an assembler -AM_PROG_AS - -dnl determine if c++ is available on this system -AC_PROG_CXX -dnl CXX may be set to some default even if no c++ compiler is available -dnl (thanks autotools!), so just try to compile some c++ code to make sure -AC_LANG_PUSH([C++]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ class Foo { int bar; };]], [[]])],[working_cxx=yes],[working_cxx=no]) -AC_LANG_POP([C++]) -AC_MSG_NOTICE([working c++ compiler found: $working_cxx]) -AM_CONDITIONAL(HAVE_CXX, test "x$working_cxx" = "xyes") - -dnl Perl is used in building documentation and in the version checks -AC_PATH_PROG(PERL_PATH, perl, no) -if test x$PERL_PATH = xno; then - AC_MSG_ERROR(Could not find perl) -fi - -dnl we require flex and bison for building the parser -if test "x$GST_DISABLE_PARSE" != xyes; then - AG_GST_BISON_CHECK - AG_GST_FLEX_CHECK -fi - -AC_PATH_PROG(VALGRIND_PATH, valgrind, no) -AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno") - -dnl check for gobject-introspection -GOBJECT_INTROSPECTION_CHECK([1.31.1]) - -dnl *** checks for libraries *** - -dnl check for libm, for sin() -LT_LIB_M -AC_SUBST(LIBM) - -dnl *** checks for header files *** - -dnl check if we have ANSI C header files -AC_HEADER_STDC - -dnl Check for ucontext.h -AC_CHECK_HEADERS([ucontext.h], [], [], [AC_INCLUDES_DEFAULT]) - -dnl Check for sys/socket.h -AC_CHECK_HEADERS([sys/socket.h], [HAVE_SYS_SOCKET_H=yes], [HAVE_SYS_SOCKET_H=no], [AC_INCLUDES_DEFAULT]) -AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes") - -dnl check for sys/times.h for tests/examples/adapter/ -AC_CHECK_HEADERS([sys/times.h], [HAVE_SYS_TIMES_H=yes], [HAVE_SYS_TIME_H=no], [AC_INCLUDES_DEFAULT]) -AC_CHECK_HEADERS([unistd.h], [HAVE_UNISTD_H=yes], [HAVE_UNISTD_H=no], [AC_INCLUDES_DEFAULT]) -AM_CONDITIONAL(HAVE_SYS_TIMES_H_AND_UNISTD_H, test "x$HAVE_SYS_TIMES_H" = "xyes" -a "x$HAVE_UNISTD_H" = "xyes") - -dnl Check for process.h for getpid() on win32 -AC_CHECK_HEADERS([process.h], [], [], [AC_INCLUDES_DEFAULT]) - -dnl Check for sys/utsname.h for uname -AC_CHECK_HEADERS([sys/utsname.h], [], [], [AC_INCLUDES_DEFAULT]) - -dnl Check for stdio_ext.f for __fbufsize -AC_CHECK_HEADERS([stdio_ext.h], [], [], [AC_INCLUDES_DEFAULT]) - -dnl check for pthreads -dnl without arguments AX_PTHREAD() will do AC_DEFINE(HAVE_PTHREAD) -dnl which later checks use in their test code -AX_PTHREAD() -AM_CONDITIONAL(HAVE_PTHREAD, test "x$ax_pthread_ok" = "xyes") - -dnl check for sys/prctl for setting thread name on Linux -AC_CHECK_HEADERS([sys/prctl.h], [], [], [AC_INCLUDES_DEFAULT]) - -dnl check for pthread_setname_np(const char*) -dnl which is present on OS X 10.6, iOS 3.2 and above -AC_MSG_CHECKING(for pthread_setname_np(const char*)) -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include ], - [pthread_setname_np("example")])], - [AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID,1, - [Have function pthread_setname_np(const char*)])], - [AC_MSG_RESULT(no)]) - -dnl check for sys/uio.h for writev() -AC_CHECK_HEADERS([sys/uio.h], [], [], [AC_INCLUDES_DEFAULT]) - -dnl Check for valgrind.h -dnl separate from HAVE_VALGRIND because you can have the program, but not -dnl the dev package -AC_CHECK_HEADERS([valgrind/valgrind.h], [], [], [AC_INCLUDES_DEFAULT]) - -dnl used in gst/gstpoll.c -AC_CHECK_HEADERS([winsock2.h], [HAVE_WINSOCK2_H=yes], [HAVE_WINSOCK2_H=no], [AC_INCLUDES_DEFAULT]) -AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes") -if test "x$HAVE_WINSOCK2_H" = "xyes"; then - WIN32_LIBS="-lws2_32" - AC_SUBST(WIN32_LIBS) -fi - -dnl check for GMP/GSL, used by the gst_util_uint64_scale unit test only -if test "x$BUILD_TESTS" = "xyes"; then - AG_GST_CHECK_LIBHEADER(GMP, gmp, - __gmpz_init_set_d, , - gmp.h, - GMP_LIBS="-lgmp" - AC_SUBST(GMP_LIBS) - AC_DEFINE(HAVE_GMP, [1],[Have GMP library])) - AG_GST_CHECK_LIBHEADER(GSL, gsl, - gsl_rng_uniform_int, -lgslcblas, - gsl/gsl_rng.h, - GSL_LIBS="-lgsl -lgslcblas" - AC_SUBST(GSL_LIBS) - AC_DEFINE(HAVE_GSL, [1],[Have GSL library])) -fi - -dnl *** checks for types/defines *** - -dnl *** checks for structures *** - -dnl *** checks for compiler characteristics *** - -dnl check if the compiler supports __uint128_t (gcc) -dnl Actually check for 128-bit division, since that's what we use -dnl uint128_t for. -AC_CACHE_CHECK(for __uint128_t, gst_cv_uint128_t, - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ - static __uint128_t v1 = 100; - static __uint128_t v2 = 10; - static __uint128_t u; - u = v1 / v2; - ]])],[ - gst_cv_uint128_t=yes - ],[ - gst_cv_uint128_t=no - ]) -) -if test x$gst_cv_uint128_t = xyes; then - AC_DEFINE(HAVE_UINT128_T, 1, [Have __uint128_t type]) -fi - -dnl *** checking for tm_gmtoff *** -AC_MSG_CHECKING([for tm_gmtoff]) -AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - int main(void) { - struct tm t; - t.tm_gmtoff = 0; - exit(0); - }]])], - [have_tm_gmtoff=yes - AC_DEFINE(HAVE_TM_GMTOFF,1,[Have tm_gmtoff field in struct tm])], - [have_tm_gmtoff=no], - [have_tm_gmtoff="no (cross compiling)"]) -AC_MSG_RESULT($have_tm_gmtoff) - - -dnl *** checks for library functions *** - -AC_CHECK_FUNCS([strcasestr]) - -AC_CHECK_FUNCS([gmtime_r]) -AC_CHECK_FUNCS([localtime_r]) -AC_CHECK_FUNCS([sigaction]) -AC_CHECK_FUNCS([getrusage]) -AM_CONDITIONAL(HAVE_GETRUSAGE, test "x$ac_cv_func_getrusage" = "xyes") -AC_CHECK_HEADERS([sys/resource.h]) - -dnl check for fseeko() -AC_FUNC_FSEEKO -dnl check for ftello() -AC_CHECK_FUNCS([ftello]) - -AC_CHECK_FUNCS([fgetpos]) -AC_CHECK_FUNCS([fsetpos]) - -dnl check for poll(), ppoll() and pselect() -AC_CHECK_HEADERS([sys/poll.h], [], [], [AC_INCLUDES_DEFAULT]) -AC_CHECK_HEADERS([poll.h], [], [], [AC_INCLUDES_DEFAULT]) -AC_CHECK_FUNCS([poll]) -AC_CHECK_FUNCS([ppoll]) -AC_CHECK_FUNCS([pselect]) - -dnl check for socketpair() -AC_CHECK_FUNC(socketpair, [], [ - AC_CHECK_LIB(socket, socketpair, [ - SOCKET_LIBS="-lsocket" - AC_SUBST(SOCKET_LIBS) - ]) -]) - -dnl **************************************** -dnl *** GLib POLL* compatibility defines *** -dnl **************************************** - -AC_MSG_CHECKING([for broken poll]) -AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - #include - #ifdef HAVE_SYS_POLL_H - #include - #endif - #ifdef HAVE_POLL_H - #include - #endif - int main(void) { - struct pollfd fds[1]; - int fd; - fd = open("/dev/null", 1); - fds[0].fd = fd; - fds[0].events = POLLIN; - fds[0].revents = 0; - if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { - exit(1); /* Does not work for devices -- fail */ - } - exit(0); - }]])], - [broken_poll=no], - [broken_poll=yes - AC_DEFINE(BROKEN_POLL,1,[poll doesn't work on devices])], - [broken_poll="no (cross compiling)"]) -AC_MSG_RESULT($broken_poll) - -dnl check for getpagesize() -AC_CHECK_FUNCS([getpagesize]) - -dnl Check for POSIX timers -CLOCK_GETTIME_FOUND="no" -AC_CHECK_FUNC(clock_gettime, [CLOCK_GETTIME_FOUND="yes"], [ - AC_CHECK_LIB(rt, clock_gettime, [ - CLOCK_GETTIME_FOUND="yes" - LIBS="$LIBS -lrt" - ], [ - AC_CHECK_LIB(pthread, clock_gettime, [ - CLOCK_GETTIME_FOUND="yes" - LIBS="$LIBS -lpthread" - ]) - ]) -]) - -# With XCode 8, clock_gettime will be incorrectly detected as being available -# regardless of what version of OS X you target because the symbol is available -# in the .tbd file as a weak symbol. -# See: https://bugzilla.gnome.org/show_bug.cgi?id=772451 -# -# We cannot simply do AC_CHECK_FUNCS with -Wl,-no_weak_imports because the -# autoconf check does its own prototype declaration that doesn't trigger that -# compiler flag. -# -# It's only starting from macOS 10.12 and iOS 10.0 that clock_gettime is -# actually available, so we can unconditionally disable it for older versions. -case "$host_os" in - darwin*) - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ -#include -#include -#if defined(TARGET_OS_MAC) -# if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 -# error "Not compiling for OS X 10.12 or later" -# endif -#else -# if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0 -# error "Not compiling for iOS 10.0 or later" -# endif -#endif - ]])], [], [ - if test "$CLOCK_GETTIME_FOUND" = "yes"; then - AC_MSG_NOTICE([Disabling incorrectly detected clock_gettime on OS X]) - fi - CLOCK_GETTIME_FOUND="no" - ]) - ;; -esac - -if test "$CLOCK_GETTIME_FOUND" = "yes"; then - AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Have clock_gettime]) -fi - -AC_CACHE_CHECK(for posix timers, gst_cv_posix_timers, - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -#include -#ifdef HAVE_UNISTD_H -#include -#endif - ]], [[ -#if !defined(_POSIX_TIMERS) || _POSIX_TIMERS < 0 || !defined(CLOCK_REALTIME) -#error Either _POSIX_TIMERS or CLOCK_REALTIME not defined -#endif - ]])],[ - gst_cv_posix_timers=yes - ],[ - gst_cv_posix_timers=no - ]) -) - -if test "$gst_cv_posix_timers" = "yes"; then - AC_DEFINE(HAVE_POSIX_TIMERS,1,[Have posix timers]) - GST_HAVE_POSIX_TIMERS_DEFINE="#define GST_HAVE_POSIX_TIMERS 1" -else - GST_HAVE_POSIX_TIMERS_DEFINE="#define GST_HAVE_POSIX_TIMERS 0" -fi -AC_SUBST(GST_HAVE_POSIX_TIMERS_DEFINE) -AM_CONDITIONAL(GST_HAVE_POSIX_TIMERS, test "$gst_cv_posix_timers" = "yes") - -AC_CACHE_CHECK(for monotonic clock, gst_cv_monotonic_clock, - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -#include -#ifdef HAVE_UNISTD_H -#include -#endif - ]], [[ -#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0 || !defined(CLOCK_MONOTONIC) -#error Either _POSIX_MONOTONIC_CLOCK or CLOCK_MONOTONIC not defined -#endif - ]])],[ - gst_cv_monotonic_clock=yes - ],[ - gst_cv_monotonic_clock=no - ]) -) - -if test "$gst_cv_monotonic_clock" = "yes"; then - AC_DEFINE(HAVE_MONOTONIC_CLOCK,1,[Have a monotonic clock]) - GST_HAVE_MONOTONIC_CLOCK_DEFINE="#define GST_HAVE_MONOTONIC_CLOCK 1" -else - GST_HAVE_MONOTONIC_CLOCK_DEFINE="#define GST_HAVE_MONOTONIC_CLOCK 0" -fi -AC_SUBST(GST_HAVE_MONOTONIC_CLOCK_DEFINE) -AM_CONDITIONAL(GST_HAVE_MONOTONIC_CLOCK, test "$gst_cv_monotonic_clock" = "yes") - -dnl Check for a way to display the function name in debug output -AG_GST_CHECK_FUNCTION - -dnl test if we have dladdr(); we use it for debugging; see gst/gstinfo.c -save_cflags="$CFLAGS" -CFLAGS="$CFLAGS -D_GNU_SOURCE" -AC_CHECK_LIB(dl, dladdr, - AC_DEFINE(HAVE_DLADDR, 1, [Defined if we have dladdr ()]) - LIBS="$LIBS -ldl") -CFLAGS="$save_cflags" - -dnl Check printf stuff -if test "x${GST_DISABLE_GST_DEBUG}" != "xyes"; then - AC_TYPE_LONG_LONG_INT - AC_TYPE_UNSIGNED_LONG_LONG_INT - - if test x$ac_cv_type_long_long_int$ac_cv_type_unsigned_long_long_int = xyesyes; then - AC_DEFINE([HAVE_LONG_LONG], [1], [Define to 1 if the system has the type long long]) - fi - - dnl /usr/share/aclocal/inttypes_h.m4 - ships with gettext apparently - gl_AC_HEADER_INTTYPES_H - - dnl /usr/share/aclocal/stdint_h.m4 - ships with gettext apparently - gl_AC_HEADER_STDINT_H - - AC_CHECK_TYPES(ptrdiff_t) - - AC_TYPE_INTMAX_T - AC_TYPE_SIZE_T -fi - -dnl *** checks for dependency libraries *** - -dnl GLib -GLIB_REQ=2.44.0 -AG_GST_GLIB_CHECK([$GLIB_REQ]) - -dnl Check for documentation xrefs -GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`" -AC_SUBST(GLIB_PREFIX) - -dnl GTK is optional and only used in examples -HAVE_GTK=no -GTK_REQ=3.10 -if test "x$BUILD_EXAMPLES" = "xyes"; then - PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQ, HAVE_GTK=yes, HAVE_GTK=no) - AC_SUBST(GTK_LIBS) - AC_SUBST(GTK_CFLAGS) -fi -AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes") - -dnl libunwind is optionally used by the leaks tracer -AC_ARG_WITH([unwind],[AS_HELP_STRING([--with-unwind=yes|no|auto],[use libunwind])], - [], [with_unwind=auto]) -if [ test "x${with_unwind}" != "xno" ]; then - PKG_CHECK_MODULES(UNWIND, [libunwind], - [ - HAVE_UNWIND=yes - AC_DEFINE(HAVE_UNWIND, 1, [libunwind available]) - UNWIND_REQUIRE=libunwind - AC_SUBST(UNWIND_REQUIRE) - ], - [ - HAVE_UNWIND=no - if [ test "x${with_unwind}" = "xyes" ]; then - AC_MSG_ERROR([could not find libunwind]) - fi - ]) -else - HAVE_UNWIND=no -fi - -dnl libdw is optionally used to add source lines and numbers to backtraces -AC_ARG_WITH([dw],[AS_HELP_STRING([--with-dw=yes|no|auto],[use libdw])], - [], [with_dw=auto]) -if [ test "x${with_dw}" != "xno" ]; then - PKG_CHECK_MODULES(DW, [libdw], - [ - HAVE_DW=yes - AC_DEFINE(HAVE_DW, 1, [libdw available]) - DW_REQUIRE=libdw - AC_SUBST(DW_REQUIRE) - ], - [ - HAVE_DW=no - if [ test "x${with_dw}" = "xyes" ]; then - AC_MSG_ERROR([could not find libdw]) - fi - ]) -else - HAVE_DW=no -fi - -dnl Check for backtrace() from libc -AC_CHECK_FUNC(backtrace, [ - AC_CHECK_HEADERS([execinfo.h], [ - AC_DEFINE(HAVE_BACKTRACE,1,[Have backtrace]) - ], [], []) -]) - -dnl building of unit test libraries -AC_ARG_ENABLE(check, - AS_HELP_STRING([--disable-check],[disable building unit test libraries]), - [ - case "${enableval}" in - yes) BUILD_CHECK=yes ;; - no) BUILD_CHECK=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for --disable-check) ;; - esac - ], [ - dnl Default value - case $host_os in - mingw* | msvc* | mks*) BUILD_CHECK=no ;; - *) BUILD_CHECK=yes ;; - esac -]) -dnl bit of a misnomer, but keep the conditional named like this so we don't -dnl have to change too much elsewhere -AM_CONDITIONAL(HAVE_CHECK, test "x$BUILD_CHECK" = "xyes") - -dnl configure the desired memory alignment -AC_ARG_WITH([memory-alignment], - AS_HELP_STRING([--with-memory-alignment],[8,N,malloc,pagesize (default is 32)]), - [ - if test "x$withval" = "xyes" - then - AC_DEFINE(MEMORY_ALIGNMENT, 32, [Memory alignment to use]) - else - case "${withval}" in - malloc) AC_DEFINE(MEMORY_ALIGNMENT_MALLOC, 1, [Memory alignment by malloc default]) ;; - pagesize) AC_DEFINE(MEMORY_ALIGNMENT_PAGESIZE, 1, [Memory alignment by pagesize]) ;; - *) AC_DEFINE_UNQUOTED(MEMORY_ALIGNMENT, ${withval}, [Memory alignment to use]) ;; - esac - fi - ], [ - AC_DEFINE(MEMORY_ALIGNMENT_MALLOC, 1, [Memory alignment by malloc default]) - ] -) - -dnl Symbol visibility -VISIBILITY_CFLAGS="" -AS_COMPILER_FLAG([-fvisibility=hidden], [ - VISIBILITY_CFLAGS="-fvisibility=hidden" - AC_DEFINE(GST_API_EXPORT, [extern __attribute__ ((visibility ("default")))], [public symbol export define]) -], [ - VISIBILITY_CFLAGS="" - AC_DEFINE(GST_API_EXPORT, [extern], [public symbol export define]) -]) -AC_SUBST(VISIBILITY_CFLAGS) - -dnl Check for -Bsymbolic-functions linker flag used to avoid -dnl intra-library PLT jumps, if available. -AC_ARG_ENABLE(Bsymbolic, - [AS_HELP_STRING([--disable-Bsymbolic],[avoid linking with -Bsymbolic])],, - [SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}" - AC_MSG_CHECKING([for -Bsymbolic-functions linker flag]) - LDFLAGS=-Wl,-Bsymbolic-functions - LIBS= - AC_TRY_LINK([], [return 0], - AC_MSG_RESULT(yes) - enable_Bsymbolic=yes, - AC_MSG_RESULT(no) - enable_Bsymbolic=no) - LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}"]) - - -dnl *** set variables based on configure arguments - -dnl set license and copyright notice -GST_LICENSE="LGPL" -AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license]) -AC_SUBST(GST_LICENSE) - -dnl define LIBDIR, GST_DATADIR so we can inform people where we live -AS_AC_EXPAND(LIBDIR, $libdir) -AC_DEFINE_UNQUOTED(LIBDIR, "$LIBDIR", [library dir]) -AS_AC_EXPAND(DATADIR, $datadir) -AC_DEFINE_UNQUOTED(GST_DATADIR, "$DATADIR", [data dir]) - -dnl set location of plugin directory -AG_GST_SET_PLUGINDIR - -dnl make sure it doesn't complain about unused variables if debugging is disabled -NO_WARNINGS="" -if test "x${GST_DISABLE_GST_DEBUG}" = "xyes"; then - NO_WARNINGS="-Wno-unused" -fi - -dnl define an ERROR_CFLAGS Makefile variable -AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs $NO_WARNINGS]) - -dnl special warning flags for gst/printf -AS_COMPILER_FLAG([-Wno-format-nonliteral], [PRINTF_CFLAGS="-Wno-format-nonliteral"]) -AC_SUBST(PRINTF_CFLAGS) - -dnl disable strict aliasing -AS_COMPILER_FLAG([-fno-strict-aliasing], [EXTRA_CFLAGS="-fno-strict-aliasing"]) -AC_SUBST(EXTRA_CFLAGS) - -dnl define correct level for debugging messages -AG_GST_SET_LEVEL_DEFAULT($GST_GIT) - -dnl *** finalize CFLAGS, LDFLAGS, LIBS - -dnl Overview: -dnl GST_OPTION_CFLAGS: common cflags for profiling, debugging, errors, ... -dnl GST_ALL_*: vars shared by all built objects -dnl GST_LIB_LDFLAGS: additional linker flags for all libraries -dnl GST_OBJ_*: additional vars to link to the core library -dnl include GST_ALL_* -dnl GST_LT_LDFLAGS: library versioning of our libraries -dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins - -dnl GST_OPTION_CFLAGS -if test "x$USE_DEBUG" = xyes; then - PROFILE_CFLAGS="-g" -fi -AC_SUBST(PROFILE_CFLAGS) - -# GST_DISABLE_DEPRECATED: hide the visibility of deprecated -# functionality from the API that gstreamer uses -# GST_REMOVE_DEPRECATED: don't compile deprecated functionality (breaks ABI) -if test "x$PACKAGE_VERSION_NANO" = "x1"; then - dnl Define _only_ when compiling from git (not for pre-releases or releases) - DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED" -else - DEPRECATED_CFLAGS="" -fi -AC_SUBST(DEPRECATED_CFLAGS) - -dnl every flag in GST_OPTION_CFLAGS can be overridden at make time via e.g. -dnl make DEPRECATED_CFLAGS='' -GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)" -GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)" -GST_OPTION_CFLAGS="$GST_OPTION_CFLAGS" -GST_OPTION_CXXFLAGS="$GST_OPTION_CXXFLAGS" -AC_SUBST(GST_OPTION_CFLAGS) -AC_SUBST(GST_OPTION_CXXFLAGS) - -dnl GST_ALL_* -dnl vars common to for all internal objects (core libs, elements, applications) -dnl CFLAGS: -dnl - src and build dirs need to be added because every piece that gets built -dnl will need the GStreamer source and generated headers -dnl LIBS: XML doesn't need to be added because we don't explicitly use symbols -dnl from LibXML except for in the core library -GST_ALL_CXXFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir)/libs -I\$(top_builddir) $GLIB_CFLAGS \$(GLIB_EXTRA_CFLAGS) $EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS) \$(ERROR_CXXFLAGS)" -GST_ALL_CFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir)/libs -I\$(top_builddir) $GLIB_CFLAGS \$(GLIB_EXTRA_CFLAGS) $EXTRA_CFLAGS \$(GST_OPTION_CFLAGS) \$(ERROR_CFLAGS) \$(VISIBILITY_CFLAGS)" - -dnl FIXME: check if LTLIBINTL is needed everywhere -dnl I presume it is given that it contains the symbols that _() stuff maps to -GST_ALL_LIBS="$GLIB_LIBS $LTLIBINTL \$(GCOV_LIBS)" - -dnl LDFLAGS really should only contain flags, not libs - they get added before -dnl whatevertarget_LIBS and -L flags here affect the rest of the linking -GST_ALL_LDFLAGS="-no-undefined" -if test "x${enable_Bsymbolic}" = "xyes"; then - GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions" -fi - -AC_SUBST(GST_ALL_CFLAGS) -AC_SUBST(GST_ALL_CXXFLAGS) -AC_SUBST(GST_ALL_LIBS) -AC_SUBST(GST_ALL_LDFLAGS) - -dnl GST_LIB_LDFLAGS -dnl linker flags shared by all libraries -dnl LDFLAGS modifier defining exported symbols from built libraries -GST_LIB_LDFLAGS="" -AC_SUBST(GST_LIB_LDFLAGS) - -dnl GST_OBJ_* -dnl default vars for all internal objects built on libgstreamer -dnl includes GST_ALL_* -GST_OBJ_CFLAGS="\$(GST_ALL_CFLAGS) $GST_OBJ_STATIC_CFLAGS" -GST_OBJ_CXXFLAGS="\$(GST_ALL_CXXFLAGS) $GST_OBJ_STATIC_CFLAGS" -GST_OBJ_LIBS="\$(top_builddir)/gst/libgstreamer-$GST_API_VERSION.la \$(GST_ALL_LIBS)" -AC_SUBST(GST_OBJ_CFLAGS) -AC_SUBST(GST_OBJ_CXXFLAGS) -AC_SUBST(GST_OBJ_LIBS) - -dnl GST_PLUGIN_LDFLAGS -dnl LDFLAGS for plugins; includes GST_ALL_LDFLAGS -GST_PLUGIN_LDFLAGS="-module -avoid-version $GST_ALL_LDFLAGS" -AC_SUBST(GST_PLUGIN_LDFLAGS, "$GST_PLUGIN_LDFLAGS") - -dnl plugin scanner locations -AS_AC_EXPAND(GST_PLUGIN_SCANNER_INSTALLED,${libexecdir}/gstreamer-$GST_API_VERSION/gst-plugin-scanner) -AC_DEFINE_UNQUOTED(GST_PLUGIN_SCANNER_INSTALLED, - "$GST_PLUGIN_SCANNER_INSTALLED", [location of the installed gst-plugin-scanner]) -AC_SUBST(GST_PLUGIN_SCANNER_INSTALLED) - -case "${libexecdir}" in - *libexec) - GST_PLUGIN_SCANNER_SUBDIR="libexec";; - *lib) - GST_PLUGIN_SCANNER_SUBDIR="lib";; - *) - GST_PLUGIN_SCANNER_SUBDIR=`basename ${libexecdir}`; - if test -z "$GST_PLUGIN_SCANNER_SUBDIR"; then - AC_MSG_WARN([Couldn't determined libexecdir suffix, using "lib"]) - GST_PLUGIN_SCANNER_SUBDIR="lib"; - fi - ;; -esac -AC_DEFINE_UNQUOTED(GST_PLUGIN_SCANNER_SUBDIR, - "$GST_PLUGIN_SCANNER_SUBDIR", [libexecdir path component, used to find plugin-scanner on relocatable builds on windows]) - -case "${libdir}" in - *lib64) - GST_PLUGIN_SUBDIR="lib64";; - *lib32) - GST_PLUGIN_SUBDIR="lib32";; - *lib) - GST_PLUGIN_SUBDIR="lib";; - *) - GST_PLUGIN_SUBDIR=`basename ${libdir}`; - if test -z "$GST_PLUGIN_SUBDIR"; then - AC_MSG_WARN([Couldn't determined libdir suffix, using "lib"]) - GST_PLUGIN_SUBDIR="lib"; - fi - ;; -esac -AC_DEFINE_UNQUOTED(GST_PLUGIN_SUBDIR, - "$GST_PLUGIN_SUBDIR", [plugin directory path component, used to find plugins on relocatable builds on windows]) - -dnl completion helper locations -AS_AC_EXPAND(GST_COMPLETION_HELPER_INSTALLED,${libexecdir}/gstreamer-$GST_API_VERSION/gst-completion-helper) -AC_DEFINE_UNQUOTED(GST_COMPLETION_HELPER_INSTALLED, - "$GST_COMPLETION_HELPER_INSTALLED", [location of the installed gst-completion-helper]) -AC_SUBST(GST_COMPLETION_HELPER_INSTALLED) - -dnl ptp helper locations -AS_AC_EXPAND(GST_PTP_HELPER_INSTALLED,${libexecdir}/gstreamer-$GST_API_VERSION/gst-ptp-helper) -AC_DEFINE_UNQUOTED(GST_PTP_HELPER_INSTALLED, - "$GST_PTP_HELPER_INSTALLED", [location of the installed gst-ptp-helper]) -AC_SUBST(GST_PTP_HELPER_INSTALLED) - -dnl things for our internal libcheck (must be called even if building -dnl libcheck is disabled because it defines conditionals) -AG_GST_CHECK_CHECKS - -AC_CONFIG_FILES( -Makefile -data/Makefile -data/bash-completion/helpers/gst -gst/Makefile -gst/gstconfig.h -gst/gstversion.h -libs/gst/helpers/libgstreamer-gdb.py -gst/parse/Makefile -gst/printf/Makefile -libs/Makefile -libs/gst/Makefile -libs/gst/base/Makefile -libs/gst/check/Makefile -libs/gst/check/libcheck/Makefile -libs/gst/check/internal-check.h:libs/gst/check/libcheck/check.h.in -libs/gst/controller/Makefile -libs/gst/helpers/Makefile -libs/gst/net/Makefile -plugins/Makefile -plugins/elements/Makefile -plugins/tracers/Makefile -po/Makefile.in -tests/Makefile -tests/benchmarks/Makefile -tests/check/Makefile -tests/misc/Makefile -tests/examples/Makefile -tests/examples/adapter/Makefile -tests/examples/controller/Makefile -tests/examples/stepping/Makefile -tests/examples/helloworld/Makefile -tests/examples/memory/Makefile -tests/examples/netclock/Makefile -tests/examples/ptp/Makefile -tests/examples/streamiddemux/Makefile -tests/examples/streams/Makefile -tools/Makefile -common/Makefile -common/m4/Makefile -m4/Makefile -pkgconfig/Makefile -stamp.h -pkgconfig/gstreamer.pc -pkgconfig/gstreamer-uninstalled.pc -pkgconfig/gstreamer-base.pc -pkgconfig/gstreamer-base-uninstalled.pc -pkgconfig/gstreamer-check.pc -pkgconfig/gstreamer-check-uninstalled.pc -pkgconfig/gstreamer-controller.pc -pkgconfig/gstreamer-controller-uninstalled.pc -pkgconfig/gstreamer-net.pc -pkgconfig/gstreamer-net-uninstalled.pc -) - -AC_OUTPUT - -dnl negate for output -if test "x${GST_DISABLE_GST_DEBUG}" = "xno"; then enable_gst_debug="yes"; fi -if test "x${GST_DISABLE_GST_TRACER_HOOKS}" = "xno"; then enable_gst_tracer_hooks="yes"; fi -if test "x${GST_DISABLE_PARSE}" = "xno"; then enable_parse="yes"; fi -if test "x${GST_DISABLE_OPTION_PARSING}" = "xno"; then enable_option_parsing="yes"; fi -if test "x${GST_DISABLE_PLUGIN}" = "xno"; then enable_plugin="yes"; fi -if test "x${GST_DISABLE_REGISTRY}" = "xno"; then enable_registry="yes"; fi - -echo " - -Configuration - Version : ${VERSION} - Source code location : ${srcdir} - Prefix : ${prefix} - Compiler : ${CC} - Package name : ${GST_PACKAGE_NAME} - Package origin : ${GST_PACKAGE_ORIGIN} - - Debug logging : ${enable_gst_debug} - Tracing subsystem hooks : ${enable_gst_tracer_hooks} - Command-line parser : ${enable_parse} - Option parsing in gst_init : ${enable_option_parsing} - Plugin registry : ${enable_registry} - Plugin support : ${enable_plugin} - Static plugins : ${enable_static_plugins} - Unit testing support : ${BUILD_CHECK} - PTP clock support : ${HAVE_PTP} - libunwind support : ${HAVE_UNWIND} - libdw support : ${HAVE_DW} - - Debug : ${USE_DEBUG} - Profiling : ${USE_PROFILING} - - Building benchmarks : ${BUILD_BENCHMARKS} - Building examples : ${BUILD_EXAMPLES} - Building test apps : ${BUILD_TESTS} - Building tests that fail : ${BUILD_FAILING_TESTS} - Building tools : ${BUILD_TOOLS} -" diff --git a/data/Makefile.am b/data/Makefile.am deleted file mode 100644 index 16214fca74..0000000000 --- a/data/Makefile.am +++ /dev/null @@ -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 diff --git a/data/bash-completion/helpers/.gitignore b/data/bash-completion/helpers/.gitignore deleted file mode 100644 index 446b11b83c..0000000000 --- a/data/bash-completion/helpers/.gitignore +++ /dev/null @@ -1 +0,0 @@ -gst diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100644 index 9ab7439c0b..0000000000 --- a/docs/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -Makefile -Makefile.in -*.o -*.lo -*.la -.deps -.libs -version.entities -tmpl/ diff --git a/docs/plugins/.gitignore b/docs/plugins/.gitignore deleted file mode 100644 index 9272d598d6..0000000000 --- a/docs/plugins/.gitignore +++ /dev/null @@ -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 diff --git a/docs/random/.gitignore b/docs/random/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/random/autotools b/docs/random/autotools deleted file mode 100644 index 08e04fae68..0000000000 --- a/docs/random/autotools +++ /dev/null @@ -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. diff --git a/docs/random/omega/testing/.gitignore b/docs/random/omega/testing/.gitignore deleted file mode 100644 index 67c5711dbd..0000000000 --- a/docs/random/omega/testing/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -Makefile -Makefile.in -*.o -*.lo -*.la -.deps -.libs -gstobject diff --git a/gst/.gitignore b/gst/.gitignore deleted file mode 100644 index 606da2b3be..0000000000 --- a/gst/.gitignore +++ /dev/null @@ -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 diff --git a/gst/Makefile.am b/gst/Makefile.am deleted file mode 100644 index 1ca0765a47..0000000000 --- a/gst/Makefile.am +++ /dev/null @@ -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 \n#include \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 \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 diff --git a/gst/parse/.gitignore b/gst/parse/.gitignore deleted file mode 100644 index 5faa3b30c2..0000000000 --- a/gst/parse/.gitignore +++ /dev/null @@ -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 diff --git a/gst/parse/Makefile.am b/gst/parse/Makefile.am deleted file mode 100644 index 41e0b9017a..0000000000 --- a/gst/parse/Makefile.am +++ /dev/null @@ -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 ' >> 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 ' >> 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: - diff --git a/gst/printf/Makefile.am b/gst/printf/Makefile.am deleted file mode 100644 index b7307459d3..0000000000 --- a/gst/printf/Makefile.am +++ /dev/null @@ -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 diff --git a/libs/Makefile.am b/libs/Makefile.am deleted file mode 100644 index 062cb55aab..0000000000 --- a/libs/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = gst diff --git a/libs/gst/Makefile.am b/libs/gst/Makefile.am deleted file mode 100644 index c89aad1fdf..0000000000 --- a/libs/gst/Makefile.am +++ /dev/null @@ -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 diff --git a/libs/gst/base/.gitignore b/libs/gst/base/.gitignore deleted file mode 100644 index 94cedd08e1..0000000000 --- a/libs/gst/base/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -*.gcno -*.c.gcov -*.c.gcov -*.c.gcov.out -*.c.gcov -*.o -*.lo -*.la diff --git a/libs/gst/base/Makefile.am b/libs/gst/base/Makefile.am deleted file mode 100644 index 8439ebf144..0000000000 --- a/libs/gst/base/Makefile.am +++ /dev/null @@ -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 diff --git a/libs/gst/check/.gitignore b/libs/gst/check/.gitignore deleted file mode 100644 index b887a816f7..0000000000 --- a/libs/gst/check/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -*.c.gcov.out -*.c.gcov.out -*.o -*.lo -*.la -internal-check.h -exports.sym -libcheck/check.h diff --git a/libs/gst/check/Makefile.am b/libs/gst/check/Makefile.am deleted file mode 100644 index 335f5ad334..0000000000 --- a/libs/gst/check/Makefile.am +++ /dev/null @@ -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 diff --git a/libs/gst/check/libcheck/Makefile.am b/libs/gst/check/libcheck/Makefile.am deleted file mode 100644 index 4b90803780..0000000000 --- a/libs/gst/check/libcheck/Makefile.am +++ /dev/null @@ -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 diff --git a/libs/gst/controller/.gitignore b/libs/gst/controller/.gitignore deleted file mode 100644 index dc3e21b6b6..0000000000 --- a/libs/gst/controller/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -*.bb -*.bbg -*.da -*.def -*.gcno -*.o -*.lo -*.la diff --git a/libs/gst/controller/Makefile.am b/libs/gst/controller/Makefile.am deleted file mode 100644 index f5bdcac41a..0000000000 --- a/libs/gst/controller/Makefile.am +++ /dev/null @@ -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 - -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 diff --git a/libs/gst/helpers/.gitignore b/libs/gst/helpers/.gitignore deleted file mode 100644 index 87c36bf905..0000000000 --- a/libs/gst/helpers/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -gst-plugin-scanner -gst-completion-helper -gst-ptp-helper -libgstreamer-gdb.py -*.o diff --git a/libs/gst/helpers/Makefile.am b/libs/gst/helpers/Makefile.am deleted file mode 100644 index 7cde4ebffb..0000000000 --- a/libs/gst/helpers/Makefile.am +++ /dev/null @@ -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" diff --git a/libs/gst/net/.gitignore b/libs/gst/net/.gitignore deleted file mode 100644 index cf19bd8c5f..0000000000 --- a/libs/gst/net/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.o -*.lo -*.la diff --git a/libs/gst/net/Makefile.am b/libs/gst/net/Makefile.am deleted file mode 100644 index b1eba4b37b..0000000000 --- a/libs/gst/net/Makefile.am +++ /dev/null @@ -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 diff --git a/m4/.gitignore b/m4/.gitignore deleted file mode 100644 index 588dd023d4..0000000000 --- a/m4/.gitignore +++ /dev/null @@ -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 diff --git a/m4/Makefile.am b/m4/Makefile.am deleted file mode 100644 index af864e3bbb..0000000000 --- a/m4/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -EXTRA_DIST = $(wildcard *.m4) diff --git a/m4/check-checks.m4 b/m4/check-checks.m4 deleted file mode 100644 index 44baca4735..0000000000 --- a/m4/check-checks.m4 +++ /dev/null @@ -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 -#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 -#if HAVE_PTHREAD -#include -#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 -#if HAVE_PTHREAD -#include -#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 -#endif /* HAVE_PTHREAD */ -]) -AC_CHECK_TYPE(clockid_t, [], [ - AC_DEFINE([clockid_t], [int], [clockid_t]) - ], [ - AC_INCLUDES_DEFAULT -#if HAVE_PTHREAD -#include -#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") - -]) diff --git a/pkgconfig/.gitignore b/pkgconfig/.gitignore deleted file mode 100644 index 6fd0ef029e..0000000000 --- a/pkgconfig/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.pc diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am deleted file mode 100644 index 78a1e6534e..0000000000 --- a/pkgconfig/Makefile.am +++ /dev/null @@ -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) diff --git a/plugins/Makefile.am b/plugins/Makefile.am deleted file mode 100644 index 48a31fc417..0000000000 --- a/plugins/Makefile.am +++ /dev/null @@ -1,7 +0,0 @@ -SUBDIRS = elements - -if !GST_DISABLE_GST_TRACER_HOOKS -SUBDIRS += tracers -endif - -DIST_SUBDIRS = elements tracers diff --git a/plugins/elements/.gitignore b/plugins/elements/.gitignore deleted file mode 100644 index dc1483ec66..0000000000 --- a/plugins/elements/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -Makefile -Makefile.in -*.o -*.lo -*.la -.deps -.libs -*.bb -*.bbg -*.da -*.def -*.gcno diff --git a/plugins/elements/Makefile.am b/plugins/elements/Makefile.am deleted file mode 100644 index 1bbc35ff97..0000000000 --- a/plugins/elements/Makefile.am +++ /dev/null @@ -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) diff --git a/plugins/tracers/.gitignore b/plugins/tracers/.gitignore deleted file mode 100644 index dc1483ec66..0000000000 --- a/plugins/tracers/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -Makefile -Makefile.in -*.o -*.lo -*.la -.deps -.libs -*.bb -*.bbg -*.da -*.def -*.gcno diff --git a/plugins/tracers/Makefile.am b/plugins/tracers/Makefile.am deleted file mode 100644 index 576ccd5b06..0000000000 --- a/plugins/tracers/Makefile.am +++ /dev/null @@ -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) - diff --git a/po/.gitignore b/po/.gitignore deleted file mode 100644 index b2b4af51ff..0000000000 --- a/po/.gitignore +++ /dev/null @@ -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 diff --git a/po/Makevars b/po/Makevars deleted file mode 100644 index 8f4e7d09e7..0000000000 --- a/po/Makevars +++ /dev/null @@ -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 - diff --git a/po/POTFILES.in b/po/POTFILES similarity index 100% rename from po/POTFILES.in rename to po/POTFILES diff --git a/po/README b/po/README deleted file mode 100644 index 6572b9a1ce..0000000000 --- a/po/README +++ /dev/null @@ -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 diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin deleted file mode 100644 index 2436c49e78..0000000000 --- a/po/remove-potcdate.sin +++ /dev/null @@ -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 -} diff --git a/scripts/create-uninstalled-setup.sh b/scripts/create-uninstalled-setup.sh deleted file mode 100755 index 05aa7a11a7..0000000000 --- a/scripts/create-uninstalled-setup.sh +++ /dev/null @@ -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 -# -# 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 ; ./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 "===========================================================================================" - diff --git a/scripts/five-bugs-a-day.pl b/scripts/five-bugs-a-day.pl deleted file mode 100755 index 7a4b2844e3..0000000000 --- a/scripts/five-bugs-a-day.pl +++ /dev/null @@ -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 -# -# 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"; diff --git a/scripts/git-update.sh b/scripts/git-update.sh deleted file mode 100755 index 25cb7cc4fb..0000000000 --- a/scripts/git-update.sh +++ /dev/null @@ -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 - diff --git a/scripts/gst-uninstalled b/scripts/gst-uninstalled deleted file mode 100755 index 24c24814ee..0000000000 --- a/scripts/gst-uninstalled +++ /dev/null @@ -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 - diff --git a/stamp.h.in b/stamp.h.in deleted file mode 100644 index 9788f70238..0000000000 --- a/stamp.h.in +++ /dev/null @@ -1 +0,0 @@ -timestamp diff --git a/tests/.gitignore b/tests/.gitignore deleted file mode 100644 index 9e672fd984..0000000000 --- a/tests/.gitignore +++ /dev/null @@ -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 diff --git a/tests/Makefile.am b/tests/Makefile.am deleted file mode 100644 index 9fe291ccb8..0000000000 --- a/tests/Makefile.am +++ /dev/null @@ -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 diff --git a/tests/benchmarks/.gitignore b/tests/benchmarks/.gitignore deleted file mode 100644 index dd796d4ec5..0000000000 --- a/tests/benchmarks/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -Makefile -Makefile.in -caps -capsnego -complexity -controller -gstbufferstress -gstclockstress -gstpollstress -gstpoolstress -mass-elements -tracerserialize -*.gcno diff --git a/tests/benchmarks/Makefile.am b/tests/benchmarks/Makefile.am deleted file mode 100644 index 3d769f5c09..0000000000 --- a/tests/benchmarks/Makefile.am +++ /dev/null @@ -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) - diff --git a/tests/check/.gitignore b/tests/check/.gitignore deleted file mode 100644 index a14a3ec406..0000000000 --- a/tests/check/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -test-registry.* -*.gcno -*.gcda - -tools/.dirstamp -tools/gstinspect diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am deleted file mode 100644 index 4c9d3446f3..0000000000 --- a/tests/check/Makefile.am +++ /dev/null @@ -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 diff --git a/tests/check/elements/.gitignore b/tests/check/elements/.gitignore deleted file mode 100644 index 202745655c..0000000000 --- a/tests/check/elements/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -.dirstamp -capsfilter -concat -dataurisrc -fakesrc -fakesink -fdsrc -filesink -filesrc -funnel -identity -multiqueue -queue -queue2 -selector -streamiddemux -tee -valve -*.check.xml diff --git a/tests/check/generic/.gitignore b/tests/check/generic/.gitignore deleted file mode 100644 index 8ea4b3140d..0000000000 --- a/tests/check/generic/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -.dirstamp -sinks -states -*.check.xml diff --git a/tests/check/gst/.gitignore b/tests/check/gst/.gitignore deleted file mode 100644 index 4c8605823e..0000000000 --- a/tests/check/gst/.gitignore +++ /dev/null @@ -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 diff --git a/tests/check/libs/.gitignore b/tests/check/libs/.gitignore deleted file mode 100644 index cdf0c9d989..0000000000 --- a/tests/check/libs/.gitignore +++ /dev/null @@ -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 diff --git a/tests/check/pipelines/.gitignore b/tests/check/pipelines/.gitignore deleted file mode 100644 index 6ce366ef04..0000000000 --- a/tests/check/pipelines/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -.dirstamp -cleanup -seek -simple-launch-lines -stress -parse-launch -*.check.xml -parse-disabled -queue-error diff --git a/tests/examples/Makefile.am b/tests/examples/Makefile.am deleted file mode 100644 index ea563c8641..0000000000 --- a/tests/examples/Makefile.am +++ /dev/null @@ -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 diff --git a/tests/examples/adapter/.gitignore b/tests/examples/adapter/.gitignore deleted file mode 100644 index 1119593246..0000000000 --- a/tests/examples/adapter/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -adapter_test -*.gcno diff --git a/tests/examples/adapter/Makefile.am b/tests/examples/adapter/Makefile.am deleted file mode 100644 index cbd2987782..0000000000 --- a/tests/examples/adapter/Makefile.am +++ /dev/null @@ -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) diff --git a/tests/examples/controller/.gitignore b/tests/examples/controller/.gitignore deleted file mode 100644 index 2d3d9191f7..0000000000 --- a/tests/examples/controller/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -audio-example -control-sources -controller-graph -text-color-example -absolute-example -*.bb -*.bbg -*.da -*.gcno diff --git a/tests/examples/controller/Makefile.am b/tests/examples/controller/Makefile.am deleted file mode 100644 index 146416c05e..0000000000 --- a/tests/examples/controller/Makefile.am +++ /dev/null @@ -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 \ No newline at end of file diff --git a/tests/examples/helloworld/.gitignore b/tests/examples/helloworld/.gitignore deleted file mode 100644 index 2d86467749..0000000000 --- a/tests/examples/helloworld/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -helloworld -*.bb -*.bbg -*.da -helloworld-helloworld.gcno diff --git a/tests/examples/helloworld/Makefile.am b/tests/examples/helloworld/Makefile.am deleted file mode 100644 index a7d1bd9c25..0000000000 --- a/tests/examples/helloworld/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -noinst_PROGRAMS = helloworld - -helloworld_LDADD = $(GST_OBJ_LIBS) -helloworld_CFLAGS = $(GST_OBJ_CFLAGS) diff --git a/tests/examples/memory/.gitignore b/tests/examples/memory/.gitignore deleted file mode 100644 index 39e6071ccd..0000000000 --- a/tests/examples/memory/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -memory_test -*.gcno diff --git a/tests/examples/memory/Makefile.am b/tests/examples/memory/Makefile.am deleted file mode 100644 index b0399c0f6a..0000000000 --- a/tests/examples/memory/Makefile.am +++ /dev/null @@ -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) diff --git a/tests/examples/netclock/.gitignore b/tests/examples/netclock/.gitignore deleted file mode 100644 index bf0b3280e2..0000000000 --- a/tests/examples/netclock/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -netclock-server -netclock-client diff --git a/tests/examples/netclock/Makefile.am b/tests/examples/netclock/Makefile.am deleted file mode 100644 index 9506997581..0000000000 --- a/tests/examples/netclock/Makefile.am +++ /dev/null @@ -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) diff --git a/tests/examples/ptp/.gitignore b/tests/examples/ptp/.gitignore deleted file mode 100644 index b5b83be1a9..0000000000 --- a/tests/examples/ptp/.gitignore +++ /dev/null @@ -1 +0,0 @@ -ptp-print-times diff --git a/tests/examples/ptp/Makefile.am b/tests/examples/ptp/Makefile.am deleted file mode 100644 index d76b4ad4c7..0000000000 --- a/tests/examples/ptp/Makefile.am +++ /dev/null @@ -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) - diff --git a/tests/examples/stepping/.gitignore b/tests/examples/stepping/.gitignore deleted file mode 100644 index 0b661c7ba6..0000000000 --- a/tests/examples/stepping/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -framestep1 -*.bb -*.bbg -*.da -framestep1-framestep1.gcno diff --git a/tests/examples/stepping/Makefile.am b/tests/examples/stepping/Makefile.am deleted file mode 100644 index 2a6fbc15c3..0000000000 --- a/tests/examples/stepping/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -noinst_PROGRAMS = framestep1 - -framestep1_LDADD = $(GST_OBJ_LIBS) -framestep1_CFLAGS = $(GST_OBJ_CFLAGS) diff --git a/tests/examples/streamiddemux/Makefile.am b/tests/examples/streamiddemux/Makefile.am deleted file mode 100644 index e182d29880..0000000000 --- a/tests/examples/streamiddemux/Makefile.am +++ /dev/null @@ -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) - diff --git a/tests/examples/streams/.gitignore b/tests/examples/streams/.gitignore deleted file mode 100644 index d8cfe30d07..0000000000 --- a/tests/examples/streams/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -stream-status -rtpool-test -*.bb -*.bbg -*.da -stream-status-stream-status.gcno diff --git a/tests/examples/streams/Makefile.am b/tests/examples/streams/Makefile.am deleted file mode 100644 index e1f87acaaf..0000000000 --- a/tests/examples/streams/Makefile.am +++ /dev/null @@ -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 diff --git a/tests/misc/Makefile.am b/tests/misc/Makefile.am deleted file mode 100644 index bccbffd433..0000000000 --- a/tests/misc/Makefile.am +++ /dev/null @@ -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) diff --git a/tools/.gitignore b/tools/.gitignore deleted file mode 100644 index e4ea6b8eb3..0000000000 --- a/tools/.gitignore +++ /dev/null @@ -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 diff --git a/tools/Makefile.am b/tools/Makefile.am deleted file mode 100644 index caa5ab6031..0000000000 --- a/tools/Makefile.am +++ /dev/null @@ -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)