[gnome-autoar] Add vala support and generate and install bindings



commit bd1f5bd23d95f16d34be4c2e42d5ea67a410ece7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Sep 10 13:52:23 2016 +0200

    Add vala support and generate and install bindings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771187

 Makefile.am  |   33 +++++++++++++++++++++++++++++++--
 configure.ac |    2 ++
 2 files changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5db517d..13bd485 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -146,7 +146,7 @@ typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
 CLEANFILES += $(gir_DATA) $(typelib_DATA)
 
 gnome-autoar/GnomeAutoar-0.1.gir: gnome-autoar/libgnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.la
-gnome_autoar_GnomeAutoar_0_1_gir_SCANNERFLAGS = --identifier-prefix=Autoar
+gnome_autoar_GnomeAutoar_0_1_gir_SCANNERFLAGS = --identifier-prefix=Autoar 
--c-include="gnome-autoar/gnome-autoar.h"
 gnome_autoar_GnomeAutoar_0_1_gir_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
 gnome_autoar_GnomeAutoar_0_1_gir_INCLUDES = GLib-2.0 GObject-2.0 Gio-2.0
 gnome_autoar_GnomeAutoar_0_1_gir_LIBS = gnome-autoar/libgnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.la
@@ -160,7 +160,7 @@ if ENABLE_GTK
 INTROSPECTION_GIRS += gnome-autoar/GnomeAutoarGtk-0.1.gir
 
 gnome-autoar/GnomeAutoarGtk-0.1.gir: gnome-autoar/libgnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.la 
gnome-autoar/GnomeAutoar-0.1.gir
-gnome_autoar_GnomeAutoarGtk_0_1_gir_SCANNERFLAGS = --identifier-prefix=AutoarGtk
+gnome_autoar_GnomeAutoarGtk_0_1_gir_SCANNERFLAGS = --identifier-prefix=AutoarGtk 
--c-include="gnome-autoar/autoar-gtk.h"
 gnome_autoar_GnomeAutoarGtk_0_1_gir_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
 gnome_autoar_GnomeAutoarGtk_0_1_gir_INCLUDES = GnomeAutoar-0.1 Gtk-3.0
 gnome_autoar_GnomeAutoarGtk_0_1_gir_LIBS = gnome-autoar/libgnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.la
@@ -171,6 +171,35 @@ gnome_autoar_GnomeAutoarGtk_0_1_gir_FILES = \
 
 endif
 
+if ENABLE_VAPIGEN
+include $(VAPIGEN_MAKEFILE)
+
+gnome-autoar/gnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.vapi: gnome-autoar/GnomeAutoar-0.1.gir
+
+VAPIGEN_VAPIS = gnome-autoar/gnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.vapi
+
+gnome_autoar_gnome_autoar_@LIBGNOME_AUTOAR_API_VERSION@_vapi_DEPS = gio-2.0
+gnome_autoar_gnome_autoar_@LIBGNOME_AUTOAR_API_VERSION@_vapi_METADATADIRS = $(srcdir)/gnome-autoar
+gnome_autoar_gnome_autoar_@LIBGNOME_AUTOAR_API_VERSION@_vapi_FILES = gnome-autoar/GnomeAutoar-0.1.gir
+
+if ENABLE_GTK
+gnome-autoar/gnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.vapi: gnome-autoar/GnomeAutoarGtk-0.1.gir 
gnome-autoar/gnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@.vapi
+
+VAPIGEN_VAPIS += gnome-autoar/gnome-autoar-gtk-@LIBGNOME_AUTOAR_API_VERSION@.vapi
+
+gnome_autoar_gnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_vapi_DEPS = 
gnome-autoar-@LIBGNOME_AUTOAR_API_VERSION@ gtk+-3.0
+gnome_autoar_gnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_vapi_VAPIDIRS = $(builddir)/gnome-autoar
+gnome_autoar_gnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_vapi_METADATADIRS = $(srcdir)/gnome-autoar
+gnome_autoar_gnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_vapi_FILES = gnome-autoar/GnomeAutoarGtk-0.1.gir
+gnome_autoar_gnome_autoar_gtk_@LIBGNOME_AUTOAR_API_VERSION@_vapi_GIRDIRS = $(builddir)/gnome-autoar
+endif
+
+vapidir = $(datadir)/vala/vapi
+vapi_DATA = $(VAPIGEN_VAPIS)
+
+CLEANFILES += $(vapi_DATA)
+endif
+
 endif
 
 
diff --git a/configure.ac b/configure.ac
index e63d21b..29764ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,8 @@ GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
 # check for gobject-introspection
 GOBJECT_INTROSPECTION_CHECK([1.30.0])
 
+VAPIGEN_CHECK([0.22])
+
 # Checks for libraries.
 GLIB_REQUIRED=2.35.6
 GTK_REQUIRED=3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]