From kde-commits Sun Apr 30 22:25:24 2006 From: Thomas Nagy Date: Sun, 30 Apr 2006 22:25:24 +0000 To: kde-commits Subject: playground/devtools/waf/wafadmin Message-Id: <1146435924.203215.11109.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=114643593214851 SVN commit 535998 by tnagy: Options to override the src and bld dirs (not finished). M +14 -0 Options.py M +3 -1 Scan.py --- trunk/playground/devtools/waf/wafadmin/Options.py #535997:535998 @@ -46,6 +46,20 @@ default = 0, help = 'Show verbose output [Default: False]', dest = 'verbose') + + if 'configure' in sys.argv: + p('-b', '--builddir', + action = 'store_true', + default='', + help='build dir for the project (configuration)', + dest = 'blddir') + + p('-s', '--srcdir', + action = 'store_true', + default='', + help='src dir for the project (configuration)', + dest = 'srcdir') + return parser def parse_args_impl(parser): --- trunk/playground/devtools/waf/wafadmin/Scan.py #535997:535998 @@ -31,9 +31,11 @@ srcpath = Params.g_build.m_tree.m_srcnode.abspath() bldpath = Params.g_build.m_tree.m_bldnode.abspath() - res = os.popen('gcc -E %s 2>/dev/null' % node.abspath()).readlines() + res = os.popen('gcc -M %s 2>/dev/null' % node.abspath()).readlines() lst=[] for line in res: + print line + #if rf.search(line): print line #print line,