aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Makefile.am
blob: ebd77e2d4bae2a20f4912c1b3ede7da322adb993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/include \
	-include Python.h \
	-include $(top_builddir)/enigma2_config.h

SUBDIRS = Components Tools Screens Plugins

noinst_LIBRARIES = libenigma_python.a

libenigma_python_a_SOURCES = \
	connections.cpp \
	python.cpp

pythonincludedir = $(pkgincludedir)/lib/python
pythoninclude_HEADERS = \
	connections.h \
	python.h \
	swig.h

nodist_libenigma_python_a_SOURCES = \
	enigma_python_wrap.cxx

noinst_PYTHON = \
	enigma_py_patcher.py

EXTRA_DIST = \
	enigma_python.i

enigma_python_wrap.cxx: $(srcdir)/enigma_python.i
	$(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -O -nortti -nothreads -o $@ $<
	$(AM_V_at)$(PYTHON) $(srcdir)/enigma_py_patcher.py

enigma.py: enigma_python_wrap.cxx

CLEANFILES = enigma.py enigma_python_wrap.cxx

installdir = $(pkglibdir)/python

install_PYTHON = \
	enigma.py