2005-06-17 10:59:47 +00:00
|
|
|
common_cflags = $(PYGTK_CFLAGS) $(GST_CFLAGS) $(PYGST_CFLAGS) -fno-strict-aliasing
|
2004-03-24 10:31:35 +00:00
|
|
|
common_libadd = $(GST_LIBS)
|
|
|
|
common_ldflags = -module -avoid-version
|
2004-03-15 14:25:10 +00:00
|
|
|
|
2005-07-01 10:47:25 +00:00
|
|
|
pkgpythondir = $(pythondir)/gst-$(GST_MAJORMINOR)/gst
|
|
|
|
pkgpyexecdir = $(pyexecdir)/gst-$(GST_MAJORMINOR)/gst
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2004-02-23 18:19:38 +00:00
|
|
|
pygstdir = $(pkgpythondir)
|
|
|
|
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
|
|
|
if BUILD_INTERFACES
|
|
|
|
interface_lib = interfaces.la
|
|
|
|
else
|
|
|
|
interface_lib =
|
|
|
|
endif
|
|
|
|
|
2005-06-17 10:59:47 +00:00
|
|
|
defs_DATA = gst-types.defs \
|
2005-08-03 16:54:57 +00:00
|
|
|
gst-extrafuncs.defs \
|
|
|
|
libs.defs
|
2005-10-03 17:52:07 +00:00
|
|
|
defsdir = $(pkgdatadir)/0.9/defs
|
2004-03-18 17:07:12 +00:00
|
|
|
|
2005-10-13 16:05:13 +00:00
|
|
|
noinst_HEADERS = common.h pygstvalue.h pygstminiobject.h pygstobject.h pygstexception.h
|
2004-06-21 09:15:42 +00:00
|
|
|
|
2004-05-03 10:46:49 +00:00
|
|
|
INCLUDES = $(PYTHON_INCLUDES)
|
2005-06-17 10:59:47 +00:00
|
|
|
EXTRA_DIST = $(defs_DATA) common.h arg-types.py
|
2004-03-24 10:31:35 +00:00
|
|
|
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
2005-08-03 16:54:57 +00:00
|
|
|
GEN_FILES = arg-types.py gst-types.defs libs.defs
|
2004-03-24 10:31:35 +00:00
|
|
|
|
|
|
|
# GStreamer bindings
|
|
|
|
_gst_la_CFLAGS = $(common_cflags)
|
|
|
|
_gst_la_LIBADD = $(common_libadd)
|
2005-08-03 16:54:57 +00:00
|
|
|
_gst_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gst $(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS)
|
2005-10-07 01:21:57 +00:00
|
|
|
_gst_la_SOURCES = \
|
|
|
|
gst-argtypes.c \
|
|
|
|
gstmodule.c \
|
|
|
|
pygstiterator.c \
|
|
|
|
pygstminiobject.c \
|
|
|
|
pygstobject.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 \
|
2005-08-03 16:54:57 +00:00
|
|
|
gstlibs.override
|
2005-01-01 15:23:42 +00:00
|
|
|
|
2005-08-03 16:54:57 +00:00
|
|
|
GST_DEFS = gst.defs gst-types.defs gst-extrafuncs.defs libs.defs
|
2004-03-15 14:25:10 +00:00
|
|
|
CLEANFILES = gst.c
|
2004-03-31 14:37:01 +00:00
|
|
|
EXTRA_DIST += $(GST_DEFS) $(GST_OVERRIDES)
|
2005-06-17 10:59:47 +00:00
|
|
|
gst.c: $(GST_DEFS) $(GST_OVERRIDES) $(GEN_FILES)
|
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
|
2004-03-24 10:31:35 +00:00
|
|
|
interfaces_la_CFLAGS = $(common_cflags) $(GST_INTERFACES_CFLAGS)
|
2005-07-23 14:54:02 +00:00
|
|
|
interfaces_la_LIBADD = $(common_libadd) $(GST_INTERFACES_LIBS) -lgstinterfaces-0.9
|
2004-03-15 14:25:10 +00:00
|
|
|
interfaces_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initinterface
|
|
|
|
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:
|
2004-03-15 14:25:10 +00:00
|
|
|
(cd $(srcdir) \
|
2005-06-26 12:35:07 +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 \
|
|
|
|
--override $*.override \
|
|
|
|
--prefix py$* $*.defs) > gen-$*.c \
|
|
|
|
&& cp gen-$*.c $*.c \
|
|
|
|
&& rm -f gen-$*.c
|
2005-10-04 14:59:07 +00:00
|
|
|
|
|
|
|
SUBDIRS = extend
|