mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
46bad57088
Original commit message from CVS: * gst/Makefile.am (INCLUDES): Move PYGTK_CFLAGS to common_cflags instead of INCLUDES * configure.ac: define HAVE_OLD_PYGTK if we're on pygtk 2.3.91 or earlier and disable editor checks * gst/common.h: Add backwards compatible typedef for python < 2.3 and pygtk < 2.3.92
76 lines
2.3 KiB
Makefile
76 lines
2.3 KiB
Makefile
common_cflags = $(PYGTK_CFLAGS) $(GST_CFLAGS) -fno-strict-aliasing
|
|
common_libadd = $(GST_LIBS)
|
|
common_ldflags = -module -avoid-version
|
|
|
|
pkgpythondir = $(pythondir)/gst
|
|
pkgpyexecdir = $(pyexecdir)/gst
|
|
|
|
pygstdir = $(pkgpythondir)
|
|
pygst_PYTHON = __init__.py
|
|
|
|
pygstexecdir = $(pkgpyexecdir)
|
|
pygstexec_LTLIBRARIES = _gst.la $(interface_lib) $(play_lib)
|
|
|
|
if BUILD_INTERFACES
|
|
interface_lib = interfaces.la
|
|
else
|
|
interface_lib =
|
|
endif
|
|
if BUILD_PLAY
|
|
play_lib = play.la
|
|
else
|
|
play_lib =
|
|
endif
|
|
|
|
defs_DATA = gst-types.defs
|
|
defsdir = $(pkgdatadir)/2.0/defs
|
|
|
|
INCLUDES = $(PYTHON_INCLUDES)
|
|
EXTRA_DIST = $(defs_DATA) arg-types.py
|
|
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
|
|
|
# GStreamer bindings
|
|
_gst_la_CFLAGS = $(common_cflags)
|
|
_gst_la_LIBADD = $(common_libadd)
|
|
_gst_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gst
|
|
_gst_la_SOURCES = gst-argtypes.c gstmodule.c
|
|
nodist__gst_la_SOURCES = gst.c
|
|
GST_OVERRIDES = gst.override gstpad-handlers.override
|
|
GST_DEFS = gst.defs gst-types.defs
|
|
CLEANFILES = gst.c
|
|
EXTRA_DIST += $(GST_DEFS) $(GST_OVERRIDES)
|
|
gst.c: $(GST_DEFS) $(GST_OVERRIDES)
|
|
|
|
# gst-play bindings
|
|
play_la_CFLAGS = $(common_cflags) $(GST_PLAY_CFLAGS)
|
|
play_la_LIBADD = $(common_libadd) $(GST_PLAY_LIBS)
|
|
play_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initplay
|
|
play_la_SOURCES = playmodule.c
|
|
nodist_play_la_SOURCES = play.c
|
|
PLAY_OVERRIDES = play.override
|
|
PLAY_DEFS = play.defs
|
|
CLEANFILES += play.c
|
|
EXTRA_DIST += $(PLAY_DEFS) $(PLAY_OVERRIDES)
|
|
play.c: $(PLAY_DEFS) $(PLAY_OVERRIDES)
|
|
|
|
# GStreamer interfaces bindings
|
|
interfaces_la_CFLAGS = $(common_cflags) $(GST_INTERFACES_CFLAGS)
|
|
interfaces_la_LIBADD = $(common_libadd) $(GST_INTERFACES_LIBS)
|
|
interfaces_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initinterface
|
|
interfaces_la_SOURCES = interfacesmodule.c
|
|
nodist_interfaces_la_SOURCES = interfaces.c
|
|
INTERFACES_OVERRIDES = interfaces.override xoverlay.override
|
|
INTERFACES_DEFS = interfaces.defs xoverlay.defs xwindowlistener.defs
|
|
CLEANFILES += interfaces.c
|
|
EXTRA_DIST += $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES)
|
|
interfaces.c: $(INTERFACES_DEFS) $(INTERFACES_OVERRIDES)
|
|
|
|
.defs.c:
|
|
(cd $(srcdir) \
|
|
&& $(PYGTK_CODEGEN) \
|
|
--load-types $(srcdir)/arg-types.py \
|
|
--register $(srcdir)/gst-types.defs \
|
|
--override $*.override \
|
|
--prefix py$* $*.defs) > gen-$*.c \
|
|
&& cp gen-$*.c $*.c \
|
|
&& rm -f gen-$*.c
|