diff options
author | Colin Walters <walters@verbum.org> | 2011-10-19 14:44:48 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-10-19 14:44:48 -0400 |
commit | 80de6648b5be315c9f2b73b3f04282e42517568e (patch) | |
tree | 194991d983cdb76194a9090803fab003087b8799 /tests | |
parent | df189c388b458475ac866715c7ff61a2d2cd7ccf (diff) | |
download | gobject-introspection-80de6648b5be315c9f2b73b3f04282e42517568e.tar.gz |
scanner: Support --header-only flag
This is useful for someone who just wants a set of constants from a .h
file accessible by introspection.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am index 0b287091..38e1cd04 100644 --- a/tests/scanner/Makefile.am +++ b/tests/scanner/Makefile.am @@ -115,7 +115,10 @@ Bar_1_0_gir_SCANNERFLAGS = --accept-unprefixed GIRS += Bar-1.0.gir endif +Headeronly-1.0.gir: headeronly.h + $(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) --warn-all --warn-error --reparse-validate --namespace=Headeronly --nsversion=1.0 --header-only --output=$@ $< + %.gir.check: %.gir @diff -u -U 10 $(srcdir)/$*-expected.gir $*.gir && echo " TEST $*.gir" -check-local: $(CHECKGIRS) $(TYPELIBS) +check-local: Headeronly-1.0.gir $(CHECKGIRS) $(TYPELIBS) |