[Scons-users] Custom Builders / Command / Execute

Bill Deegan bill at baddogconsulting.com
Wed Nov 2 09:44:20 EDT 2016


It's normal.
You can manually add java.exe as a dependency on the target with
env.Depends() if you want.

You command produces more than just a single output file right?

-Bill

On Wed, Nov 2, 2016 at 9:20 AM, Pierre-Luc Boily <pierreluc.boily at gmail.com>
wrote:

> Good point about the mkdir.  It makes things even more cleaner! Thx
>
> I realized something about scons Command action.  SCons is able to parse
> action to build the tree, but depending how do I write the action, the tree
> is different.  Let me explain :
>
>
> If my action is written as this :
>
> tgt = env.Command(target  = target,
>                       source = [source, side_library_path],
>                       action = ['echo (+) Building lexix datapack... (no
> find and no chmod) - Grammar',
>                                 compileGrammar,
>                                 'echo Done build_grammar_for_vrx.' ]
>
>
> SCons detect that java.exe in a dependency, which is pretty cool!
>
> But, if my action is written like that (and I have to, I unfortunately need
> to move to another folder) :
>
> tgt = env.Command(target  = target,
>                       source = [source, side_library_path],
>                       action = ['echo (+) Building lexix datapack... (no
> find and no chmod) - Grammar',
>                                 changeDirectory + andOperator +
> compileGrammar,
>                                 'echo Done build_grammar_for_vrx.'
>
>
> Then, SCons is not able to detect that java.exe is a dependency.  It looks
> like that the changeDirectory shadows the compileGrammar.
>
> Is it a normal behavior, or should I worry about that?
>
> Thx a lot!
>
>
>
>
> --
> View this message in context: http://scons.1086193.n5.
> nabble.com/Custom-Builders-Command-Execute-tp40687p40695.html
> Sent from the Users mailing list archive at Nabble.com.
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20161102/7940950f/attachment.html>


More information about the Scons-users mailing list