[Scons-users] Builder Chains Not Working?
Managan, Rob
managan1 at llnl.gov
Wed Nov 14 19:10:16 EST 2012
Mark,
You can also save the node returned by the builder and use it directly. This might work:
node_t2 = env.MultiBuilder1("target2.json", ['target1.json', 'source2.json'])
node_t2bin = env.Builder2("target2.binary", node_t2)
ret = env.InstallAs(os.path.join(installBase,"target2.binary"), "target2.binaryplatform")
I suppose I should ask if you just did not include a way to build "target2.binaryplatform"?
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan email managan at llnl.gov
LLNL phone: 925-423-0903
P.O. Box 808, L-095 FAX: 925-422-3389
Livermore, CA 94551-0808
On 11/14/12 4:00 PM, "Mark Ribau" <mribau at realtaentertainment.com<mailto:mribau at realtaentertainment.com>> wrote:
Oddly enough, this appears to fix it:
ret = env.MultiBuilder1("target2.json", ['target1.json', 'source2.json'])
env.Alias( "myalias", True, ret)
ret = env.Builder2("target2.binary", "target2.json")
env.Alias( "myalias", True, ret)
ret = env.InstallAs(os.path.join(installBase,"target2.binary"), "target2.binaryplatform")
env.Alias( "myalias", True, ret)
I guess this is because SCons thinks I haven't requested to build those files? But since they are dependencies, shouldn't SCons automatically build them??
Do I need to modify the BUILD_TARGETS at run time if I have found sub-dependencies that need to be built?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121115/ac9bdc60/attachment.html>
More information about the Scons-users
mailing list