[Scons-users] Is there a way to control what gets printed when an action builder get called

Mats Wichmann mats at wichmann.us
Tue Jun 23 11:08:30 EDT 2020


On 6/23/20 8:40 AM, Erik Kazandjian wrote:
> Hi
> I made an action builder with the following code
> 
> def generate(env, **kw):
> env['BUILDERS']['myBuilder'] = SCons.Builder.Builder(action = muAction,
> emitter = myEmitter)
> 
> Every time the action of that builder gets called it prints the target
> list and sources list. Is there way to change what gets printed

If you pass a second positional argument to the Action factory function,
it is something which controls output.

See https://scons.org/doc/3.1.2/HTML/scons-man.html#action_objects

as usual with SCons, there is too much flexibility here (biased personal
opinion), but hopefully you can get it to do what you want.


More information about the Scons-users mailing list