[Scons-users] Compact notation

Bill Deegan bill at baddogconsulting.com
Mon Dec 12 17:02:33 EST 2016


Pretty sure subst allows callables.
such as:

env['_CPPINCFLAGS'] = '$( ${_concat(INCPREFIX, CPPPATH, INCSUFFIX,
__env__, RDirs)} $)',


Lemme dig into the code a bit and get back to you.

-Bill



On Mon, Dec 12, 2016 at 8:01 AM, Dirk Bächle <tshortik at gmx.de> wrote:

> Hi Andrew,
>
> On 12.12.2016 16:50, Andrew C. Morrow wrote:
>
>>
>> Right, that is definitely an option. However, I was hoping to capitalize
>> on the logic for Append, Prepend, and more importantly
>> AppendUnique and PrependUnique.
>>
>> How does the expansion of keyword arguments to a Builder work?
>>
>>
> a so-called "override" environment gets created. It's a proxy object that
> will hold a reference to the original env, and for all touched/changed
> values the "shadowed" value in the OverrideEnvironment is accessed instead.
> During initialization of the current Builder, the (**overrides) part from
> the parameter list gets copied to the new environment, but a "subst" is
> executed on each of its values.
> Unfortunately, it's only the SCons.Subst.scons_subst_once() method...that
> doesn't support callables, I'm afraid. :(
>
> Looks like dead-end...we probably have to extend the API for supporting
> your use case.
>
> Best regards,
>
> Dirk
>
>
>
> _______________________________________________
> 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/20161212/63f875d7/attachment.html>


More information about the Scons-users mailing list