[Scons-users] env['MSVSPROJECTSUFFIX'] Does Not Be Converted into vcxproj in MSVSSolution
Bill Deegan
bill at baddogconsulting.com
Mon Feb 29 19:58:46 EST 2016
I'm not clear on you you are using:
target = 'Bar' + env['MSVSPROJECTSUFFIX'], in your MSVSProject() builder
The suffix should be automatically added.
Not sure why the man page sugguests that, same with the target of the
MSVSSolution().
Try this:
env = Environment()
barsrcs = ["h.cpp"]
exe = Program(barsrcs)
my_project = env.MSVSProject(
target = 'Bar',
srcs = barsrcs,
buildtarget = exe,
variant = 'Release')
env.MSVSSolution(
target = 'Sol',
projects = [my_project],
variant = 'Release')
-Bill
On Mon, Feb 29, 2016 at 3:18 PM, Meng-Yuan Huang <myh at live.com> wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160229/46701032/attachment-0001.html>
More information about the Scons-users
mailing list