[Scons-users] Builder Chains Not Working?

William Deegan bill at baddogconsulting.com
Wed Nov 14 17:20:01 EST 2012


Mark,

On Nov 14, 2012, at 3:58 AM, Mark Ribau <mribau at realtaentertainment.com> wrote:


> So I've got a series of builders, that successively can build from a root source file, each building a target from the previous.

>

> in deeper SConscripts:

> env.Builder1("target0.json", "source0.json")

>

> in Builder1's emitter:

> env.MultiBuilder1("target1.json", "target0.json")

>

> in a parent SConscript:

>

> ret = env.MultiBuilder1("target2.json", ['target1.json', 'source2.json'])

> ret = env.Builder2("target2.binary", "target2.json")

> ret = env.InstallAs(os.path.join(installBase,"target2.binary"), "target2.binaryplatform")

> env.Alias( "myalias", True, ret)

>

>

> The problem I have is that it attempts to build the final thing in the chain, and never builds the previous ones. The dependency graph looks correct though:

>

> +-myalias

> +-install\target2.binary

> +-data\target2.binaryplatform +-data\target2.json | +-data\target1.json | | +-data\folder\target0.json

> | | | +-data\folder\source0.json

> | +-data\source2.json

>

> The error we are getting is:

> scons: *** [data\target2.binaryplatform] data\target2.json: No such file or directory


Fairly certain you shouldn't do anything but add the sources and targets in the emitter.

Also the arguments to InstallAs() are (target,source) and not (source,target) as you have above (I believe).

_Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121114/3061830f/attachment.html>


More information about the Scons-users mailing list