2006-08-21 11:31:51 +00:00
|
|
|
common_cflags = $(PYGOBJECT_CFLAGS) $(GST_CFLAGS) $(GST_OPTION_CFLAGS) -fno-strict-aliasing
|
2006-07-03 13:32:08 +00:00
|
|
|
common_libadd = $(GST_LIBS) $(GST_OPTION_LIBS)
|
2004-03-24 10:31:35 +00:00
|
|
|
common_ldflags = -module -avoid-version
|
2004-03-15 14:25:10 +00:00
|
|
|
|
2005-07-01 10:47:25 +00:00
|
|
|
pkgpyexecdir = $(pyexecdir)/gst-$(GST_MAJORMINOR)/gst
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2005-12-22 15:56:41 +00:00
|
|
|
# we install everything in pyexecdir; otherwise you end up with a mess for
|
|
|
|
# multilib
|
|
|
|
pygstdir = $(pkgpyexecdir)
|
2004-02-23 18:19:38 +00:00
|
|
|
pygst_PYTHON = __init__.py
|
|
|
|
|
|
|
|
pygstexecdir = $(pkgpyexecdir)
|
2008-01-01 13:22:21 +00:00
|
|
|
pygstexec_LTLIBRARIES = _gst.la $(interface_lib) $(pbutils_lib)
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2004-03-18 17:07:12 +00:00
|
|
|
interface_lib = interfaces.la
|
2008-01-01 13:22:21 +00:00
|
|
|
pbutils_lib = pbutils.la
|
2004-03-18 17:07:12 +00:00
|
|
|
|
2005-06-17 10:59:47 +00:00
|
|
|
defs_DATA = gst-types.defs \
|
2005-08-03 16:54:57 +00:00
|
|
|
gst-extrafuncs.defs \
|
2006-01-01 21:18:28 +00:00
|
|
|
libs.defs \
|
2008-01-01 13:22:21 +00:00
|
|
|
base.defs \
|
|
|
|
pbutils.defs
|
2005-12-01 19:15:26 +00:00
|
|
|
defsdir = $(pkgdatadir)/$(GST_MAJORMINOR)/defs
|
2004-03-18 17:07:12 +00:00
|
|
|
|
2006-07-02 15:25:04 +00:00
|
|
|
noinst_HEADERS = common.h pygstvalue.h pygstminiobject.h pygstexception.h
|
2004-06-21 09:15:42 +00:00
|
|
|
|
2006-03-14 12:56:46 +00:00
|
|
|
versioned_overrides = \
|
2008-07-02 11:23:39 +00:00
|
|
|
gst-0.10.20.ignore \
|
2008-12-09 11:48:15 +00:00
|
|
|
gst-0.10.21.ignore \
|
2008-12-30 19:20:31 +00:00
|
|
|
gst-0.10.22.ignore \
|
2009-04-17 16:51:40 +00:00
|
|
|
gst-0.10.23.ignore \
|
2009-07-01 08:58:42 +00:00
|
|
|
gst-0.10.24.ignore \
|
2009-09-16 14:23:27 +00:00
|
|
|
gst-0.10.25.ignore \
|
2010-01-15 16:44:41 +00:00
|
|
|
gst-0.10.26.ignore \
|
2009-04-17 17:28:08 +00:00
|
|
|
gst-pb-0.10.23.ignore \
|
2009-09-16 14:23:27 +00:00
|
|
|
gst-pb-0.10.25.ignore \
|
2010-01-15 16:44:41 +00:00
|
|
|
gst-pb-0.10.26.ignore \
|
2007-05-23 09:49:07 +00:00
|
|
|
gst-disable-loadsave.ignore
|
2006-03-14 12:56:46 +00:00
|
|
|
|
2004-05-03 10:46:49 +00:00
|
|
|
INCLUDES = $(PYTHON_INCLUDES)
|
2006-03-14 12:56:46 +00:00
|
|
|
EXTRA_DIST = $(defs_DATA) $(versioned_overrides) common.h arg-types.py
|
2008-01-01 13:22:21 +00:00
|
|
|
GEN_FILES = arg-types.py gst-types.defs libs.defs base.defs pbutils.defs
|
2004-03-24 10:31:35 +00:00
|
|
|
|
|
|
|
# GStreamer bindings
|
|
|
|
_gst_la_CFLAGS = $(common_cflags)
|
2006-01-01 21:18:28 +00:00
|
|
|
_gst_la_LIBADD = $(common_libadd) $(GST_BASE_LIBS)
|
2009-08-21 14:22:38 +00:00
|
|
|
_gst_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "^(init_gst|_PyGObject_API|pygstminiobject_).*" \
|
2006-01-30 12:57:02 +00:00
|
|
|
$(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) $(GST_NET_LIBS) $(GST_DP_LIBS)
|
2005-10-07 01:21:57 +00:00
|
|
|
_gst_la_SOURCES = \
|
|
|
|
gst-argtypes.c \
|
|
|
|
gstmodule.c \
|
|
|
|
pygstiterator.c \
|
|
|
|
pygstminiobject.c \
|
2005-10-13 10:41:06 +00:00
|
|
|
pygstvalue.c \
|
|
|
|
pygstexception.c
|
2005-10-07 01:21:57 +00:00
|
|
|
|
2004-03-15 14:25:10 +00:00
|
|
|
nodist__gst_la_SOURCES = gst.c
|
2005-01-01 15:23:42 +00:00
|
|
|
GST_OVERRIDES = \
|
|
|
|
gst.override \
|
|
|
|
gstbin.override \
|
|
|
|
gstbuffer.override \
|
gst/: Added GError wrapping,
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Added GError wrapping,
Removed data field from Buffer,
Added virtual methods to object
Updated to latest API
* gst/gst.override:
wrapped gst_plugin_get_feature_list(), gst_uri_handler_get_protocols(),
gst_registry_pool_list()
* gst/gstbuffer.override:
gst.Buffer() works
get/setters fixed
wrapped gst_buffer_stamp()
* gst/gstbus.override:
wrapped gst_bus_set_sync_handler() and gst_bus_add_watch()
* gst/gstelement.override:
wrapped gst_element_send_event(), gst_element_factory_get_pad_templates()
gst_element_query_convert(), gst_element_get_query_types()
* gst/gstevent.override:
wrapped gst_event_discont_get_value()
* gst/gstmessage.override:
wrapped gst_message_parse_state_changed(), gst_message_parse_error(),
gst_message_parse_warning(), gst_message_parse_tag()
* gst/gstmodule.c:
Added registration of new fundamental type with pygtk
* gst/gstpad.override:
wrapped gst_pad_query(), gst_pad_[add|remove]_[data|event|buffer]_probe(),
gst_pad_query_position(), gst_pad_query_convert()
* gst/gstquery.override:
wrapped gst_query_parse_position(), gst_query_parse_convert(),
gst_query_parse_seeking_query(), gst_query_parse_seeking_reponse()
* gst/pygstminiobject.c:
fixes
* gst/Makefile.am:
added gstbus.override, gstmessage.override, gstquery.override
* testsuite/test_buffer.py:
* testsuite/test_element.py:
* testsuite/test_event.py:
* testsuite/test_pipeline.py:
Updating testsuites
2005-07-12 09:45:58 +00:00
|
|
|
gstbus.override \
|
|
|
|
gstevent.override \
|
2005-01-01 15:23:42 +00:00
|
|
|
gstcaps.override \
|
|
|
|
gstelement.override \
|
2005-10-13 10:41:06 +00:00
|
|
|
gstelementfactory.override \
|
gst/: Added GError wrapping,
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Added GError wrapping,
Removed data field from Buffer,
Added virtual methods to object
Updated to latest API
* gst/gst.override:
wrapped gst_plugin_get_feature_list(), gst_uri_handler_get_protocols(),
gst_registry_pool_list()
* gst/gstbuffer.override:
gst.Buffer() works
get/setters fixed
wrapped gst_buffer_stamp()
* gst/gstbus.override:
wrapped gst_bus_set_sync_handler() and gst_bus_add_watch()
* gst/gstelement.override:
wrapped gst_element_send_event(), gst_element_factory_get_pad_templates()
gst_element_query_convert(), gst_element_get_query_types()
* gst/gstevent.override:
wrapped gst_event_discont_get_value()
* gst/gstmessage.override:
wrapped gst_message_parse_state_changed(), gst_message_parse_error(),
gst_message_parse_warning(), gst_message_parse_tag()
* gst/gstmodule.c:
Added registration of new fundamental type with pygtk
* gst/gstpad.override:
wrapped gst_pad_query(), gst_pad_[add|remove]_[data|event|buffer]_probe(),
gst_pad_query_position(), gst_pad_query_convert()
* gst/gstquery.override:
wrapped gst_query_parse_position(), gst_query_parse_convert(),
gst_query_parse_seeking_query(), gst_query_parse_seeking_reponse()
* gst/pygstminiobject.c:
fixes
* gst/Makefile.am:
added gstbus.override, gstmessage.override, gstquery.override
* testsuite/test_buffer.py:
* testsuite/test_element.py:
* testsuite/test_event.py:
* testsuite/test_pipeline.py:
Updating testsuites
2005-07-12 09:45:58 +00:00
|
|
|
gstmessage.override \
|
2005-09-28 14:34:52 +00:00
|
|
|
gstobject.override \
|
gst/: Added GError wrapping,
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Added GError wrapping,
Removed data field from Buffer,
Added virtual methods to object
Updated to latest API
* gst/gst.override:
wrapped gst_plugin_get_feature_list(), gst_uri_handler_get_protocols(),
gst_registry_pool_list()
* gst/gstbuffer.override:
gst.Buffer() works
get/setters fixed
wrapped gst_buffer_stamp()
* gst/gstbus.override:
wrapped gst_bus_set_sync_handler() and gst_bus_add_watch()
* gst/gstelement.override:
wrapped gst_element_send_event(), gst_element_factory_get_pad_templates()
gst_element_query_convert(), gst_element_get_query_types()
* gst/gstevent.override:
wrapped gst_event_discont_get_value()
* gst/gstmessage.override:
wrapped gst_message_parse_state_changed(), gst_message_parse_error(),
gst_message_parse_warning(), gst_message_parse_tag()
* gst/gstmodule.c:
Added registration of new fundamental type with pygtk
* gst/gstpad.override:
wrapped gst_pad_query(), gst_pad_[add|remove]_[data|event|buffer]_probe(),
gst_pad_query_position(), gst_pad_query_convert()
* gst/gstquery.override:
wrapped gst_query_parse_position(), gst_query_parse_convert(),
gst_query_parse_seeking_query(), gst_query_parse_seeking_reponse()
* gst/pygstminiobject.c:
fixes
* gst/Makefile.am:
added gstbus.override, gstmessage.override, gstquery.override
* testsuite/test_buffer.py:
* testsuite/test_element.py:
* testsuite/test_event.py:
* testsuite/test_pipeline.py:
Updating testsuites
2005-07-12 09:45:58 +00:00
|
|
|
gstquery.override \
|
2005-01-01 15:23:42 +00:00
|
|
|
gstpad.override \
|
2005-08-03 16:54:57 +00:00
|
|
|
gststructure.override \
|
2005-09-28 14:34:52 +00:00
|
|
|
gsttaglist.override \
|
2006-03-13 11:19:10 +00:00
|
|
|
gstlibs.override \
|
|
|
|
gstbase.override
|
2005-01-01 15:23:42 +00:00
|
|
|
|
2006-01-01 21:18:28 +00:00
|
|
|
GST_DEFS = gst.defs gst-types.defs gst-extrafuncs.defs libs.defs base.defs
|
2004-03-15 14:25:10 +00:00
|
|
|
CLEANFILES = gst.c
|
2006-03-14 12:56:46 +00:00
|
|
|
EXTRA_DIST += $(GST_DEFS) $(GST_OVERRIDES) gstversion.override.in
|
|
|
|
gst.c: $(GST_DEFS) $(GST_OVERRIDES) $(GEN_FILES) gstversion.override
|
examples/gstreamer/filesrc.py,player.py: New examples
Original commit message from CVS:
* examples/gstreamer/filesrc.py,player.py: New examples
* gstreamer/gstreamer.override: Add a dict like interface to GstTagList
* gstreamer/gstpad-handlers.override: New file, split out from gstreamer.override
* gstreamer/gst-types.defs: Don't use
gst_buffer_free/gst_data_free, use gst_data_unref instead.
* gstreamer/gst-types.c (PyGstData_to_value): Don't send address here.
* gstreamer/arg-types.py (GstDataPtrArg.write_param): Send the
address to stuff, since we really want to avoid segfaults :)
* gstreamer/0.6.[c,defs,h,override]: Remove, we're focusing on 0.7
* gstreamer/0.7.[c,defs,h,override]: Remove, merge with
gstreamer.*
* gstreamer/Makefile.am: Clean up, remove versioning support.
2004-02-27 18:01:52 +00:00
|
|
|
|
2004-03-15 14:25:10 +00:00
|
|
|
# GStreamer interfaces bindings
|
2005-12-01 12:34:46 +00:00
|
|
|
interfaces_la_CFLAGS = $(common_cflags) $(GST_PLUGINS_BASE_CFLAGS)
|
2005-12-01 19:15:26 +00:00
|
|
|
interfaces_la_LIBADD = $(common_libadd) -lgstinterfaces-$(GST_MAJORMINOR)
|
2006-09-28 10:03:22 +00:00
|
|
|
interfaces_la_LDFLAGS = $(common_ldflags) \
|
|
|
|
-export-symbols-regex "^(initinterface|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
|
2004-03-15 14:25:10 +00:00
|
|
|
interfaces_la_SOURCES = interfacesmodule.c
|
|
|
|
nodist_interfaces_la_SOURCES = interfaces.c
|
2004-03-24 10:31:35 +00:00
|
|
|
INTERFACES_OVERRIDES = interfaces.override xoverlay.override
|
2007-06-08 15:16:08 +00:00
|
|
|
INTERFACES_DEFS = interfaces.defs xoverlay.defs
|
2004-03-15 14:25:10 +00:00
|
|
|
CLEANFILES += interfaces.c
|
2004-03-31 14:37:01 +00:00
|
|
|
EXTRA_DIST += $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES)
|
2005-06-17 10:59:47 +00:00
|
|
|
interfaces.c: $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES) $(GEN_FILES)
|
2004-03-15 14:25:10 +00:00
|
|
|
|
2008-01-01 13:22:21 +00:00
|
|
|
# GStreamer pbutils bindings
|
|
|
|
pbutils_la_CFLAGS = $(common_cflags) $(GST_PLUGINS_BASE_CFLAGS)
|
|
|
|
pbutils_la_LIBADD = $(common_libadd) $(GST_PLUGINS_BASE_LIBS) -lgstpbutils-0.10
|
|
|
|
pbutils_la_LDFLAGS = $(common_ldflags) \
|
|
|
|
-export-symbols-regex "^(initpbutils|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
|
2009-08-21 14:22:38 +00:00
|
|
|
pbutils_la_SOURCES = pbutilsmodule.c gst-argtypes.c
|
2008-01-01 13:22:21 +00:00
|
|
|
nodist_pbutils_la_SOURCES = pbutils.c
|
|
|
|
PBUTILS_OVERRIDES = pbutils.override
|
|
|
|
PBUTILS_DEFS = pbutils.defs
|
|
|
|
CLEANFILES += pbutils.c
|
|
|
|
EXTRA_DIST += $(PBUTILS_DEFS) $(PBUTILS_OVERRIDES)
|
|
|
|
pbutils.c: $(PBUTILS_DEFS) $(PBUTILS_OVERRIDES) $(GEN_FILES)
|
|
|
|
|
2008-12-31 12:01:02 +00:00
|
|
|
# GStreamer audio bindings
|
|
|
|
AUDIO_OVERRIDES = audio.override
|
|
|
|
AUDIO_DEFS = audio.defs
|
|
|
|
CLEANFILES += audio.c
|
|
|
|
EXTRA_DIST += $(AUDIO_DEFS) $(AUDIO_OVERRIDES)
|
|
|
|
defs_DATA += $(AUDIO_DEFS)
|
|
|
|
GEN_FILES += $(AUDIO_DEFS)
|
|
|
|
|
|
|
|
if HAVE_GST_AUDIO
|
|
|
|
|
|
|
|
audio_lib = audio.la
|
|
|
|
pygstexec_LTLIBRARIES += $(audio_lib)
|
|
|
|
audio_la_CFLAGS = $(common_cflags) $(GST_PLUGINS_BASE_CFLAGS)
|
|
|
|
audio_la_LIBADD = $(common_libadd) $(GST_PLUGINS_BASE_LIBS) -lgstaudio-0.10
|
|
|
|
audio_la_LDFLAGS = $(common_ldflags) \
|
|
|
|
-export-symbols-regex "^(initaudio|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
|
2009-08-21 14:22:38 +00:00
|
|
|
audio_la_SOURCES = audiomodule.c gst-argtypes.c
|
2008-12-31 12:01:02 +00:00
|
|
|
nodist_audio_la_SOURCES = audio.c
|
|
|
|
audio.c: $(AUDIO_DEFS) $(AUDIO_OVERRIDES) $(GEN_FILES)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2008-12-31 13:06:58 +00:00
|
|
|
# GStreamer video bindings
|
|
|
|
VIDEO_OVERRIDES = video.override
|
|
|
|
VIDEO_DEFS = video.defs
|
|
|
|
CLEANFILES += video.c
|
|
|
|
EXTRA_DIST += $(VIDEO_DEFS) $(VIDEO_OVERRIDES)
|
|
|
|
defs_DATA += $(VIDEO_DEFS)
|
|
|
|
GEN_FILES += $(VIDEO_DEFS)
|
|
|
|
|
|
|
|
if HAVE_GST_VIDEO
|
|
|
|
|
|
|
|
video_lib = video.la
|
|
|
|
pygstexec_LTLIBRARIES += $(video_lib)
|
|
|
|
video_la_CFLAGS = $(common_cflags) $(GST_PLUGINS_BASE_CFLAGS)
|
|
|
|
video_la_LIBADD = $(common_libadd) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-0.10
|
|
|
|
video_la_LDFLAGS = $(common_ldflags) \
|
|
|
|
-export-symbols-regex "^(initvideo|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
|
2009-08-21 14:22:38 +00:00
|
|
|
video_la_SOURCES = videomodule.c gst-argtypes.c
|
2008-12-31 13:06:58 +00:00
|
|
|
nodist_video_la_SOURCES = video.c
|
|
|
|
video.c: $(VIDEO_DEFS) $(VIDEO_OVERRIDES) $(GEN_FILES)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2008-12-31 13:32:58 +00:00
|
|
|
# GStreamer tag bindings
|
|
|
|
TAG_OVERRIDES = tag.override
|
|
|
|
TAG_DEFS = tag.defs
|
|
|
|
CLEANFILES += tag.c
|
|
|
|
EXTRA_DIST += $(TAG_DEFS) $(TAG_OVERRIDES)
|
|
|
|
defs_DATA += $(TAG_DEFS)
|
|
|
|
GEN_FILES += $(TAG_DEFS)
|
|
|
|
|
|
|
|
if HAVE_GST_TAG
|
|
|
|
|
|
|
|
tag_lib = tag.la
|
|
|
|
pygstexec_LTLIBRARIES += $(tag_lib)
|
|
|
|
tag_la_CFLAGS = $(common_cflags) $(GST_PLUGINS_BASE_CFLAGS)
|
|
|
|
tag_la_LIBADD = $(common_libadd) $(GST_PLUGINS_BASE_LIBS) -lgsttag-0.10
|
|
|
|
tag_la_LDFLAGS = $(common_ldflags) \
|
|
|
|
-export-symbols-regex "^(inittag|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
|
2009-08-21 14:22:38 +00:00
|
|
|
tag_la_SOURCES = tagmodule.c gst-argtypes.c
|
2008-12-31 13:32:58 +00:00
|
|
|
nodist_tag_la_SOURCES = tag.c
|
|
|
|
tag.c: $(TAG_DEFS) $(TAG_OVERRIDES) $(GEN_FILES)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2008-12-31 13:06:58 +00:00
|
|
|
|
2005-06-17 10:59:47 +00:00
|
|
|
.defs.c:
|
2010-02-26 15:37:50 +00:00
|
|
|
$(AM_V_GEN)($(PYTHON) $(top_srcdir)/codegen/codegen.py \
|
Mass change to support compiling for both 0.6 and 0.7. Common support is now in common.{defs,override,c,h}. Specifi...
Original commit message from CVS:
Mass change to support compiling for both 0.6 and 0.7. Common support is now
in common.{defs,override,c,h}. Specific version support is in
{0.6,0.7}.{defs,override,c,h}. The common and version specific files are
merged and/or used as needed.
common.override: add gst_version
2003-10-10 04:21:21 +00:00
|
|
|
--load-types $(srcdir)/arg-types.py \
|
2004-03-08 18:56:08 +00:00
|
|
|
--register $(srcdir)/gst-types.defs \
|
2006-11-22 17:20:21 +00:00
|
|
|
--override $(srcdir)/$*.override \
|
2006-03-14 12:56:46 +00:00
|
|
|
--extendpath $(top_builddir)/gst/ \
|
2006-11-22 17:20:21 +00:00
|
|
|
--extendpath $(srcdir)/ \
|
|
|
|
--prefix py$* $<) > gen-$*.c \
|
2004-03-08 18:56:08 +00:00
|
|
|
&& cp gen-$*.c $*.c \
|
|
|
|
&& rm -f gen-$*.c
|
2005-10-04 14:59:07 +00:00
|
|
|
|
|
|
|
SUBDIRS = extend
|