diff options
-rw-r--r-- | .gitignore | 54 | ||||
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile.am | 40 | ||||
-rw-r--r-- | acinclude.m4 | 132 | ||||
-rwxr-xr-x | autogen.sh | 125 | ||||
m--------- | common | 0 | ||||
-rw-r--r-- | configure.ac | 153 | ||||
-rwxr-xr-x | env | 15 | ||||
-rw-r--r-- | gi/Makefile.am | 4 | ||||
-rw-r--r-- | gi/overrides/Makefile.am | 40 | ||||
-rw-r--r-- | old_examples/.gitignore | 2 | ||||
-rw-r--r-- | old_examples/Makefile.am | 23 | ||||
-rw-r--r-- | plugin/Makefile.am | 16 | ||||
-rw-r--r-- | pygst.py.in | 63 | ||||
-rw-r--r-- | testsuite/.gitignore | 2 | ||||
-rw-r--r-- | testsuite/Makefile.am | 54 |
16 files changed, 0 insertions, 726 deletions
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 787c524..0000000 --- a/.gitignore +++ /dev/null @@ -1,54 +0,0 @@ -Makefile -Makefile.in -aclocal.m4 -autoregen.sh -compile -config.cache -config.guess -config.h -config.log -config.status -config.sub -configure -configure.scan -libtool -ltconfig -ltmain.sh -stamp-h* -stamp.h -version.h -config.h.in -install-sh -missing -mkinstalldirs -depcomp -intl -py-compile -autom4te.cache -README -AUTHORS -NEWS -TODO -INSTALL - -.deps -.libs -.exrc -*_defs.c -*_impl.c -*.pyc -*.pyo -*.lo -*.la -*~ -*.so -gst-python*.tar.* - -pygst.py -gst-libs -log - -m4/* - -/gst/__init__.py -/build diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 596ee78..0000000 --- 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 a0a529e..0000000 --- a/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -SUBDIRS = common gi plugin testsuite - -# Examples and testsuite need to be ported to 1.0 -#examples testsuite - -ACLOCAL_AMFLAGS = -I m4 -I common/m4 - -include $(top_srcdir)/common/release.mak - -# Examples and testsuite need to be ported to 1.0 -# check-valgrind: -# cd testsuite/ && make check-valgrind - -check-torture: - @true - -#include $(top_srcdir)/common/coverage/lcov.mak - -CRUFT_FILES = \ - $(top_builddir)/common/shave \ - $(top_builddir)/common/shave-libtool \ - $(top_builddir)/common/m4/libtool.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 - -include $(top_srcdir)/common/cruft.mak - -all-local: check-cruft - -EXTRA_DIST = \ - configure.ac autogen.sh depcomp \ - RELEASE gst-python.doap \ - meson.build \ - meson_options.txt \ - pygst.py.in \ - examples/plugins/python/sinkelement.py \ - examples/plugins/python/identity.py \ - examples/helloworld.py diff --git a/acinclude.m4 b/acinclude.m4 deleted file mode 100644 index c0d1a5e..0000000 --- a/acinclude.m4 +++ /dev/null @@ -1,132 +0,0 @@ -## this one is commonly used with AM_PATH_PYTHONDIR ... -dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]]) -dnl Check if a module containing a given symbol is visible to python. -AC_DEFUN([AM_CHECK_PYMOD], -[AC_REQUIRE([AM_PATH_PYTHON]) -py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'` -AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1) -AC_CACHE_VAL(py_cv_mod_$py_mod_var, [ -ifelse([$2],[], [prog=" -import sys -try: - import $1 -except ImportError: - sys.exit(1) -except: - sys.exit(0) -sys.exit(0)"], [prog=" -import $1 -$1.$2"]) -if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC - then - eval "py_cv_mod_$py_mod_var=yes" - else - eval "py_cv_mod_$py_mod_var=no" - fi -]) -py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` -if test "x$py_val" != xno; then - AC_MSG_RESULT(yes) - ifelse([$3], [],, [$3 -])dnl -else - AC_MSG_RESULT(no) - ifelse([$4], [],, [$4 -])dnl -fi -]) - -dnl a macro to check for ability to create python extensions -dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE]) -dnl function also defines PYTHON_INCLUDES -AC_DEFUN([AM_CHECK_PYTHON_HEADERS], -[AC_REQUIRE([AM_PATH_PYTHON]) -AC_MSG_CHECKING(for headers required to compile python extensions) -dnl deduce PYTHON_INCLUDES -py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"` -py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"` -if $PYTHON-config --help 1>/dev/null 2>/dev/null; then - PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null` - if $PYTHON-config --abiflags 1>/dev/null 2>/dev/null; then - PYTHON_ABI_FLAGS=`$PYTHON-config --abiflags 2>/dev/null` - else - PYTHON_ABI_FLAGS= - fi -else - PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" - if test "$py_prefix" != "$py_exec_prefix"; then - PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" - fi -fi -AC_SUBST(PYTHON_INCLUDES) -dnl check if the headers exist: -save_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" -AC_TRY_CPP([#include <Python.h>],dnl -[AC_MSG_RESULT(found) -$1],dnl -[AC_MSG_RESULT(not found) -$2]) -CPPFLAGS="$save_CPPFLAGS" -]) - -dnl a macro to check for ability to embed python -dnl AM_CHECK_PYTHON_LIBS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE]) -dnl function also defines PYTHON_LIBS -AC_DEFUN([AM_CHECK_PYTHON_LIBS], -[AC_REQUIRE([AM_CHECK_PYTHON_HEADERS]) -AC_MSG_CHECKING(for libraries required to embed python) - -dnl deduce PYTHON_LIBS -if $PYTHON-config --help 1>/dev/null 2>/dev/null; then - PYTHON_LIBS=`$PYTHON-config --ldflags 2>/dev/null` - PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig as s; print(s.get_python_lib(standard_lib=1))"` - if echo "$host_os" | grep darwin >/dev/null 2>&1; then - dnl OSX is a pain. Python as shipped by apple installs libpython in /usr/lib - dnl so we hardcode that. Other systems can use --with-libpython-dir to - dnl overrid this. - PYTHON_LIB_LOC=/usr/lib - else - PYTHON_LIB_LOC=$PYTHON_LIB/config - - # default to prefix/lib for distros that don't have a link in - # .../pythonX.Y/config/ - if test ! -e $PYTHON_LIB_LOC/libpython${PYTHON_VERSION}${PYTHON_ABI_FLAGS}.so; then - if test -e ${py_prefix}/lib64/libpython${PYTHON_VERSION}${PYTHON_ABI_FLAGS}.so; then - PYTHON_LIB_LOC=${py_prefix}/lib64 - else - PYTHON_LIB_LOC=${py_prefix}/lib - fi - fi - fi -else - PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}" - PYTHON_LIB_LOC="${py_prefix}/lib" -fi - -AC_ARG_WITH([libpython-dir], - AS_HELP_STRING([--with-libpython-dir], [the directory containing libpython${PYTHON_VERSION}]), - [ - PYTHON_LIB_LOC=`echo "$withval" | sed -e 's/\/$//g'` - ] -) - -if echo "$host_os" | grep darwin >/dev/null 2>&1; then - dnl workaround libtool brokenness under OSX - PYTHON_LIB_SUFFIX=\\\"dylib\\\" -else - PYTHON_LIB_SUFFIX=G_MODULE_SUFFIX -fi - -AC_SUBST(PYTHON_LIBS) -AC_SUBST(PYTHON_LIB_LOC) -AC_SUBST(PYTHON_ABI_FLAGS) -AC_SUBST(PYTHON_LIB_SUFFIX) -dnl check if the headers exist: -save_LIBS="$LIBS" -LIBS="$LIBS $PYTHON_LIBS" -AC_TRY_LINK_FUNC(Py_Initialize, dnl - [LIBS="$save_LIBS"; AC_MSG_RESULT(yes); $1], dnl - [LIBS="$save_LIBS"; AC_MSG_RESULT(no); $2]) - -]) diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 2f27bd9..0000000 --- a/autogen.sh +++ /dev/null @@ -1,125 +0,0 @@ -#!/bin/sh -# -# gst-python 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=gst-python -srcfile=gst-python.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/gst-python-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 -# we need AM_CHECK_PYTHON_HEADERS and AM_CHECK_PYTHON_LIBS from acinclude.m4 -# 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 -Subproject 59cb678164719ff59dcf6c8b93df4617a1075d1 diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 0bc4965..0000000 --- a/configure.ac +++ /dev/null @@ -1,153 +0,0 @@ -AC_PREREQ([2.68]) - -dnl initialize autoconf -dnl when going to/from release please set the nano (fourth number) right ! -dnl releases only do Wall, cvs and prerelease does Werror too -AC_INIT(GStreamer GObject Introspection overrides for Python , 1.17.0.1, - http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer, - gst-python) - -AG_GST_INIT - -dnl initialize automake -AM_INIT_AUTOMAKE([-Wno-portability 1.11 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 ? -# FIXME Port testsuite to 1.0 -# AC_CONFIG_SRCDIR([testsuite/common.py]) - -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 use pretty build output with automake >= 1.11 -m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])], - [AM_DEFAULT_VERBOSITY=1 - AC_SUBST(AM_DEFAULT_VERBOSITY)]) - -dnl Add parameters for aclocal -AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4") - -dnl required versions of other packages -dnl Note that they are runtime requirements -AC_SUBST(GST_REQ, 1.17.0.1) -AC_SUBST(PYGOBJECT_REQ, 3.8) - -AC_DISABLE_STATIC - -LT_PREREQ([2.2.6]) -LT_INIT([dlopen win32-dll disable-static]) - -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 check for python -dnl AM_PATH_PYTHON(2.7) -AM_PATH_PYTHON -AC_MSG_CHECKING(for python >= 2.7) -prog=" -import sys, string -minver = (2,7,0,'final',0) -if sys.version_info < minver: - sys.exit(1) -sys.exit(0)" - -dnl check for GStreamer -GST_API_VERSION=1.0 -AC_SUBST(GST_API_VERSION) -PKG_CHECK_MODULES(GST, gstreamer-$GST_API_VERSION >= $GST_REQ) -AC_DEFINE_UNQUOTED(GST_API_VERSION, "$GST_API_VERSION", [Gst API version]) -GST_CFLAGS="$GST_CFLAGS $GLIB_EXTRA_CFLAGS" -AC_SUBST(GST_CFLAGS) -AC_SUBST(GST_LIBS) - - -dnl check for pygobject -PKG_CHECK_MODULES(PYGOBJECT, pygobject-3.0 >= $PYGOBJECT_REQ) -AC_SUBST(PYGOBJECT_CFLAGS) - -dnl check for python -if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC -then - AC_MSG_RESULT(okay) -else - AC_MSG_ERROR(too old) -fi - -# - 'SO' for PyPy, CPython 2.7-3.2 -# - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754) -# - fallback to '.so' -PYTHON_SO=`$PYTHON -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"` -AC_SUBST(PYTHON_SO) - -AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) -AS_AC_EXPAND(PYTHONDIR, $pythondir) -AS_AC_EXPAND(PYEXECDIR, $pyexecdir) - -AC_ARG_WITH([pygi_overrides_dir], - AC_HELP_STRING([--with-pygi-overrides-dir], [Path to pygobject overrides directory])) - -AC_MSG_CHECKING(for pygobject overrides directory) -if test "x$with_pygi_overrides_dir" = "x" ; then - overrides_dir="${pyexecdir}/gi/overrides" -else - overrides_dir="$with_pygi_overrides_dir" -fi - -PYGI_OVERRIDES_DIR="$overrides_dir" -AC_SUBST(PYGI_OVERRIDES_DIR) -AC_MSG_RESULT($PYGI_OVERRIDES_DIR) - -dnl check for GStreamer -GST_API_VERSION=1.0 -AC_SUBST(GST_API_VERSION) -PKG_CHECK_MODULES(GST, gstreamer-$GST_API_VERSION >= $GST_REQ) -AC_DEFINE_UNQUOTED(GST_API_VERSION, "$GST_API_VERSION", [Gst API version]) -GST_CFLAGS="$GST_CFLAGS $GLIB_EXTRA_CFLAGS" -AC_SUBST(GST_CFLAGS) -AC_SUBST(GST_LIBS) - -AG_GST_SET_PLUGINDIR - -dnl check for pygobject -PKG_CHECK_MODULES(PYGOBJECT, pygobject-3.0 >= $PYGOBJECT_REQ) -AC_SUBST(PYGOBJECT_CFLAGS) - -dnl and set the override directory -AC_ARG_WITH([pygi_overrides_dir], - AC_HELP_STRING([--with-pygi-overrides-dir], [Path to pygobject overrides directory])) - -AM_CHECK_PYTHON_LIBS(, AC_MSG_ERROR([Python libs not found. Windows requires Python modules to be explicitly linked to libpython.])) - -AG_GST_VALGRIND_CHECK - -dnl set release date/time -#AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO], - #["${srcdir}/gst-python.doap"], - #[$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO]) - -# Examples and testsuite need to be ported to 1.0 -# examples/Makefile -# testsuite/Makefile - -AC_OUTPUT([ - Makefile - common/Makefile - common/m4/Makefile - gi/Makefile - plugin/Makefile - testsuite/Makefile - gi/overrides/Makefile -]) @@ -1,15 +0,0 @@ -#!/bin/bash - -thisdir=$(cd `dirname $0` && pwd) - -if [[ -n $PYTHONPATH ]]; then - export PYTHONPATH=$thisdir:$PYTHONPATH -else - export PYTHONPATH=$thisdir -fi - -export PKG_CONFIG_PATH=$thisdir/pkgconfig:$PKG_CONFIG_PATH - -export PACKAGES="pygst $PACKAGES" - -exec "$@" diff --git a/gi/Makefile.am b/gi/Makefile.am deleted file mode 100644 index d91fac6..0000000 --- a/gi/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -SUBDIRS = overrides - -EXTRA_DIST = \ - meson.build diff --git a/gi/overrides/Makefile.am b/gi/overrides/Makefile.am deleted file mode 100644 index b53df8e..0000000 --- a/gi/overrides/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -common_cflags = $(PYGOBJECT_CFLAGS) $(GST_CFLAGS) -fno-strict-aliasing -common_libadd = $(GST_LIBS) $(PYGOBJECT_LIBS) -common_ldflags = -module -avoid-version -shrext $(PYTHON_SO) - -# We install everything in the gi/overrides folder -pygioverridesdir = $(PYGI_OVERRIDES_DIR) -pygioverrides_PYTHON = Gst.py GstPbutils.py - -pygioverridesexecdir = $(PYGI_OVERRIDES_DIR) - -EXTRA_DIST = \ - meson.build \ - Gst.py \ - GstPbutils.py - -AM_CPPFLAGS = $(PYTHON_INCLUDES) - -pygioverridesexec_LTLIBRARIES = _gi_gst.la - -_gi_gst_la_SOURCES = gstmodule.c -_gi_gst_la_CFLAGS = $(common_cflags) -_gi_gst_la_LIBADD = $(common_libadd) -_gi_gst_la_LDFLAGS = $(common_ldflags) - -# if we build in a separate tree, we need to symlink the *.so files from the -# source tree; Python does not accept the extensions and modules in different -# paths -build_pylinks: - for f in $(pygioverrides_PYTHON); do \ - [ -e $(builddir)/$$f ] || $(LN_S) -f $(srcdir)/$$f $(builddir)/$$f; \ - done - -all: $(pygioverridesexec_LTLIBRARIES:.la=$(PYTHON_SO)) build_pylinks -check-local: $(pygioverridesexec_LTLIBRARIES:.la=$(PYTHON_SO)) build_pylinks -clean-local: - rm -f $(pygioverridesexec_LTLIBRARIES:.la=$(PYTHON_SO)) - -%$(PYTHON_SO): %.la - $(LN_S) -f .libs/$@ $@ - diff --git a/old_examples/.gitignore b/old_examples/.gitignore deleted file mode 100644 index 3dda729..0000000 --- a/old_examples/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile.in -Makefile diff --git a/old_examples/Makefile.am b/old_examples/Makefile.am deleted file mode 100644 index 629b68e..0000000 --- a/old_examples/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -examplesdir = $(pkgdatadir)/$(GST_MAJORMINOR)/examples -examples_DATA = \ - audioconcat.py \ - audio-controller.py \ - bps.py \ - cp.py \ - debugslider.py \ - f2f.py \ - filesrc.py \ - fvumeter.py \ - gst-discover \ - gstfile.py \ - helloworld.py \ - mixer.py \ - play.py \ - pipeline-tester \ - remuxer.py \ - sinkelement.py \ - vumeter.py \ - decodebin.py \ - maemogst.py - -EXTRA_DIST = $(examples_DATA) diff --git a/plugin/Makefile.am b/plugin/Makefile.am deleted file mode 100644 index e6452e1..0000000 --- a/plugin/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -plugin_LTLIBRARIES = libgstpython.la - -INCLUDES = $(PYGOBJECT_CFLAGS) $(GST_CFLAGS)\ --DPYTHON_VERSION=\"$(PYTHON_VERSION)\" \ - -DPY_LIB_LOC="\"$(PYTHON_LIB_LOC)\"" \ - -DPY_ABI_FLAGS="\"$(PYTHON_ABI_FLAGS)\"" \ - -DPY_LIB_SUFFIX=$(PYTHON_LIB_SUFFIX) \ - $(PYTHON_INCLUDES) - -libgstpython_la_SOURCES = gstpythonplugin.c -libgstpython_la_LDFLAGS = -avoid-version -shrext $(PYTHON_SO) -libgstpython_la_LIBADD = $(PYTHON_LIBS) $(PYGOBJECT_LIBS) $(GST_LIBS) -libgstpython_la_CFLAGS = $(GST_CFLAGS) $(PYGOBJECT_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(PYTHON_INCLUDES) - -EXTRA_DIST = \ - meson.build diff --git a/pygst.py.in b/pygst.py.in deleted file mode 100644 index 61aaa20..0000000 --- a/pygst.py.in +++ /dev/null @@ -1,63 +0,0 @@ -# -*- Mode: Python; py-indent-offset: 4 -*- -# pygst - Python bindings for the GStreamer multimedia framework. -# Copyright (C) 1998-2002 James Henstridge -# (C) 2005 Edward Hervey -# -# pygst.py: pygst version selection code. -# -# -# This library 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 Street, Fifth Floor, -# Boston, MA 02110-1301, USA. -# -# This allows parallel installation of gst-python -# -# In order to have backward compatibility - -import sys - -__all__ = ['require'] - -_pygst_dir = '@PYGSTDIR@' - -_pygst_version = '@GST_MAJORMINOR@' - -_pygst_required_version = None - -class RequiredVersionError(ValueError, AssertionError): - # AssertionError is subclassed for compatibility reasons. - pass - - -def require(version): - global _pygst_required_version - - if _pygst_required_version != None: - if _pygst_required_version != version: - raise RequiredVersionError, "a different version of gst was already required" - else: - return - - if sys.modules.has_key('gst'): - raise RequiredVersionError, "pygst.require() must be called before importing gst" - - if version != _pygst_version: - raise RequiredVersionError, "Only version '%s' is available" % _pygst_version - - # move the pygst path to the front - while _pygst_dir in sys.path: - sys.path.remove(_pygst_dir) - sys.path.insert(0, _pygst_dir) - - _pygst_required_version = version diff --git a/testsuite/.gitignore b/testsuite/.gitignore deleted file mode 100644 index b88dc34..0000000 --- a/testsuite/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.pyc -log diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am deleted file mode 100644 index a59fe47..0000000 --- a/testsuite/Makefile.am +++ /dev/null @@ -1,54 +0,0 @@ -# Don't try to use wildcards to replace the list of tests below. -# http://www.gnu.org/software/automake/manual/automake.html#Wildcards -# Keep this list sorted! - -TEST_ENVIRONMENT = \ - GST_OVERRIDE_SRC_PATH="$(abs_top_srcdir)/gi/overrides" \ - GST_OVERRIDE_BUILD_PATH="$(abs_top_builddir)/gi/overrides" - -tests = \ - test_gst.py \ - test_types.py - -EXTRA_DIST = \ - __init__.py \ - cleanup.py \ - common.py \ - gstpython.supp \ - meson.build \ - overrides_hack.py \ - python.supp \ - runtests.py \ - $(tests) - -clean-local: - rm -rf *.pyc *.pyo - -check-local: - $(TEST_ENVIRONMENT) $(PYTHON) $(srcdir)/runtests.py $(tests) - -%.check: % - $(TEST_ENVIRONMENT) $(PYTHON) $(srcdir)/runtests.py $* -%.forever: % - $(srcdir)/cleanup.py - @while true; do \ - $(PYTHON) $(srcdir)/runtests.py $* || break; done - @rm -fr *.pyc - -# valgrind all tests -valgrind: $(tests) - @echo "Valgrinding tests ..." - @failed=0; \ - for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(tests)); do \ - make $$t.valgrind; \ - if test "$$?" -ne 0; then \ - echo "Valgrind error for test $$t"; \ - failed=`expr $$failed + 1`; \ - whicht="$$whicht $$t"; \ - fi; \ - done; \ - if test "$$failed" -ne 0; then \ - echo "$$failed tests had leaks under valgrind:"; \ - echo "$$whicht"; \ - false; \ - fi |