[gnome-boxes] build-sys: Pass --target-glib to valac
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] build-sys: Pass --target-glib to valac
- Date: Fri, 8 Feb 2013 17:12:06 +0000 (UTC)
commit dd20c5d5a150a8c07678f256cf7c2ff1a1bec78b
Author: Christophe Fergeau <cfergeau redhat com>
Date: Wed Jan 30 15:39:57 2013 +0100
build-sys: Pass --target-glib to valac
This allows valac to use functions introduced in newer glib versions.
For example, it prefer g_byte_array_unref (introduced in glib 2.22)
to g_byte_array_free when --target-glib is higher than 2.22
https://bugzilla.gnome.org/show_bug.cgi?id=681747
configure.ac | 1 +
src/Makefile.am | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 557cd23..e7d1c68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,7 @@ GLIB_GSETTINGS
CLUTTER_GTK_MIN_VERSION=1.3.2
CLUTTER_MIN_VERSION=1.11.14
GLIB_MIN_VERSION=2.32.0
+AC_SUBST(GLIB_MIN_VERSION)
GOBJECT_INTROSPECTION_MIN_VERSION=0.9.6
GTK_MIN_VERSION=3.5.5
GTK_VNC_MIN_VERSION=0.4.4
diff --git a/src/Makefile.am b/src/Makefile.am
index 25373eb..eb1323b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -14,6 +14,7 @@ AM_CPPFLAGS = \
AM_VALAFLAGS = \
--enable-experimental \
+ --target-glib= GLIB_MIN_VERSION@ \
--vapidir=$(srcdir)/ \
--vapidir=$(top_srcdir)/libgd \
--vapidir=$(top_srcdir)/vapi \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]