Wednesday, March 23, 2011

scons: How can I create a link to another repository's target if the target is built in the other repository

When I add a "Repository" to a SConstruct file (link), if any target in my repository has been built in this other repository ( and the dependencies haven't changed), then SCons will not build the target -- which is really cool. Unfortunately, I have some tools which rely on the targets being placed in a certain location. How can I create a link in my current repository to this other repository's target when SCons decides to not build locally because the other repo' already has the target built?

EDIT It looks like Scons has a 'Local' function which will copy a file from the other repository to the local repository (link). What I really need is a soft-link, because these targets are big and there is a lot of redundancy. Still looking...

From stackoverflow

0 comments:

Post a Comment