[Scons-users] post action after builder action run
William Deegan
bill at baddogconsulting.com
Sun Sep 30 21:25:23 EDT 2012
Phil,
On Sep 30, 2012, at 9:55 AM, Kraus Philipp <philipp.kraus at flashpixx.de> wrote:
> Hello,
>
> I have got create a modified swig builder. The builder works fine and creates the correct output, but the swig command creates 3 files,
> but one files is not use (it's an empty class files). I can not disable this creation on parameter flags or anything else, so after the Scons
> build action command is run, I would like to create a "delete command".
>
> My builder creates shows:
>
> Builder( action = SCons.Action.Action("swig -Wall -O -templatereduce -c++ -java -package ${SwigJavaPackage(SOURCE.dir)} -outdir ${SwigJavaOutDir(SOURCE.dir, TARGETS)} -o ${SwigJavaCppDir(SOURCE.filebase, TARGETS)} $SOURCE"), ...)
>
> Can I run a function after the action command or can I run a function after each target is created?
http://www.scons.org/doc/production/HTML/scons-man.html
Take a look at : env.AddPostAction() it's probably what you want.
-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20120930/8149ae60/attachment.html>
More information about the Scons-users
mailing list