From 30cc74bf0aac9ac0c2749bbf348194f90ecd7774 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Thu, 15 Jan 2015 20:04:48 +0100 Subject: [PATCH] Makefile.am: generate vapi Use g-ir-scanner with header-only. This produces warnings about unresolved GBytes that make little sense. --- Makefile.am | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1ea5af2..8dc41b2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,7 +24,22 @@ test_mconn_crypt_vala_SOURCES = test/mconn-crypt-vala-test.vala \ src/mconn-crypt.c \ src/mconn-crypt.h test_mconn_crypt_vala_LDADD = $(MCONNECT_LIBS) -test_mconn_crypt_vala_CFLAGS = $(MCONNECT_CFLAGS) -Isrc +test_mconn_crypt_vala_CFLAGS = $(MCONNECT_CFLAGS) -Isrc -I. -VALAFLAGS = $(MCONNECT_VALAFLAGS) --vapidir=src --pkg=mconn-crypt +VALAFLAGS = $(MCONNECT_VALAFLAGS) --vapidir=. --pkg=mconn-crypt + +mconn-crypt.gir: src/mconn-crypt.h + rm -f $@ + g-ir-scanner --header-only -n MConn --symbol-prefix mconn \ + $< $(filter -I%,$(MCONNECT_CFLAGS)) | \ + grep -v warning: > $@ + +mconn-crypt.vapi: mconn-crypt.gir + rm -f $@ + vapigen --library mconn-crypt $< + + +BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gir + +CLEANFILES = $(BUILT_SOURCES)