[Scons-users] SCons Progress feature
me at ikravets.com
Fri Jul 15 07:12:18 EDT 2016
Could someone give me a few hints how to resolve the next task? I want to use Progress(callable) in pair with "—silent" option. The idea is to show only the files that are affected by builders.
Progress('$TARGET\r') - does it in right way. However, it prints ALL nodes not matter were they changed or not.
From the docs:
def my_progress_function(node, *args, **kw):
print 'Evaluating node %s!' % node
1. How can we determine which node "will be built/re-built"? Modified?
2. How to filter only source code targets (*.c, *.cpp, .S). Yes, we can use `node.path.endswith((".c", ".cpp")) and etc. Do we have something better in SCons.Node.FS.File? I've tried a few methods from API of this class but didn't find instruments to determine "$TARGET".
Currently, we own callback it prints "every node" (source code, objects, headers, toolchains, etc).
Would be good to show only affected TARGETS and the only that should be built.
Thanks in advance!
More information about the Scons-users