[gegl-gtk] vala: Add a .metadata file to correct the cheader in generated .vapi



commit 34afdadcc0818ebb84d92e4af08b2110478f7e7b
Author: Jon Nordby <jononor gmail com>
Date:   Thu Apr 12 18:30:05 2012 +0200

    vala: Add a .metadata file to correct the cheader in generated .vapi

 configure.ac                 |    8 ++++++++
 gegl-gtk/.gitignore          |    1 +
 gegl-gtk/GeglGtk.metadata.in |    1 +
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a479954..8e01ffc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -213,6 +213,14 @@ case "$with_gtk" in
 	*) ;;
 esac
 
+m4_define([gegl_gtk_gtk_version], [$GEGL_GTK_GTK_VERSION])
+
+# Files with versions in their names
+AC_CONFIG_FILES(
+gegl-gtk/GeglGtk\
+gegl_gtk_gtk_version-gegl_gtk_api_version.metadata:gegl-gtk/GeglGtk.metadata.in
+)
+
 AC_SUBST(GEGL_GTK_GTK_VERSION)
 
 AM_CONDITIONAL(HAVE_GTK2, test "$have_gtk" = "2.0")
diff --git a/gegl-gtk/.gitignore b/gegl-gtk/.gitignore
index 95b99f3..9324c98 100644
--- a/gegl-gtk/.gitignore
+++ b/gegl-gtk/.gitignore
@@ -1,5 +1,6 @@
 *.gir
 *.typelib
 *.vapi
+*.metadata
 gegl-gtk-enums.c
 gegl-gtk-marshal.*
diff --git a/gegl-gtk/GeglGtk.metadata.in b/gegl-gtk/GeglGtk.metadata.in
new file mode 100644
index 0000000..362767f
--- /dev/null
+++ b/gegl-gtk/GeglGtk.metadata.in
@@ -0,0 +1 @@
+GeglGtk2 cheader_filename="gegl-gtk.h"



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