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

Dirk Bächle tshortik at gmx.de
Tue Nov 4 11:15:38 EST 2014


On 04.11.2014 16:48, M. Laurent MARCHELLI wrote:
> Hi Dirk,
>
> Thank you for your answer, please find more information on what we are 
> trying to achieve :
>
> I use the following command line from the global project root :
> To build complete solution for Debug|Win32 :scons debug=True 
> target_arch=32
> To build complete solution for Release|Win32:scons debug=False 
> target_arch=32
> To build complete solution for Debug|x64:scons debug=True target_arch=x64
> To build complete solution for Release|x64:scons debug=False 
> target_arch=x64
>
> And, for each variant, I wanted to add the corresponding command line 
> parameter to the 'Build command line' written inside the Visual Studio 
> Project file generated by SCons.
In that case, try to set the environment variable "cmdargs" to the 
required value/string before writing out the VS project file:

   env["cmdargs"] = "debug=false target_arch=x64"

.

Best regards and lots of success for your project,

Dirk

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


More information about the Scons-users mailing list