[gnome-python] Use the 'cflags' 3rd party waf module to enable debug/release cflags



commit 18bf875091b55c669200f73398a2feb0ff66d7ef
Author: Gustavo Carneiro <gjc inescporto pt>
Date:   Wed Mar 31 00:32:49 2010 +0100

    Use the 'cflags' 3rd party waf module to enable debug/release cflags

 wscript |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/wscript b/wscript
index d3b4f0b..d1ccc9b 100644
--- a/wscript
+++ b/wscript
@@ -44,6 +44,7 @@ def set_options(opt):
     opt.tool_options('compiler_cc')
     opt.tool_options('gnome')
     opt.tool_options('gnu_dirs')
+    opt.tool_options('cflags')
 
     opt.add_option('--enable-modules',
                    help=('Enable only the specified modules.'),
@@ -59,6 +60,7 @@ def configure(conf):
     conf.check_tool('command')
     conf.check_tool('pkgconfig')
     conf.check_tool('gnu_dirs')
+    conf.check_tool('cflags')
 
     if sys.platform == 'darwin':
         conf.check_tool('osx')
@@ -213,7 +215,8 @@ def _run_tests(env):
         os_env['PYTHONPATH'] = os.pathsep.join([builddir, os_env['PYTHONPATH']])
     else:
         os_env['PYTHONPATH'] = builddir
-    cmd = [env['PYTHON'], os.path.join('tests', 'runtests.py'), builddir]
+    cmd = [#'gdb', '--args',
+           env['PYTHON'], os.path.join('tests', 'runtests.py'), builddir]
     retval = subprocess.Popen(cmd, env=os_env).wait()
     if retval:
         sys.exit(retval)



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