diff options
-rw-r--r-- | tests/Makefile.am | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index adeba760..bdd0fa7c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,7 +6,7 @@ EXTRA_DIST= BUILT_SOURCES= CLEANFILES= -AM_CFLAGS = $(GOBJECT_CFLAGS) $(GI_HIDDEN_VISIBILITY_CFLAGS) +AM_CFLAGS = $(GOBJECT_CFLAGS) $(GI_HIDDEN_VISIBILITY_CFLAGS) -I$(srcdir) LIBADD = $(GOBJECT_LIBS) testsdir = $(datadir)/gobject-introspection-1.0/tests @@ -39,7 +39,11 @@ CLEANFILES += \ GIMarshallingTests-1.0.typelib everything-stamp.h: Makefile - $(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) --generate-typelib-tests=Everything,everything.h,everything.c + $(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) \ + --generate-typelib-tests=Everything,everything.h,everything.c \ + --function-decoration=_GI_TEST_EXTERN \ + --include-first-in-src=config.h \ + --include-last-in-header=gitestmacros.h touch $@ everything.c: everything-stamp.h @@ -54,6 +58,7 @@ Everything-1.0.gir: libeverything-1.0.la Makefile --libtool="$(LIBTOOL)" \ --add-include-path=$(top_builddir) --include=Gio-2.0 \ --library=libeverything-1.0.la --output=$@ \ + -I$(srcdir) \ everything.h everything.c GIMarshallingTests-1.0.gir: libgimarshallingtests-1.0.la Makefile |