[Scons-users] Builder Chains Not Working?

Mark Ribau mribau at realtaentertainment.com
Wed Nov 14 17:40:12 EST 2012


How should we dynamically add discovered dependency targets if not in the
emitter?
*
*
*
*
----
*mark ribau*
*software engineer
**direct tel/fax: 610.428.3962*
*corp email: mribau at realtaentertainment.com*
***
corp tel: 408.559.6300
1901 s. bascom ave. | 9th fl. campbell, ca 95008

*

*CONFIDENTIALITY NOTICE: *This e-mail and any accompanying documents
contain confidential information intended for a specific individual
purpose. This information is private and protected by law. If you are not
the intended recipient, you are hereby notified that any disclosure,
copying or distribution, or the taking of any action based on the contents
of this information, is strictly prohibited. If you have received this
transmission in error, please delete it. Thank you.



On Wed, Nov 14, 2012 at 2:20 PM, William Deegan
<bill at baddogconsulting.com>wrote:


> 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

>

> _______________________________________________

> 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/20121114/04ac02d7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 21613 bytes
Desc: not available
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20121114/04ac02d7/attachment-0001.png>


More information about the Scons-users mailing list