summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-02-19 17:52:22 -0500
committerColin Walters <walters@verbum.org>2009-02-20 09:10:46 -0500
commitff4628ced457a5460f854abb8cdf923cd67c4e6e (patch)
treea9ea00be6333511b7ea1232b039523731f1fe0b8 /tests
parentc86b12154bda14294dddf58bf3026c487566e3af (diff)
downloadgobject-introspection-ff4628ced457a5460f854abb8cdf923cd67c4e6e.tar.gz
Bug 572423 - Support --c-include argument for specifying C headers
This option is for specifying inside the .gir what C header files should be included by C consumers (as opposed to parsed by the scanner).
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/Makefile.am1
-rw-r--r--tests/scanner/foo-1.0-expected.gir1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am
index ec7b2b55..e3c03932 100644
--- a/tests/scanner/Makefile.am
+++ b/tests/scanner/Makefile.am
@@ -68,6 +68,7 @@ foo-1.0.gir: libfoo.la foo.c foo.h utility-1.0.gir $(SCANNER_BIN) $(SCANNER_LIBS
$(CHECK_DEBUG) $(SCANNER) \
--include=GObject-2.0 \
--include=utility-1.0 \
+ --c-include="foo.h" \
--libtool="$(LIBTOOL)" \
--library=foo \
--namespace=foo \
diff --git a/tests/scanner/foo-1.0-expected.gir b/tests/scanner/foo-1.0-expected.gir
index c0fa2aa5..6a1d8a44 100644
--- a/tests/scanner/foo-1.0-expected.gir
+++ b/tests/scanner/foo-1.0-expected.gir
@@ -10,6 +10,7 @@ and/or use gtk-doc annotations. -->
<include name="GObject" version="2.0"/>
<include name="utility" version="1.0"/>
<package name="gobject-2.0"/>
+ <c:include name="foo.h"/>
<namespace name="foo" version="1.0" shared-library="foo">
<alias name="List" target="GLib.SList" c:type="FooList"/>
<alias name="ObjectCookie" target="any" c:type="FooObjectCookie"/>