mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-12 12:21:30 +00:00
1c5a18e82c
Original commit message from CVS: Removal of all glib < 2.8 cruft since GStreamer core now requires glib >= 2.8 * codegen/argtypes.py: remove gstobject cruft from ObjectArg * configure.ac: Require glib >= 2.8.0 * gst/Makefile.am: * gst/pygstobject.c: * gst/pygstobject.h: Remove pygstobject.[ch] * gst/common.h: Don't include removed header file. * gst/gst.override: * gst/gstbin.override: * gst/gstbus.override: * gst/gstelement.override: * gst/gstelementfactory.override: * gst/gstmessage.override: * gst/gstobject.override: * gst/gstpad.override: * gst/interfaces.override: * gst/pygstiterator.c: (pygst_iterator_iter_next): Switch from using pygstobject* functions to using pygobject* functions. * gst/gstmodule.c: (sink_gstobject), (init_gst): Move GstObject sink function here and use standard gobject refcounting.
98 lines
2.9 KiB
Makefile
98 lines
2.9 KiB
Makefile
common_cflags = $(PYGTK_CFLAGS) $(GST_CFLAGS) $(PYGST_CFLAGS) -fno-strict-aliasing
|
|
common_libadd = $(GST_LIBS)
|
|
common_ldflags = -module -avoid-version
|
|
|
|
pkgpyexecdir = $(pyexecdir)/gst-$(GST_MAJORMINOR)/gst
|
|
|
|
# we install everything in pyexecdir; otherwise you end up with a mess for
|
|
# multilib
|
|
pygstdir = $(pkgpyexecdir)
|
|
pygst_PYTHON = __init__.py
|
|
|
|
pygstexecdir = $(pkgpyexecdir)
|
|
pygstexec_LTLIBRARIES = _gst.la $(interface_lib)
|
|
|
|
interface_lib = interfaces.la
|
|
|
|
defs_DATA = gst-types.defs \
|
|
gst-extrafuncs.defs \
|
|
libs.defs \
|
|
base.defs
|
|
defsdir = $(pkgdatadir)/$(GST_MAJORMINOR)/defs
|
|
|
|
noinst_HEADERS = common.h pygstvalue.h pygstminiobject.h pygstexception.h
|
|
|
|
versioned_overrides = \
|
|
gst-0.10.3.ignore \
|
|
gst-0.10.4.ignore \
|
|
gst-0.10.5.ignore \
|
|
gst-0.10.6.ignore \
|
|
gst-0.10.7.ignore
|
|
|
|
INCLUDES = $(PYTHON_INCLUDES)
|
|
EXTRA_DIST = $(defs_DATA) $(versioned_overrides) common.h arg-types.py
|
|
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
|
GEN_FILES = arg-types.py gst-types.defs libs.defs base.defs
|
|
|
|
# GStreamer bindings
|
|
_gst_la_CFLAGS = $(common_cflags)
|
|
_gst_la_LIBADD = $(common_libadd) $(GST_BASE_LIBS)
|
|
_gst_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gst \
|
|
$(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) $(GST_NET_LIBS) $(GST_DP_LIBS)
|
|
_gst_la_SOURCES = \
|
|
gst-argtypes.c \
|
|
gstmodule.c \
|
|
pygstiterator.c \
|
|
pygstminiobject.c \
|
|
pygstvalue.c \
|
|
pygstexception.c
|
|
|
|
nodist__gst_la_SOURCES = gst.c
|
|
GST_OVERRIDES = \
|
|
gst.override \
|
|
gstversion.override \
|
|
gstbin.override \
|
|
gstbuffer.override \
|
|
gstbus.override \
|
|
gstevent.override \
|
|
gstcaps.override \
|
|
gstelement.override \
|
|
gstelementfactory.override \
|
|
gstmessage.override \
|
|
gstobject.override \
|
|
gstquery.override \
|
|
gstpad.override \
|
|
gststructure.override \
|
|
gsttaglist.override \
|
|
gstlibs.override \
|
|
gstbase.override
|
|
|
|
GST_DEFS = gst.defs gst-types.defs gst-extrafuncs.defs libs.defs base.defs
|
|
CLEANFILES = gst.c
|
|
EXTRA_DIST += $(GST_DEFS) $(GST_OVERRIDES) gstversion.override.in
|
|
gst.c: $(GST_DEFS) $(GST_OVERRIDES) $(GEN_FILES) gstversion.override
|
|
|
|
# GStreamer interfaces bindings
|
|
interfaces_la_CFLAGS = $(common_cflags) $(GST_PLUGINS_BASE_CFLAGS)
|
|
interfaces_la_LIBADD = $(common_libadd) -lgstinterfaces-$(GST_MAJORMINOR)
|
|
interfaces_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initinterface $(GST_PLUGINS_BASE_LIBS)
|
|
interfaces_la_SOURCES = interfacesmodule.c
|
|
nodist_interfaces_la_SOURCES = interfaces.c
|
|
INTERFACES_OVERRIDES = interfaces.override xoverlay.override
|
|
INTERFACES_DEFS = interfaces.defs xoverlay.defs xwindowlistener.defs
|
|
CLEANFILES += interfaces.c
|
|
EXTRA_DIST += $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES)
|
|
interfaces.c: $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES) $(GEN_FILES)
|
|
|
|
.defs.c:
|
|
(cd $(srcdir) \
|
|
&& python $(top_srcdir)/codegen/codegen.py \
|
|
--load-types $(srcdir)/arg-types.py \
|
|
--register $(srcdir)/gst-types.defs \
|
|
--override $*.override \
|
|
--extendpath $(top_builddir)/gst/ \
|
|
--prefix py$* $*.defs) > gen-$*.c \
|
|
&& cp gen-$*.c $*.c \
|
|
&& rm -f gen-$*.c
|
|
|
|
SUBDIRS = extend
|