2012-08-08 18:00:05 +00:00
|
|
|
common_cflags = $(PYGOBJECT_CFLAGS) $(GST_CFLAGS) -fno-strict-aliasing
|
|
|
|
common_libadd = $(GST_LIBS) $(PYGOBJECT_LIBS)
|
2014-03-29 13:51:39 +00:00
|
|
|
common_ldflags = -module -avoid-version -shrext $(PYTHON_SO)
|
2012-08-08 17:59:09 +00:00
|
|
|
|
|
|
|
# We install everything in the gi/overrides folder
|
|
|
|
pygioverridesdir = $(PYGI_OVERRIDES_DIR)
|
2012-10-15 07:49:00 +00:00
|
|
|
pygioverrides_PYTHON = Gst.py GstPbutils.py
|
2012-08-08 18:00:05 +00:00
|
|
|
|
|
|
|
pygioverridesexecdir = $(PYGI_OVERRIDES_DIR)
|
|
|
|
|
|
|
|
EXTRA_DIST = Gst.py
|
|
|
|
|
2014-03-29 14:01:26 +00:00
|
|
|
AM_CPPFLAGS = $(PYTHON_INCLUDES)
|
2012-08-08 18:00:05 +00:00
|
|
|
|
|
|
|
pygioverridesexec_LTLIBRARIES = _gi_gst.la
|
|
|
|
|
|
|
|
_gi_gst_la_SOURCES = gstmodule.c
|
|
|
|
_gi_gst_la_CFLAGS = $(common_cflags)
|
|
|
|
_gi_gst_la_LIBADD = $(common_libadd)
|
|
|
|
_gi_gst_la_LDFLAGS = $(common_ldflags)
|
2012-08-20 02:40:06 +00:00
|
|
|
|
|
|
|
# if we build in a separate tree, we need to symlink the *.so files from the
|
|
|
|
# source tree; Python does not accept the extensions and modules in different
|
|
|
|
# paths
|
|
|
|
build_pylinks:
|
2012-12-30 15:11:30 +00:00
|
|
|
for f in $(pygioverrides_PYTHON) __init__.py; do \
|
2013-08-24 02:01:46 +00:00
|
|
|
[ -e $(builddir)/$$f ] || $(LN_S) -f $(srcdir)/$$f $(builddir)/$$f; \
|
2012-08-20 02:40:06 +00:00
|
|
|
done
|
|
|
|
|
2014-03-29 13:51:39 +00:00
|
|
|
all: $(pygioverridesexec_LTLIBRARIES:.la=$(PYTHON_SO)) build_pylinks
|
|
|
|
check-local: $(pygioverridesexec_LTLIBRARIES:.la=$(PYTHON_SO)) build_pylinks
|
2012-08-20 02:40:06 +00:00
|
|
|
clean-local:
|
2014-03-29 13:51:39 +00:00
|
|
|
rm -f $(pygioverridesexec_LTLIBRARIES:.la=$(PYTHON_SO))
|
|
|
|
|
|
|
|
%$(PYTHON_SO): %.la
|
|
|
|
$(LN_S) -f .libs/$@ $@
|
|
|
|
|