]> spindle.queued.net Git - midori/commitdiff
Extensive/ no checks in Vala according to debug level
authorChristian Dywan <christian@twotoasts.de>
Sun, 25 Apr 2010 21:37:58 +0000 (23:37 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 25 Apr 2010 21:39:00 +0000 (23:39 +0200)
wscript

diff --git a/wscript b/wscript
index 6d866a53fdf58c0c2a25b2d9282b42fdde187892..140b89850a91e2e20949eb225dd97410bd0ffbcc 100644 (file)
--- a/wscript
+++ b/wscript
@@ -322,6 +322,10 @@ def configure (conf):
                 '-DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED '
                 '-DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED '
                 '-DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE'.split ())
+    if debug_level == 'full':
+        conf.env.append_value ('VALAFLAGS', '--enable-checking'.split ())
+    elif debug_level == 'none':
+        conf.env.append_value ('VALAFLAGS', '--disable-assert')
     print '''
         Localization:        %(nls)s (intltool)
         Icon optimizations:  %(icons)s (rsvg-convert)