[Scons-users] Emiter usage
pholat
pholat at gmail.com
Mon Sep 19 09:28:24 EDT 2016
Hi Dirk,
Thanks for response. Right now I'm using variant_dir to have temporary
files in place different then code and I'm in fact using it via
SConscript(...) call.
What I cant grasp is how make variant_dir's dependent on compiler variable.
Best regards
Adam
Pozdrawiam,
Adam A. Dobrowolski || pholat
2016-09-19 14:56 GMT+02:00 Dirk Bächle <tshortik at gmx.de>:
> Hi Pholat,
>
> the functionality you're probably searching for is called a "Variant
> directory". Please, don't follow the vast majority of code snippets on the
> internet by using the "VariantDir" method directly, but use the
> "variant_dir" parameter of the "SConscript" call instead.
> For a simple example demonstrating the basic setup, check out
>
> https://bitbucket.org/dirkbaechle/scons_talks
>
> , especially the "pyconde_2013/examples/exvar" folder.
> In addition, read the UserGuide, chapter 15 "Separating Source and Build
> Directories" and chapter 16 "Variant Builds"...
>
> Best regards,
>
> Dirk
>
>
>
> On 19.09.2016 14:16, pholat wrote:
>
>> Hi All,
>>
>> I've a tiny problem understanding how I can do different compilations of
>> one product depending on compilation variable.
>>
>> What I need to do is:
>> Generate different output on different compilation variable.
>>
>> Exemplary problem: one app version is build with -DDEBUG variable, and
>> second one is without. Now I can build DEBUG app (or one
>> without) by changing the Environment by hand. But I would love to build
>> both in one run.
>>
>> This unfortunately means that products with the same names are different
>> inside.
>>
>> Do I need to create separate variable directories, with separate
>> environment for all the compilations ( SConscripts - about 20 of
>> them ). Or maybe is there any better way?
>>
>> I though about Emitter, but can't see how it would solve my problem here
>> - so I guess it's not in use in that particular issue.
>>
>> Best regards,
>> Adam A. Dobrowolski || pholat
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160919/138d916e/attachment.html>
More information about the Scons-users
mailing list