[Scons-users] own builder with multiple ways build error

Philipp Kraus philipp.kraus at tu-clausthal.de
Mon Dec 9 12:21:23 EST 2013



Am 09.12.2013 um 16:46 schrieb Marc Branchaud <marcnarc at xiplink.com>:


> On 13-12-09 10:08 AM, Philipp Kraus wrote:

>> Hello,

>>

>> I would like to create my own install builder with a little bit more features.

>

> Awesome! Please share when you're done!


see here https://github.com/flashpixx/Storage/blob/master/Scons/site_scons/site_tools/InstallInto.py

The builder command looks like

envlua.InstallInto( prefix, lib+headerfiles, INSTALLATIONDIRS=["lib"]+["include"]*len(headerfiles) )

The target is the main installation dir, where the sources are copied in.
For each source can be defined a subdirectory, relative to the target, in my case
lib = the build of the shared library, so the first item on the INSTALLATIONDIRS is "lib"

This command puts the shared library in the <target directory>/lib and put the header files in <target directory>/include


> This is not a dependency problem. Rather, SCons is telling you that you're

> using two different environments to build the same file.


It was my mistake, I have switched the source & target variables on the emitter function, so source = target, and target = source.

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131209/1a8228bd/attachment.htm


More information about the Scons-users mailing list