[Scons-users] Emiter usage

Bill Deegan bill at baddogconsulting.com
Mon Sep 19 12:14:00 EDT 2016


hit send too soon. See below.

On Mon, Sep 19, 2016 at 9:11 AM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> Adam,
>
>
> On Mon, Sep 19, 2016 at 8:58 AM, Adam Dobrowolski <pholat at gmail.com>
> wrote:
>
>> I did. In example value and variant_dir are independent. I wanted to have
>> them
>> dependent. But I can store a new value in this second Environment and that
>> would be fine I guess.
>>
>> What I wanted to omit was copying ~10 SConscript calls just to fill in two
>> variables - I thought that there might be a cleaner way of doing it.
>> If there were another ifdef - for example for architecture (ARM/x86) this
>> would mean the same copy again, wouldn't it?
>>
>> One last question: will it work fine if I loop over all the components
>> SConscripts and Glob over it's products catalog? Than instead of copying
>> I can
>> have a list of SConscripts, all I call with both setups (or more if
>> needed) in
>> for each loop.
>>
>
>
So something like (in SConstruct)

for a in list_of_architecures:
         env = base_env.Clone()
         env['myvar']=a

SConscript('some/other/dir/SConscript',variant_dir='build/%s"%a,exports='env')




>
>
>
>
>>
>> Best regards,
>> Adam
>>
>> On poniedziałek, 19 września 2016 16:09:02 CEST Dirk Bächle wrote:
>> > Pholat,
>> >
>> > On 19.09.2016 15:28, pholat wrote:
>> > > 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.
>> >
>> > and did you check out the example link that I gave you?
>> >
>> > Dirk
>> >
>> >
>> >
>> > _______________________________________________
>> > 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/ddb89654/attachment.html>


More information about the Scons-users mailing list