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)
|
2005-07-05 13:50:21 +00:00
|
|
|
pygstexec_LTLIBRARIES = _gst.la $(interface_lib)
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2004-03-18 17:07:12 +00:00
|
|
|
interface_lib = interfaces.la
|
|
|
|
|
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 \
|
|
|
|
base.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 = \
|
|
|
|
gst-0.10.3.ignore \
|
2006-03-24 11:07:22 +00:00
|
|
|
gst-0.10.4.ignore \
|
2006-05-09 14:24:02 +00:00
|
|
|
gst-0.10.5.ignore \
|
2006-05-19 08:48:22 +00:00
|
|
|
gst-0.10.6.ignore \
|
2006-07-18 15:33:41 +00:00
|
|
|
gst-0.10.7.ignore \
|
2006-10-20 10:41:46 +00:00
|
|
|
gst-0.10.10.ignore \
|
2007-01-17 04:40:33 +00:00
|
|
|
gst-0.10.11.ignore \
|
2007-01-26 11:58:55 +00:00
|
|
|
gst-0.10.12.ignore \
|
2007-01-17 04:40:33 +00:00
|
|
|
gst-pb-0.10.11.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
|
2006-01-01 21:18:28 +00:00
|
|
|
GEN_FILES = arg-types.py gst-types.defs libs.defs base.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)
|
2006-09-28 10:03:22 +00:00
|
|
|
_gst_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "^(init_gst|_PyGObject_API).*" \
|
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
|
|
|
|
INTERFACES_DEFS = interfaces.defs xoverlay.defs xwindowlistener.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
|
|
|
|
2005-06-17 10:59:47 +00:00
|
|
|
.defs.c:
|
2006-11-22 17:20:21 +00:00
|
|
|
($(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
|