[gobject-introspection] tests/Makefile.am: Update Generation of everything.[c|h]
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests/Makefile.am: Update Generation of everything.[c|h]
- Date: Wed, 3 Sep 2014 16:08:27 +0000 (UTC)
commit 99423f4104e699021e17752461cd6f23b1ebca82
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Sep 3 11:26:19 2014 +0800
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
tests/Makefile.am | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index adeba76..bdd0fa7 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]