diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-07 10:37:32 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:40 +1000 |
commit | 88a138f373aa807079321a00e4f2dc083a17a422 (patch) | |
tree | 978fe8ebd6090f118e9ff1b134573be55831c899 | |
parent | d004964142b0eac88528bb556228a49742725f4e (diff) | |
download | samba-88a138f373aa807079321a00e4f2dc083a17a422.tar.gz samba-88a138f373aa807079321a00e4f2dc083a17a422.tar.bz2 samba-88a138f373aa807079321a00e4f2dc083a17a422.zip |
build: a useful example of a debug technique in waf
-rw-r--r-- | buildtools/wafsamba/samba_utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index 529505d317..333477e499 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -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 + |