summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2014-11-15 19:36:47 +0100
committerBastien Nocera <hadess@hadess.net>2014-11-27 16:04:10 +0100
commit689bf702cb3d264cca9b1a689d6237f611ad3407 (patch)
tree9c8e049006c2816db236aae24c8b0e3f26242d3f /configure.ac
parent2fa07bd6d6d6b4f918d15cbe563bcf2fd29b5f94 (diff)
downloadgrilo-689bf702cb3d264cca9b1a689d6237f611ad3407.tar.gz
vala: modernize bindings generation
Use GIR and modern autotools helpers. This binding allows to build simple plugin, it hasn't been tested for applications. https://bugzilla.gnome.org/show_bug.cgi?id=740186
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac49
1 files changed, 6 insertions, 43 deletions
diff --git a/configure.ac b/configure.ac
index 37b6b9a..8024971 100644
--- a/configure.ac
+++ b/configure.ac
@@ -238,45 +238,6 @@ AC_ARG_ENABLE([tests],
AM_CONDITIONAL(ENABLE_TESTS, test "enable_tests" = "xyes")
# ----------------------------------------------------------
-# VALA BINDINGS
-# ----------------------------------------------------------
-
-AC_PATH_PROG([VALAC], [valac])
-AC_PATH_PROG([VALA_GEN_INTROSPECT], [vala-gen-introspect])
-AC_PATH_PROG([VAPIGEN], [vapigen])
-
-AC_ARG_ENABLE([vala],
- AS_HELP_STRING([--enable-vala],
- [Enable Vala plugin support (default: auto)]),
- [
- case "$enableval" in
- yes)
- if test "x$VALAC" = "x"; then
- AC_MSG_ERROR([valac not found, install it or use --disable-vala])
- fi
- if test "x$VALA_GEN_INTROSPECT" = "x"; then
- AC_MSG_ERROR([vala-gen-introspect not found, install it or use --disable-vala])
- fi
- if test "x$VAPIGEN" = "x"; then
- AC_MSG_ERROR([vapigen not found, install it or use --disable-vala])
- fi
- ;;
- no)
- enable_vala=no
- ;;
- esac
- ],
- [
- if test "x$VALAC" != "x" -a "x$VALA_GEN_INTROSPECT" != "x" -a "x$VAPIGEN" != "x"; then
- enable_vala=yes
- else
- enable_vala=no
- fi
- ])
-
-AM_CONDITIONAL([HAVE_VALA], [test "x$enable_vala" = "xyes"])
-
-# ----------------------------------------------------------
# GTK-DOC
# ----------------------------------------------------------
@@ -289,6 +250,12 @@ GTK_DOC_CHECK([1.10],[--flavour no-tmpl])
GOBJECT_INTROSPECTION_CHECK([0.9])
# ----------------------------------------------------------
+# VALA BINDINGS
+# ----------------------------------------------------------
+
+VAPIGEN_CHECK([0.26])
+
+# ----------------------------------------------------------
# GETTEXT/INTLTOOL
# ----------------------------------------------------------
@@ -335,10 +302,6 @@ AC_CONFIG_FILES([
tools/grilo-launch/Makefile
bindings/Makefile
bindings/vala/Makefile
- bindings/vala/grilo-uninstalled.files
- bindings/vala/grilo-uninstalled.namespace
- bindings/vala/grilo-net-uninstalled.files
- bindings/vala/grilo-net-uninstalled.namespace
doc/Makefile
doc/grilo/Makefile
examples/Makefile