[Scons-users] post action after builder action run
Bill Deegan
bill at baddogconsulting.com
Mon Oct 1 17:46:10 EDT 2012
Phil,
AddPostAction is added to a Node.
x=env.SharedObject('a.cxx')
env.AddPostAction(x, 'rm -f *${TARGET.filebase}.other'*)
Might be the trick.
Stick that in a PseudoBuilder and use that.
Or do use a list of actions as Gary suggests.
-Bill
On Mon, Oct 1, 2012 at 6:16 AM, Philipp Kraus <philipp.kraus at flashpixx.de>wrote:
> **
>
> On 2012-10-01 03:25:23 +0200, William Deegan said:
>
>
> 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.
>
>
> In the documentation the Post / Pre-Action is defined for the environment,
> but my question is for the builder, so I would like define an post-action
>
> after the builder action, because I need it depend on the source (input of
> the builder / emitter)
>
>
> Phil
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121001/1cc62362/attachment.htm>
More information about the Scons-users
mailing list