[librest/wip/baedert/tests: 4/10] Generate vapi
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/baedert/tests: 4/10] Generate vapi
- Date: Fri, 22 Jul 2016 08:04:03 +0000 (UTC)
commit 52a5368ab95df8733e09dfa9da2eb287a4a1b934
Author: Timm Bäder <mail baedert org>
Date: Thu Jul 21 11:48:41 2016 +0200
Generate vapi
.gitignore | 1 +
configure.ac | 5 +++++
rest/Makefile.am | 10 ++++++++++
3 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 95370dc..8e4bf0c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -59,6 +59,7 @@ rest/rest-enum-types.h
rest/stamp-rest-enum-types.h
rest/rest-marshal.[ch]
rest/test-runner
+rest/rest-1.0.vapi
tests/custom-serialize
tests/flickr
tests/lastfm
diff --git a/configure.ac b/configure.ac
index 9fd2615..9d7a9f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,6 +53,10 @@ GTK_DOC_CHECK([1.13], [--flavour no-tmpl])
GOBJECT_INTROSPECTION_CHECK([0.6.7])
+AX_REQUIRE_DEFINED([VAPIGEN_CHECK])
+VAPIGEN_CHECK
+
+
AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
localedir=${datadir}/locale
@@ -133,4 +137,5 @@ echo " prefix: ${prefix}"
echo ""
echo " Documentation: ${enable_gtk_doc}"
echo " Introspection data: ${enable_introspection}"
+echo " Generate VAPI: ${enable_vala}"
echo ""
diff --git a/rest/Makefile.am b/rest/Makefile.am
index 64205d4..13aea24 100644
--- a/rest/Makefile.am
+++ b/rest/Makefile.am
@@ -136,4 +136,14 @@ CLEANFILES += $(dist_gir_DATA) \
stamp-rest-enum-types.h \
$(NULL)
+
+if ENABLE_VAPIGEN
+rest-@API_VERSION@.vapi: Rest-@API_VERSION@.gir
+ $(VAPIGEN) --metadatadir=$(top_srcdir)/rest --pkg gio-2.0 --library=rest-1.0 $^
+
+vapidir=$(datadir)/vala/vapi
+vapi_DATA=rest-@API_VERSION@.vapi
+CLEANFILES += rest-@API_VERSION@.vapi
+endif
+
endif # HAVE_INTROSPECTION
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]