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
|
|
|
|
|
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
|
|
|
GST_OVERRIDES = common.override \
|
|
|
|
0.6.override \
|
|
|
|
0.7.override
|
|
|
|
GST_DEFS = common.defs \
|
|
|
|
0.6.defs \
|
|
|
|
0.7.defs
|
|
|
|
GST_CODE = common.c common.h \
|
|
|
|
0.6.c 0.6.h \
|
|
|
|
0.7.c 0.7.h
|
|
|
|
|
|
|
|
# Ugly hack to pick the proper version code.
|
|
|
|
# Just setting to $(GST_MAJORMINOR).{ch} will not work
|
|
|
|
if GST_0_6
|
|
|
|
VERSOURCES = 0.6.c 0.6.h
|
|
|
|
endif
|
|
|
|
if GST_0_7
|
|
|
|
VERSOURCES = 0.7.c 0.7.h
|
|
|
|
endif
|
2002-03-24 04:32:10 +00:00
|
|
|
|
|
|
|
pyexec_LTLIBRARIES = _gstreamermodule.la
|
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
|
|
|
_gstreamermodule_la_SOURCES = \
|
|
|
|
gstreamermodule.c \
|
|
|
|
common.c common.h \
|
|
|
|
$(VERSOURCES)
|
2004-01-27 05:51:53 +00:00
|
|
|
_gstreamermodule_la_CFLAGS = $(GST_CFLAGS) -fno-strict-aliasing
|
2002-03-24 04:32:10 +00:00
|
|
|
_gstreamermodule_la_LIBADD = $(GST_LIBS)
|
2003-10-09 20:01:30 +00:00
|
|
|
_gstreamermodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gstreamer
|
2002-03-24 04:32:10 +00:00
|
|
|
nodist__gstreamermodule_la_SOURCES = gstreamer.c
|
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
|
|
|
|
|
|
|
CLEANFILES = gstreamer.c core.defs gstreamer.defs gstreamer.override
|
|
|
|
EXTRA_DIST = $(GST_OVERRIDES) $(GST_DEFS) $(GST_CODE) arg-types.py
|
|
|
|
|
|
|
|
gstreamer.c: gstreamer.defs gstreamer.override
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2003-01-10 00:17:32 +00:00
|
|
|
GST_EXCLUDE_INCLUDES=\
|
|
|
|
$(GST_INCLUDEDIR)/gst/gstatomic_impl.h \
|
|
|
|
$(GST_INCLUDEDIR)/gst/gstcompat.h
|
2003-01-01 00:19:52 +00:00
|
|
|
GST_INCLUDES=$(filter-out $(GST_EXCLUDE_INCLUDES),$(wildcard $(GST_INCLUDEDIR)/gst/*.h))
|
2002-06-17 02:01:54 +00:00
|
|
|
|
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
|
|
|
gstreamer.override: common.override $(GST_MAJORMINOR).override
|
|
|
|
cat $+ > $@
|
2002-06-17 02:01:54 +00:00
|
|
|
|
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
|
|
|
core.defs: $(GST_INCLUDES)
|
|
|
|
$(PYTHON) $(PYGTK_H2DEF) $(GST_INCLUDES) > $@
|
2002-06-17 02:01:54 +00:00
|
|
|
|
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
|
|
|
gstreamer.defs: core.defs common.defs $(GST_MAJORMINOR).defs
|
|
|
|
cat $+ > $@
|
|
|
|
|
|
|
|
gstreamer.c: gstreamer.defs arg-types.py gstreamer.override
|
2003-02-08 16:08:03 +00:00
|
|
|
$(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 \
|
|
|
|
--override $(srcdir)/gstreamer.override \
|
|
|
|
--prefix pygstreamer gstreamer.defs > gen-gstreamer.c \
|
|
|
|
&& cp gen-gstreamer.c gstreamer.c \
|
|
|
|
&& rm -f gen-gstreamer.c
|
|
|
|
|
|
|
|
# --register $(PYGTK_DEFSDIR)/gtk-types.defs
|
|
|
|
# --register $(top_srcdir)/blah/blah-types.defs
|