From eed7fe941212c5fd61ba89516a497cd5804bae44 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 12 Aug 2018 10:45:42 +0200 Subject: [PATCH] interface: make language bindings depend on all relevant headers Signed-off-by: Sven Verdoolaege --- Makefile.am | 8 +++++++- all.c.in | 1 + configure.ac | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 all.c.in diff --git a/Makefile.am b/Makefile.am index 53605e5..e9f9862 100644 --- a/Makefile.am +++ b/Makefile.am @@ -150,7 +150,13 @@ pet_check_code_SOURCES = \ pet_check_code.c if HAVE_ISL_BUILDDIR -isl.py: interface/isl.py.top +# dummy library that captures the dependencies on all headers +# that are relevant for the bindings +noinst_LIBRARIES = libdep.a +libdep_a_CPPFLAGS = $(DEFAULT_INCLUDES) @ISL_CFLAGS@ +libdep_a_SOURCES = all.c + +isl.py: libdep.a interface/isl.py.top (cat $(srcdir)/interface/isl.py.top && \ @ISL_BUILDDIR@/interface/extract_interface$(EXEEXT) \ --language=python \ diff --git a/all.c.in b/all.c.in new file mode 100644 index 0000000..f529a25 --- /dev/null +++ b/all.c.in @@ -0,0 +1 @@ +#include "@ISL_SRCDIR@/interface/all.h" diff --git a/configure.ac b/configure.ac index ad5d33a..ed07dc0 100644 --- a/configure.ac +++ b/configure.ac @@ -81,6 +81,7 @@ AC_CONFIG_HEADERS(config.h) AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES([pet_test.sh], [chmod +x pet_test.sh]) AC_CONFIG_FILES([codegen_test.sh], [chmod +x codegen_test.sh]) +AC_CONFIG_FILES(all.c) if test $with_isl = bundled; then AC_CONFIG_SUBDIRS(isl) fi -- 2.11.4.GIT