-INCLUDES = \
+AM_CPPFLAGS = \
+ -I$(top_srcdir) \
-I$(top_srcdir)/include \
- -I$(top_srcdir)/src
+ -include Python.h \
+ -include $(top_builddir)/enigma2_config.h
+
+SUBDIRS = Components Tools Screens Plugins
noinst_LIBRARIES = libenigma_python.a
libenigma_python_a_SOURCES = \
- python.cpp enigma_python_wrap.cxx connections.cpp
+ connections.cpp \
+ connections.h \
+ python.cpp \
+ python.h \
+ swig.h
+
+nodist_libenigma_python_a_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
+
+CLEANFILES = enigma.py enigma_python_wrap.cxx
-enigma_python_wrap.cxx: enigma_python.i
- swig -I$(top_srcdir)/ -c++ -python enigma_python.i
+installdir = $(pkglibdir)/python
-enigma_python.i: enigma_iobject.i
+install_PYTHON = \
+ enigma.py
-enigma_iobject.i:
- find ../../.. -name "*.cpp" | xargs grep -h "DEFINE_REF" > enigma_iobject.i
-
\ No newline at end of file