[Scons-users] env['MSVSPROJECTSUFFIX'] Does Not Be Converted into vcxproj in MSVSSolution

Meng-Yuan Huang myh at live.com
Mon Feb 29 18:18:11 EST 2016


Hello,

 

My building environment is:

OS: Windows 10 64-bit

Compiler: Visual C++ 2015 Community

Python: 2.7.11

Scons: 2.4.1

 

I wrote a simple SConstruct for generate Visual C++ solution:

----------------------- SConstruct --------------------------

env = Environment()

 

barsrcs = ["h.cpp"]

exe = Program(barsrcs)

 

env.MSVSProject(

target = 'Bar' + env['MSVSPROJECTSUFFIX'],

srcs = barsrcs,

buildtarget = exe,

variant = 'Release')

 

env.MSVSSolution(

target = 'Sol' + env['MSVSSOLUTIONSUFFIX'],

projects = ['Bar'+ env['MSVSPROJECTSUFFIX']],

variant = 'Release')  

-------------------------------------------------

Unfortunately, the generated solution file, Sol.sln, includes a strange
project called "Bar${GET_MSVSPROJECTSUFFIX}."

It seems the string 'Bar'+ env['MSVSPROJECTSUFFIX'] of MSVSSolution function
doesn't be converted into "Bar.vcxproj."

Is this a bug of SCons?

 

Regards,

Meng-Yuan Huang

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


More information about the Scons-users mailing list