[model/wip/api-redesign] Generate vapi file automatically
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [model/wip/api-redesign] Generate vapi file automatically
- Date: Fri, 26 Oct 2012 22:15:15 +0000 (UTC)
commit e636d3e0b4da8c99e60d91179d732a5621e5ba96
Author: Alberto Ruiz <aruiz gnome org>
Date: Sat Oct 27 00:08:58 2012 +0200
Generate vapi file automatically
configure.ac | 2 +
model/Makefile.am | 3 +
model/model.vapi | 113 -----------------------------------------------------
3 files changed, 5 insertions(+), 113 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e0dd4d6..c752881 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,8 @@ AM_PROG_VALAC
GTK_DOC_CHECK
AC_PROG_CC
+VALA_PROG_VAPIGEN(0.18)
+
PKG_CHECK_MODULES(introspection, gobject-introspection-1.0 >= 0.6.3)
PKG_CHECK_MODULES(gobject, gobject-2.0)
PKG_CHECK_MODULES(gtk, gtk+-3.0)
diff --git a/model/Makefile.am b/model/Makefile.am
index d6d2059..6fb1a3e 100644
--- a/model/Makefile.am
+++ b/model/Makefile.am
@@ -25,6 +25,9 @@ typelib_DATA = Model-0.2.typelib
pkgconfig_DATA = model.pc
vapi_DATA = model.vapi
+model.vapi: $(gir_DATA)
+ vapigen $(gir_DATA) --library=model
+
EXTRA_DIST = model.vapi
CLEANFILES = *.gir *.typelib *.tmp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]