X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/dba614edd2aad3c17e244914eaef3809d8300cb1..96b320d3d1b921cad7a94027b449dacd49470117:/lib/python/Makefile.am diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index dbcf489e..5cbda780 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -1,17 +1,37 @@ -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