[Scons-users] Fwd: More than one source directory for a single variant directory
Bill Deegan
bill at baddogconsulting.com
Fri Oct 25 20:23:09 EDT 2013
Greetings,
If I had to guess, you're doing this (variant_dir='bin') to end up with
your binaries all in the same directory.
Better way to do this (to avoid also getting the objects,etc in your bin
dir), is to have separate variant_dir's and then use env.Install() to copy
your binaries from their respective variant_dir's to the bin dir.
-Bill
On Fri, Oct 25, 2013 at 12:14 PM, Dirk Bächle <tshortik at gmx.de> wrote:
> Brady,
>
>
> On 25.10.2013 19:35, Brady Johnson wrote:
>
>> Dirk,
>>
>> I was looking into this too, but dont have the code at home. Im curious
>> to know why you cant have two source directory builds placed in the same
>> variant_dir.
>>
>>
> this isn't supported by the internal data structures. By defining a
> VariantDir, you're creating an internal link between the source dir and the
> variant folder. Each Node (File or Dir) has only one "srcdir" entry, so
> several variant dirs can have the same source folder...but it's not
> possible the other way around.
>
> I can only guess why this design was selected, but allowing more than one
> source folder would easily lead to problems when you have a subfolder with
> the same name. Let's say an "prog_a" folder would be present in "proj1" and
> "proj2", when both point to the same VariantDir.
> How would you resolve this ambiguity?
>
>
> Regards,
>
> Dirk
>
> ______________________________**_________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/**mailman/listinfo/scons-users<http://four.pairlist.net/mailman/listinfo/scons-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131025/ad06a37a/attachment.html
More information about the Scons-users
mailing list