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

Paweł Tomulik ptomulik at meil.pw.edu.pl
Tue Mar 1 02:02:01 EST 2016


Try

target = env.subst('Bar${MSVSPROJECTSUFFIX}')

etc., although, if suffix gets added automatically (as Bill says), such
hacks shouldn't be necessary.
 
W dniu 01.03.2016 o 00:18, Meng-Yuan Huang pisze:
>
> 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
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users


-- 
Paweł Tomulik, tel. (22) 234 7925
Instytut Techniki Lotniczej i Mechaniki Stosowanej
Politechnika Warszawska

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


More information about the Scons-users mailing list