2002-03-24 04:32:10 +00:00
|
|
|
INCLUDES = $(PYTHON_INCLUDES) $(PYGTK_CFLAGS)
|
|
|
|
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
|
|
|
|
|
|
|
pygstreamerdir = $(pythondir)/gstreamer
|
|
|
|
pygstreamer_PYTHON = __init__.py
|
|
|
|
|
|
|
|
pygstreamerexecdir = $(pyexecdir)/gstreamer
|
|
|
|
|
|
|
|
# gstreamer binding
|
|
|
|
|
|
|
|
pyexec_LTLIBRARIES = _gstreamermodule.la
|
|
|
|
_gstreamermodule_la_SOURCES = gstreamermodule.c gstreamer-fixes.c gstreamer-fixes.h
|
|
|
|
_gstreamermodule_la_CFLAGS = $(GST_CFLAGS)
|
|
|
|
_gstreamermodule_la_LIBADD = $(GST_LIBS)
|
|
|
|
_gstreamermodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgstreamer
|
|
|
|
nodist__gstreamermodule_la_SOURCES = gstreamer.c
|
2002-06-17 02:01:54 +00:00
|
|
|
CLEANFILES = gstreamer.c gstreamer-base.defs
|
|
|
|
EXTRA_DIST = gstreamer-extra.defs gstreamer.override
|
2002-03-24 04:32:10 +00:00
|
|
|
gstreamer.c: gstreamer.defs gstreamer.override
|
|
|
|
|
2002-06-17 02:01:54 +00:00
|
|
|
GST_INCLUDES=$(wildcard $(GST_INCLUDEDIR)/gst/*.h)
|
|
|
|
|
|
|
|
gstreamer-base.defs: $(GST_INCLUDES)
|
|
|
|
$(PYTHON) $(PYGTK_H2DEF) $(GST_INCLUDES) > gstreamer-base.defs
|
|
|
|
|
2002-10-04 05:40:37 +00:00
|
|
|
gstreamer.defs: gstreamer-base.defs gstreamer-extra.defs $(top_srcdir)/gstreamer/gstreamer-arg-types.py
|
2002-06-17 02:01:54 +00:00
|
|
|
cat gstreamer-base.defs gstreamer-extra.defs > gstreamer.defs
|
|
|
|
|
2002-03-24 04:32:10 +00:00
|
|
|
.defs.c:
|
|
|
|
(cd $(srcdir) \
|
|
|
|
&& $(PYGTK_CODEGEN) \
|
|
|
|
--load-types $(top_srcdir)/gstreamer/gstreamer-arg-types.py \
|
|
|
|
--override $*.override \
|
|
|
|
--prefix py$* $*.defs) > gen-$*.c \
|
|
|
|
&& cp gen-$*.c $*.c \
|
|
|
|
&& rm -f gen-$*.c
|
|
|
|
|
|
|
|
# --register $(PYGTK_DEFSDIR)/pango-types.defs \
|
|
|
|
# --register $(PYGTK_DEFSDIR)/gdk-types.defs \
|
|
|
|
# --register $(PYGTK_DEFSDIR)/gtk-types.defs \
|
|
|
|
# --register $(top_srcdir)/bonobo/bonobo-types.defs \
|
|
|
|
# --register $(top_srcdir)/bonobo/bonoboui-types.defs \
|