[Xfce4-commits] <midori:master> Error out if Vala < 0.13.2, GTK+ 3 and extensions
Christian Dywan
noreply at xfce.org
Thu Oct 20 10:12:01 CEST 2011
Updating branch refs/heads/master
to ac5eb28d499234c7379adabc7771ab8a509c13f3 (commit)
from b6469de5e6b0cccee451561ad0607c99dd0ac06c (commit)
commit ac5eb28d499234c7379adabc7771ab8a509c13f3
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Oct 20 09:47:11 2011 +0200
Error out if Vala < 0.13.2, GTK+ 3 and extensions
See https://bugs.launchpad.net/midori/+bug/871579
wscript | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/wscript b/wscript
index 8d66022..d8abd15 100644
--- a/wscript
+++ b/wscript
@@ -196,6 +196,15 @@ def configure (conf):
includes='/usr/X11R6/include', mandatory=False)
conf.check (lib='Xss', libpath='/usr/X11R6/lib', mandatory=False)
if option_enabled ('gtk3'):
+ if option_enabled ('addons') and ( not ( \
+ conf.env['VALAC_VERSION'] >= 0 \
+ and conf.env['VALAC_VERSION'][1] >= 13 \
+ and conf.env['VALAC_VERSION'][2] >= 2)):
+ Utils.pprint ('RED', 'Vala 0.13.2 or later is required ' \
+ 'to build with GTK+ 3 and extensions.\n' \
+ 'Pass --disable-addons to build without extensions.\n' \
+ 'Pass --disable-gtk3 to build with extensions and GTK+ 2.')
+ sys.exit (1)
check_pkg ('gtk+-3.0', '3.0.0', var='GTK', mandatory=False)
check_pkg ('webkitgtk-3.0', '1.1.17', var='WEBKIT', mandatory=False)
if not conf.env['HAVE_GTK'] or not conf.env['HAVE_WEBKIT']:
More information about the Xfce4-commits
mailing list