[Scons-users] Remove a macro from CPPDEFINES list

William Deegan bill at baddogconsulting.com
Sun Nov 11 19:38:27 EST 2012


Sisira,
On Nov 10, 2012, at 5:46 PM, Sisira Jayasinghe <sisirajaya at gmail.com> wrote:


> Hi Bill:

> Thank you so much. It worked!

> I am new to Scons and Python and working on converting a commercial CAD/CAE software package to build on SCONS on NT and Linux. To give you an ideas I have created over 3500 Sconscript files so far.


Converting from makefiles to SCons?
3500 sounds like a lot. Are you creating a SConscript per source directory?


>

> So please do not be surprised to hear from me again.


That's what we're here for.
Please do take a read through the user guide and the manpage.
The python documentation at python.org is very good to get you the basics of python which you'll find useful when using SCons.

Hope that helps!
-Bill


>

> Sisira

>

>

> From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] On Behalf Of William Deegan

> Sent: Saturday, November 10, 2012 2:49 PM

> To: SCons users mailing list

> Subject: Re: [Scons-users] Remove a macro from CPPDEFINES list

>

> Sisira,

> On Nov 10, 2012, at 4:54 AM, Sisira Jayasinghe <sisirajaya at gmail.com> wrote:

>

>

> Hi:

> The macro __STDC__ that gets defined in Sconstruct, but in certain source folders that has to be undefined ( #undef or /U ). I cannot find an Environment function to Remove it from CPPDEFINES list.

>

> Please let me know how can I accomplish this.

>

> SConstructs are just python.

> env['CPPDEFINES'].remove('__STDC__')

> Should do the trick.

> (see: http://docs.python.org/2.7/library/stdtypes.html#typesseq-mutable )

>

> -Bill

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121111/0c6e3283/attachment.html>


More information about the Scons-users mailing list