[Scons-users] Add specific command line parameters for Visual Studio Project

Dirk Bächle tshortik at gmx.de
Tue Nov 4 07:37:27 EST 2014


Hi Laurent,

On 04.11.2014 13:22, M. Laurent MARCHELLI wrote:
> Hello,
>
> I generated with SCons several Visual Studio Projects with 4 variants 
> in each :
> Debug|Win32
> Release|Win32
> Debug|x64
> Release|x64
>
> To be able to compile for each variant differently, I need to have 
> different command line parameters for each.
> How I can manage it with Scons ?
>
can you possibly elaborate a little more on that? In SCons you usually 
handle building variants of your source code via using the "variant_dir" 
functionality, which gets described in the UserGuide, chap. 15 
"Separating Source and Build Directories" ( 
scons.org/doc/production/HTML/scons-user.html#idp14616296 ).
You can also find a simple example in the folder named 
"pyconde_2013/examples/exvar" of
https://bitbucket.org/dirkbaechle/scons_talks .

But in that case you wouldn't have to specify any command-line 
parameters, you'd simply call SCons with the name of the target variant 
directory, e.g. "debug32", and the setting of variables like defines or 
include paths would get handled within your SConstruct file(s).

So, I'm not fully sure that the above is what you're trying to 
accomplish...feel free to correct and complete my assumptions where 
required.

Best regards,

Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20141104/e39682a4/attachment.html>


More information about the Scons-users mailing list