From 88a138f373aa807079321a00e4f2dc083a17a422 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Mar 2010 10:37:32 +1100 Subject: build: a useful example of a debug technique in waf --- buildtools/wafsamba/samba_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + -- cgit