[Scons-users] code styler tool in SCons

Rob Deckers Rob.Deckers at vanderlande.com
Thu Oct 10 03:28:27 EDT 2013


Hi,

In our current make-environment we use a code-styler / code-beautifier tool (named: astyle).
Currently, in every build this tool is executed recursively from the project root.
The tool itself check's for non-read-only *.cpp & *.h files (means they are changed) and styles the file. So source and target and the same file.

Now in SCons, I tried implement the same tool. I created a simple style.py tool that uses a env.Execute in the generate function.
This works fast enough and good for the regular SCons build, but this doesn't do anything once the developer is in the --interactive build mode.

How can I let every build be preseeded by this code-styler?

Kind regards,
Rob Deckers
** Disclaimer **

This e-mail, including any attachments, may include proprietary and confidential information of Vanderlande Industries and may only be read by the person or those persons to whom it is addressed.
This document is forwarded to you in such a form (e-mail) that Vanderlande Industries cannot guarantee the completeness and/or correctness of its contents and information.
If you have received this e-mail message in error, please notify us immediately. Please also delete this document from your computer.
This document may not be reproduced, copied, distributed, published, modified, or furnished to third parties, without the prior written consent of Vanderlande Industries.



More information about the Scons-users mailing list