aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Makefile.am23
-rw-r--r--lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am3
-rw-r--r--lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am3
3 files changed, 22 insertions, 7 deletions
diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am
index 03dcedb9..3c213a17 100644
--- a/lib/python/Makefile.am
+++ b/lib/python/Makefile.am
@@ -1,18 +1,30 @@
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/include \
- -include Python.h
+ -include Python.h \
+ -include $(top_builddir)/enigma2_config.h
SUBDIRS = Components Tools Screens Plugins
noinst_LTLIBRARIES = libenigma_python.la
libenigma_python_la_SOURCES = \
- python.cpp enigma_python_wrap.cxx connections.cpp
+ connections.cpp \
+ connections.h \
+ python.cpp \
+ python.h \
+ swig.h
-enigma_python_wrap.cxx: enigma_python.i
- swig -I$(top_srcdir)/ -c++ -python -O -nortti -nothreads enigma_python.i
- python enigma_py_patcher.py
+nodist_libenigma_python_la_SOURCES = \
+ enigma_python_wrap.cxx
+
+EXTRA_DIST = \
+ enigma_py_patcher.py \
+ enigma_python.i
+
+enigma_python_wrap.cxx: $(srcdir)/enigma_python.i
+ $(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -O -nortti -nothreads -o $@ $<
+ $(PYTHON) $(srcdir)/enigma_py_patcher.py
enigma.py: enigma_python_wrap.cxx
@@ -22,3 +34,4 @@ installdir = $(pkglibdir)/python
install_PYTHON = \
enigma.py
+
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am b/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am
index e79688b8..5bfc8afa 100644
--- a/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am
+++ b/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am
@@ -1,6 +1,7 @@
CPPFLAGS += \
-I$(top_srcdir) \
- -include Python.h
+ -include Python.h \
+ -include $(top_builddir)/enigma2_config.h
OBJS = servicedvd.cpp
diff --git a/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am b/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am
index 914371e5..9fb72097 100644
--- a/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am
+++ b/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am
@@ -1,6 +1,7 @@
CPPFLAGS += \
-I$(top_srcdir) \
- -include Python.h
+ -include Python.h \
+ -include $(top_builddir)/enigma2_config.h
OBJS = socket_mmi.cpp