[Scons-users] Remove a macro from CPPDEFINES list
William Deegan
bill at baddogconsulting.com
Tue Nov 13 13:18:05 EST 2012
Sisira,
On Nov 11, 2012, at 9:31 PM, Sisira Jayasinghe <sisirajaya at gmail.com> wrote:
>
> Converting an older build app called Cake, similar to make with some variations.
> Yes, I have Sconscript in each folder. I wrote a csh shell script to copy bare-bone Sconscript in each folder .
> Overall there are over 30 executable and 20 or so DLLs and so’s will be created.
>
> Current plan is to have a single source root and modify env as it needs for each app.
Are you using variant_dir's?
So you're create and Environment() in SConstruct and pass it to each of the SConscripts?
And then clone it in the SConscripts which build the apps? or are you setting flags on the env.Program()'s in your SConscripts?
>
> Currently compiler is invoked for each source file in a folder. Wondering if it is faster to compile many source files with a single compiler run.
> If so what would be a the best way in Scons?
Batching compiles is only (currently) supported on windows. Take a look at the manpage and search for MSVC_BATCH.
Hope that helps!
-Bill
>
> Thank you.
> Sisira
>
>
>
> From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] On Behalf Of William Deegan
> Sent: Sunday, November 11, 2012 6:38 PM
> To: SCons users mailing list
> Subject: Re: [Scons-users] Remove a macro from CPPDEFINES list
>
> 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
>
> _______________________________________________
> 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/20121113/02ce8dff/attachment.html>
More information about the Scons-users
mailing list