Re: Is there a way to control what gets printed when an action builder get called

Mats Wichmann <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.