Clean-up: silence warnings for generated code on RHEL8
[lttng-tools.git] / extras / bindings / swig / python / Makefile.am
... / ...
CommitLineData
1# SPDX-License-Identifier: GPL-2.0-only
2
3lttng.i: lttng.i.in
4 $(SED) "s/LTTNG_VERSION_STR/LTTng $(PACKAGE_VERSION)/g" < $(srcdir)/lttng.i.in >lttng.i
5
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#
10# Disable -Wshadow for that file.
11AM_CFLAGS += -Wno-shadow
12
13AM_CFLAGS += -Wno-missing-field-initializers
14
15AM_CFLAGS += -Wno-cast-function-type
16
17AM_CPPFLAGS += $(PYTHON_INCLUDE)
18
19EXTRA_DIST = lttng.i.in
20nodist_python_PYTHON = lttng.py
21pyexec_LTLIBRARIES = _lttng.la
22
23MAINTAINERCLEANFILES = lttng_wrap.c lttng.py
24
25nodist__lttng_la_SOURCES = lttng_wrap.c
26_lttng_la_LDFLAGS = -module
27_lttng_la_LIBADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
28 $(top_builddir)/src/common/libsessiond-comm.la \
29 $(top_builddir)/src/common/libcommon-gpl.la
30
31lttng_wrap.c: lttng.i
32 $(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i
33
34CLEANFILES = lttng.i lttng.py lttng_wrap.c lttng.pyc
This page took 0.023962 seconds and 4 git commands to generate.