[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/devtools/waf/wafadmin
From:       Thomas Nagy <tnagyemail-mail () yahoo ! fr>
Date:       2006-04-30 22:25:24
Message-ID: 1146435924.203215.11109.nullmailer () svn ! kde ! org
[Download RAW message or body]

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,
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic