build: a useful example of a debug technique in waf
authorAndrew Tridgell <tridge@samba.org>
Sat, 6 Mar 2010 23:37:32 +0000 (10:37 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:40 +0000 (20:26 +1000)
buildtools/wafsamba/samba_utils.py

index 529505d3178bb28058d7c5eccf56c3cdad813c92..333477e4998f1671dad62f247becdbcad3220be4 100644 (file)
@@ -221,3 +221,11 @@ def BUILD_PATH(bld, relpath):
 Build.BuildContext.BUILD_PATH = BUILD_PATH
 
 
+# this is a useful way of debugging some of the rules in waf
+from TaskGen import feature, after
+@feature('dbg')
+@after('apply_core', 'apply_obj_vars_cc')
+def dbg(self):
+       if self.target == 'HEIMDAL_HEIM_ASN1':
+               print "@@@@@@@@@@@@@@2", self.includes, self.env._CCINCFLAGS
+