Commit | Line | Data |
---|---|---|
ab5be9fa MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
36907cb5 | 3 | lttng.i: lttng.i.in |
18ecc6ae | 4 | $(SED) "s/LTTNG_VERSION_STR/LTTng $(PACKAGE_VERSION)/g" < $(srcdir)/lttng.i.in >lttng.i |
36907cb5 | 5 | |
2d44f8b3 FD |
6 | # Some versions of SWIG (like 3.0.12) generate code where a parameter called |
7 | # `swig_this` shadows a global of the same name. Later versions (like 4.0.1) | |
8 | # have renamed this global to `Swig_This_global`. | |
9 | # | |
011e18de JG |
10 | # Disable some warning flags for that file. |
11 | AM_CFLAGS += \ | |
12 | -Wno-cast-function-type \ | |
13 | -Wno-missing-field-initializers \ | |
8903c4c7 | 14 | -Wno-null-dereference \ |
011e18de JG |
15 | -Wno-redundant-decls \ |
16 | -Wno-shadow \ | |
17 | -Wno-unused-parameter | |
18 | ||
19 | # Swig regularily changes and generates code that results warnings which break | |
20 | # Werror builds. Disable that option for this sub-project. | |
21 | AM_CFLAGS += -Wno-error | |
67ce7563 | 22 | |
343af227 | 23 | AM_CPPFLAGS += $(PYTHON_INCLUDE) |
36907cb5 | 24 | |
ffadb7d3 JG |
25 | EXTRA_DIST = lttng.i.in |
26 | nodist_python_PYTHON = lttng.py | |
36907cb5 DS |
27 | pyexec_LTLIBRARIES = _lttng.la |
28 | ||
29 | MAINTAINERCLEANFILES = lttng_wrap.c lttng.py | |
30 | ||
ffadb7d3 | 31 | nodist__lttng_la_SOURCES = lttng_wrap.c |
36907cb5 | 32 | _lttng_la_LDFLAGS = -module |
e2ad251c | 33 | _lttng_la_LIBADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ |
4ae04234 | 34 | $(top_builddir)/src/common/libsessiond-comm.la \ |
6a5596ac | 35 | $(top_builddir)/src/common/libcommon-gpl.la |
36907cb5 | 36 | |
36907cb5 DS |
37 | lttng_wrap.c: lttng.i |
38 | $(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i | |
36907cb5 | 39 | |
b8a74969 | 40 | CLEANFILES = lttng.i lttng.py lttng_wrap.c lttng.pyc |