Babeltrace python binding
[babeltrace.git] / bindings / python / Makefile.am
1 babeltrace.i: babeltrace.i.in
2 sed "s/BABELTRACE_VERSION_STR/Babeltrace $(PACKAGE_VERSION)/g" <babeltrace.i.in >babeltrace.i
3
4 AM_CFLAGS = -I$(PYTHON_INCLUDE) -I$(top_srcdir)/include/
5
6 EXTRA_DIST = babeltrace.i
7 python_PYTHON = babeltrace.py
8 pyexec_LTLIBRARIES = _babeltrace.la
9
10 MAINTAINERCLEANFILES = babeltrace_wrap.c babeltrace.py
11
12 _babeltrace_la_SOURCES = babeltrace_wrap.c python-complements.c
13
14 _babeltrace_la_LDFLAGS = -module
15
16 _babeltrace_la_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
17
18 _babeltrace_la_LIBS = $(GLIB_LIBS)
19
20 _babeltrace_la_LIBADD = $(top_srcdir)/formats/ctf/libbabeltrace-ctf.la \
21 $(top_srcdir)/formats/ctf-text/libbabeltrace-ctf-text.la
22
23 # SWIG 'warning md variable unused' fixed after SWIG build:
24 babeltrace_wrap.c: babeltrace.i
25 $(SWIG) -python -Wall -I. -I$(top_srcdir)/include babeltrace.i
26 sed -i "s/PyObject \*m, \*d, \*md;/PyObject \*m, \*d;\n#if defined(SWIGPYTHON_BUILTIN)\nPyObject *md;\n#endif/g" babeltrace_wrap.c
27 sed -i "s/md = d/d/g" babeltrace_wrap.c
28 sed -i "s/(void)public_symbol;/(void)public_symbol;\n md = d;/g" babeltrace_wrap.c
This page took 0.029265 seconds and 4 git commands to generate.