[Scons-users] post action after builder action run
Philipp Kraus
philipp.kraus at flashpixx.de
Mon Oct 1 09:16:10 EDT 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121001/9f45ed25/attachment.htm>
More information about the Scons-users
mailing list