summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-09-03 11:26:19 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-09-04 00:07:30 +0800
commit99423f4104e699021e17752461cd6f23b1ebca82 (patch)
treef570a0ab2c9793b94c22cbc58f01c7febc543f5c /tests
parentc112e9830f8af59275d6f590bbcb365c9968c1fc (diff)
downloadgobject-introspection-99423f4104e699021e17752461cd6f23b1ebca82.tar.gz
tests/Makefile.am: Update Generation of everything.[c|h]
Make use of the new options in codegen.py/testcodegen.py so that the symbols in the generated everything.[c|h] can be annotated for export, and the necessary headers to facilitate the compile-time symbol exporting can be included appropriately. https://bugzilla.gnome.org/show_bug.cgi?id=732669
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am9
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