[beast: 5/10] BSE: pybse: build bseidlapi.pyx from bseapi.idl
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 5/10] BSE: pybse: build bseidlapi.pyx from bseapi.idl
- Date: Sun, 20 Mar 2016 17:56:21 +0000 (UTC)
commit d41d71c861999d385f1f07fdafcc801026dc866e
Author: Tim Janik <timj gnu org>
Date: Sun Jan 24 17:59:52 2016 +0100
BSE: pybse: build bseidlapi.pyx from bseapi.idl
Signed-off-by: Tim Janik <timj gnu org>
bse/pybse/Makefile.am | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/bse/pybse/Makefile.am b/bse/pybse/Makefile.am
new file mode 100644
index 0000000..d79eb00
--- /dev/null
+++ b/bse/pybse/Makefile.am
@@ -0,0 +1,31 @@
+# BEAST & BSE
+include $(top_srcdir)/Makefile.decl
+
+# need -I$(top_srcdir) for <bse/bsedefs.hh>
+# need -I$(top_builddir) for <sfi/sficonfig.h>
+# need -I$(srcdir) for "bseserver.hh" in .genprc.cc
+# need -I. (builddir) for "bsebasics.genidl.hh" in bsebasics.cc
+AM_CPPFLAGS += -I$(top_srcdir) -I$(top_builddir) -I$(srcdir) -I.
+DEFS += @DEFINE__FILE_DIR__@ $(patsubst %, -DG_LOG_DOMAIN=\"BSE\" -DBSE_COMPILATION, $(filter $(<F),
$(bse_sources) $(bse_sources)))
+AM_CXXFLAGS += $(BSE_CFLAGS) $(RAPICORN_CFLAGS) -DRAPICORN_CONVENIENCE -DG_DISABLE_DEPRECATED
-DG_DISABLE_CONST_RETURNS
+AIDACC_VDEBUG = $(AIDACC) $(if $(findstring 1, $(V)), --aida-debug)
+
+# == Pyx ==
+AIDASTDINC = $(shell ${AIDACC} -x PyxxStub.py -G --print-include-path /dev/null)
+# Python 'Bse' module build via Cython
+bseidlapi.pyx: ../bseapi.idl
+ $(AM_V_GEN)
+ $(Q) ${AIDACC} -x PyxxStub.py $< -o $@ -G strip-path=$(abs_top_srcdir)/
+# pythondir = ${prefix}/lib/pythonX.Y/site-packages
+pymodulesdir = ${bselibdir}/pymodules
+# Pyx Bse module
+CLEANFILES += bseidlapi.pyx
+
+# call python with uninstalled or fully installed modules
+FPYTHON = PYTHONPATH="$$PYTHONPATH:${pymodulesdir}" $(PYTHON)
+UPYTHON = PYTHONPATH="$(abs_builddir)/${objdir}:$$PYTHONPATH" $(PYTHON)
+# Loading newly built Python modules requires accesss to libtool objdir
+objdir = .libs
+python-call-info:
+ @echo '${FPYTHON} -ic "import Bse"'
+ @echo '${UPYTHON} -ic "import Bse"'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]