asyncworker r90 - in trunk: . bindings



Author: pvanhoof
Date: Mon Apr 28 11:44:09 2008
New Revision: 90
URL: http://svn.gnome.org/viewvc/asyncworker?rev=90&view=rev

Log:
2008-04-28  Philip Van Hoof  <pvanhoof gnome org>

        * Added Vala bindings



Modified:
   trunk/ChangeLog
   trunk/bindings/Makefile.am
   trunk/configure.ac

Modified: trunk/bindings/Makefile.am
==============================================================================
--- trunk/bindings/Makefile.am	(original)
+++ trunk/bindings/Makefile.am	Mon Apr 28 11:44:09 2008
@@ -8,3 +8,7 @@
 SUBDIRS += csharp
 endif
 
+if ENABLE_VALA
+SUBDIRS += vala
+endif
+

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Mon Apr 28 11:44:09 2008
@@ -27,6 +27,25 @@
 dnl gtk-doc
 GTK_DOC_CHECK([1.0])
 
+AC_ARG_ENABLE(vala,
+	[AC_HELP_STRING([--enable-vala], [Compile with Vala bindings])],enable_vala="$enableval",enable_vala=no)
+
+if test "x$enable_vala" = "xyes"; then
+	PKG_CHECK_MODULES(VALA, [vala-1.0 >= 0.3.1])
+	VAPIDIR=`$PKG_CONFIG --variable=vapidir vala-1.0`
+	AC_SUBST(VAPIDIR)
+	AC_PATH_PROG(VALAC, valac, no)
+	if test "x$VALAC" = "xno"; then
+        	AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])
+	fi
+	AC_PATH_PROG(VAPIGEN, vapigen, no)
+	if test "x$VAPIGEN" = "xno"; then
+        	AC_MSG_ERROR([Cannot find the "vapigen" binary in your PATH])
+	fi
+fi
+
+AM_CONDITIONAL(ENABLE_VALA, test x$enable_vala = xyes)
+
 dnl python bindings
 AC_ARG_ENABLE(python,
             [AC_HELP_STRING([--enable-python], [Compile with python bindings])],enable_python="$enableval",enable_python=no)
@@ -194,6 +213,7 @@
 bindings/csharp/Makefile
 bindings/csharp/oasyncworker-1.0.dll.config
 bindings/csharp/AssemblyInfo.cs
+bindings/vala/Makefile
 oasyncworker.pc
 ])
 



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