2004-05-03 10:46:49 +00:00
|
|
|
common_cflags = $(PYGTK_CFLAGS) $(GST_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
|
|
|
|
2004-02-23 18:19:38 +00:00
|
|
|
pkgpythondir = $(pythondir)/gst
|
|
|
|
pkgpyexecdir = $(pyexecdir)/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)
|
2004-03-24 10:31:35 +00:00
|
|
|
pygstexec_LTLIBRARIES = _gst.la $(interface_lib) $(play_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
|
|
|
|
if BUILD_PLAY
|
|
|
|
play_lib = play.la
|
|
|
|
else
|
|
|
|
play_lib =
|
|
|
|
endif
|
|
|
|
|
2004-03-31 13:49:24 +00:00
|
|
|
defs_DATA = gst-types.defs
|
2004-03-24 10:31:35 +00:00
|
|
|
defsdir = $(pkgdatadir)/2.0/defs
|
2004-03-18 17:07:12 +00:00
|
|
|
|
2004-05-03 10:46:49 +00:00
|
|
|
INCLUDES = $(PYTHON_INCLUDES)
|
2004-03-24 10:31:35 +00:00
|
|
|
EXTRA_DIST = $(defs_DATA) arg-types.py
|
|
|
|
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
|
|
|
|
|
|
|
# GStreamer bindings
|
|
|
|
_gst_la_CFLAGS = $(common_cflags)
|
|
|
|
_gst_la_LIBADD = $(common_libadd)
|
2004-03-15 14:25:10 +00:00
|
|
|
_gst_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gst
|
|
|
|
_gst_la_SOURCES = gst-argtypes.c gstmodule.c
|
|
|
|
nodist__gst_la_SOURCES = gst.c
|
2004-03-24 10:31:35 +00:00
|
|
|
GST_OVERRIDES = gst.override gstpad-handlers.override
|
|
|
|
GST_DEFS = gst.defs gst-types.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)
|
2004-03-15 14:25:10 +00:00
|
|
|
gst.c: $(GST_DEFS) $(GST_OVERRIDES)
|
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-16 18:42:00 +00:00
|
|
|
# gst-play bindings
|
2004-03-24 10:31:35 +00:00
|
|
|
play_la_CFLAGS = $(common_cflags) $(GST_PLAY_CFLAGS)
|
|
|
|
play_la_LIBADD = $(common_libadd) $(GST_PLAY_LIBS)
|
2004-03-16 18:42:00 +00:00
|
|
|
play_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initplay
|
|
|
|
play_la_SOURCES = playmodule.c
|
|
|
|
nodist_play_la_SOURCES = play.c
|
2004-03-24 10:31:35 +00:00
|
|
|
PLAY_OVERRIDES = play.override
|
|
|
|
PLAY_DEFS = play.defs
|
2004-03-16 18:42:00 +00:00
|
|
|
CLEANFILES += play.c
|
2004-03-31 14:37:01 +00:00
|
|
|
EXTRA_DIST += $(PLAY_DEFS) $(PLAY_OVERRIDES)
|
2004-03-16 18:42:00 +00:00
|
|
|
play.c: $(PLAY_DEFS) $(PLAY_OVERRIDES)
|
|
|
|
|
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)
|
|
|
|
interfaces_la_LIBADD = $(common_libadd) $(GST_INTERFACES_LIBS)
|
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)
|
2004-03-15 14:25:10 +00:00
|
|
|
interfaces.c: $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES)
|
|
|
|
|
|
|
|
.defs.c:
|
|
|
|
(cd $(srcdir) \
|
|
|
|
&& $(PYGTK_CODEGEN) \
|
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
|