[Xfce4-commits] [xfce/libxfce4util] 02/05: Add VAPIGEN for vala binding generation.
noreply at xfce.org
noreply at xfce.org
Sun Aug 13 14:08:49 CEST 2017
This is an automated email from the git hooks/post-receive script.
e r i c p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/libxfce4util.
commit bef6db71ec7366a66b5fa42eec33d956d581f9ce
Author: Vidar Haarr <vhaarr at gmail.com>
Date: Mon Aug 7 18:38:17 2017 +0200
Add VAPIGEN for vala binding generation.
Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
.gitignore | 1 +
configure.ac.in | 5 +++++
libxfce4util/Makefile.am | 19 +++++++++++++++++++
3 files changed, 25 insertions(+)
diff --git a/.gitignore b/.gitignore
index 2cecfe0..882dec3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,6 +41,7 @@ libxfce4util/abicheck.sh.trs
libxfce4util/libxfce4util-1.0.gir
libxfce4util/libxfce4util-1.0.pc
libxfce4util/libxfce4util-1.0.typelib
+libxfce4util/libxfce4util-1.0.vapi
libxfce4util/libxfce4util-alias.h
libxfce4util/libxfce4util-aliasdef.c
libxfce4util/libxfce4util-config.h
diff --git a/configure.ac.in b/configure.ac.in
index 4bc9a26..157145c 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -133,6 +133,11 @@ dnl *** Check for gobject-introspection ***
dnl ***************************************
GOBJECT_INTROSPECTION_CHECK([1.30.0])
+dnl *************************
+dnl *** Check for vapigen ***
+dnl *************************
+VAPIGEN_CHECK()
+
dnl ****************************************************************************
dnl *** Check for a broken putenv(3) implementation that requires strings ***
dnl *** to be malloced and not freed after a successfully call to putenv(3). ***
diff --git a/libxfce4util/Makefile.am b/libxfce4util/Makefile.am
index 3ba2a65..0d0806b 100644
--- a/libxfce4util/Makefile.am
+++ b/libxfce4util/Makefile.am
@@ -153,6 +153,25 @@ EXTRA_DIST = \
libxfce4util-aliasdef.c \
make-libxfce4util-alias.pl
+if ENABLE_VAPIGEN
+-include $(VAPIGEN_MAKEFILE)
+
+libxfce4util-1.0.vapi: libxfce4util-1.0.gir
+
+VAPIGEN_VAPIS = libxfce4util-1.0.vapi
+VAPIGEN_GIRDIRS = $(prefix)/share/gir-1.0
+
+## libxfce4util_1_0_vapi_DEPS = libxfce4util-1.0
+libxfce4util_1_0_vapi_METADATADIRS = $(srcdir)
+libxfce4util_1_0_vapi_FILES = libxfce4util-1.0.gir
+
+vapidir = $(datadir)/vala/vapi
+vapi_DATA = $(VAPIGEN_VAPIS)
+## $(VAPIGEN_VAPIS:.vapi=.deps)
+
+EXTRA_DIST += libxfce4util-1.0.metadata
+endif
+
if HAVE_GNUC_VISIBILITY
TESTS = abicheck.sh
endif
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list