[Scons-users] generating cpp defines with a function
Kenny, Jason L
jason.l.kenny at intel.com
Tue Jun 2 10:25:11 EDT 2015
This is a similar issue I have had in Parts. I had to go through some hoops to get this flatten correctly with some ugly monkey patches. It would be nice if we could fix the subst code to process this better.
Jason
From: Scons-users [mailto:scons-users-bounces at scons.org] On Behalf Of Tom Tanner (BLOOMBERG/ LONDON)
Sent: Tuesday, June 2, 2015 9:21 AM
To: scons-users at scons.org
Subject: [Scons-users] generating cpp defines with a function
I have a requirement to do something like this:
env.Append(CPPDEFINES = '${some_func(arg1, arg2)}')
My trouble comes when some_func returns something relatively complicated, like
[['FGH', 'string'], ['ABC', 'another string'], 'IJK' ]
This appears to get flattened and you get
gcc ... "-DFGH FGH ABC ABC IJK"
Which is very definitely not very helpful.
Is there anything I can do to get the return from some_func not to be flattened?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150602/e0825699/attachment.html>
More information about the Scons-users
mailing list