[Scons-users] MSVC 2013

Jarrett Chisholm j.chisholm at chisholmsoft.com
Tue Sep 24 13:56:25 EDT 2013


Hey all

I'm also trying to get MSVC 2013 working with scons, but on windows 7.
I'll give the below 'patch' a go this week as well.

Cheers

Jarrett






[Scons-users] MSVC 2013

*William Deegan* bill at baddogconsulting.com
<mailto:scons-users%40scons.org?Subject=Re:%20%5BScons-users%5D%20MSVC%202013&In-Reply-To=%3C6DA887E1-7728-45D7-9269-977B62083853%40baddogconsulting.com%3E>
/Mon Sep 23 12:48:31 EDT 2013/

* Previous message: [Scons-users] MSVC 2013
<http://four.pairlist.net/pipermail/scons-users/2013-September/001749.html>
* Next message: [Scons-users] Decider which checks md5 checksums
unexpectedly detecting changed/invalid ones
<http://four.pairlist.net/pipermail/scons-users/2013-September/001747.html>
* *Messages sorted by:* [ date ]
<http://four.pairlist.net/pipermail/scons-users/2013-September/date.html#1751>
[ thread ]
<http://four.pairlist.net/pipermail/scons-users/2013-September/thread.html#1751>
[ subject ]
<http://four.pairlist.net/pipermail/scons-users/2013-September/subject.html#1751>
[ author ]
<http://four.pairlist.net/pipermail/scons-users/2013-September/author.html#1751>


------------------------------------------------------------------------
Thanks!
-Bill
On Sep 23, 2013, at 5:03 AM, Philipp Kraus <philipp.kraus at
tu-clausthal.de <http://four.pairlist.net/mailman/listinfo/scons-users>>
wrote:



>/Hi @all, /



>//



>/I hope I can test this or next week /



>//



>/Phil /



>//



>//



>/Am 23.09.2013 um 04:48 schrieb Bill Deegan: /



>//



>>/Phil, /



>>//



>>/If you can try it, and let us know if that works on you system, then

we can consider the patch. /


>>//



>>/-Bill /



>>//



>>//



>>/On Sat, Sep 21, 2013 at 11:42 AM, Philipp Kraus <philipp.kraus at

tu-clausthal.de <http://four.pairlist.net/mailman/listinfo/scons-users>>
wrote: /


>>/Thanks that's nice, but I will wait for the next version. It is only

on my test system, so it can wait some times /


>>//



>>/Phil /



>>//



>>//



>>/Am 21.09.2013 um 20:01 schrieb Brian Fitzgerald <bfitz at

blizzard.com <http://four.pairlist.net/mailman/listinfo/scons-users>>: /


>>//



>>/> Not yet. The file to fix is I believe SCons/Tool/MSCommon/vc.py.

There's a handful of arrays that contain the various Visual Studio
versions that will be detected, and in the SCons 2.3.0 source, I only
see up to 11 which is Visual Studio 2012. /


>>/> /



>>/> It should be easy to update, since I think Visual Studio 2013 is

very similar in structure to 2012. But I'm loathe to submit a patch
since I haven't yet tried 2013. /


>>/> /



>>/> If you don't mind hacking up your install, here's my best guess.

This is completely speculative, based on my experience with previous
Visual Studio versions. /


>>/> /



>>/> ------- /



>>/> /



>>/> vc.py /



>>/> /



>>/> replace line 132 with this /



>>/> /



>>/> _VCVER = ["12.0", "11.0", "11.0Exp", "10.0", "10.0Exp", "9.0",

"9.0Exp","8.0", "8.0Exp","7.1", "7.0", "6.0"] /


>>/> /



>>/> and then insert these lines right after _VCVER_TO_PRODUCT_DIR at

line 134 /


>>/> /



>>/> '12.0': [ /



>>/> r'Microsoft\VisualStudio\12.0\Setup\VC\ProductDir'], /



>>/> /



>>/> ------- /



>>/> /



>>/> vs.py /



>>/> /



>>/> add this at line 214 /



>>/> /



>>/> # Visual Studio 12 /



>>/> # The batch file we look for is in the VC directory, /



>>/> # so the devenv.com executable is up in ..\..\Common7\IDE. /



>>/> VisualStudio('12.0', /



>>/> sdk_version='6.1', /



>>/> hkeys=[r'Microsoft\VisualStudio\12.0\Setup\VS\ProductDir'], /



>>/> common_tools_var='VS120COMNTOOLS', /



>>/> executable_path=r'Common7\IDE\devenv.com', /



>>/> batch_file_path=r'Common7\Tools\vsvars32.bat', /



>>/> default_dirname='Microsoft Visual Studio 12', /



>>/> supported_arch=['x86', 'amd64'], /



>>/> ), /



>>/> /



>>/> ------- /



>>/> /



>>/> msvs.py /



>>/> /



>>/> Add this at existing line 1208 /



>>/> /



>>/> if self.version_num >= 12.0: /



>>/> self.versionstr = '13.00' /



>>/> /



>>/> Replace existing lines 1314 and 1315 (def PrintSolution body),

because I think the current code is wrong, and also to turn the if into
an elif. /


>>/> /



>>/> if self.version_num >= 12.0: /



>>/> self.file.write('# Visual Studio 2013\n') /



>>/> elif self.version_num >= 11.0: /



>>/> self.file.write('# Visual Studio 2012\n') /



>>/> /



>>/> -----Original Message----- /



>>/> From: scons-users-bounces at scons.org

<http://four.pairlist.net/mailman/listinfo/scons-users>
[mailto:scons-users-bounces at scons.org
<http://four.pairlist.net/mailman/listinfo/scons-users>] On Behalf Of
Philipp Kraus /


>>/> Sent: Saturday, September 21, 2013 5:16 AM /



>>/> To: scons-users at scons.org

<http://four.pairlist.net/mailman/listinfo/scons-users> /


>>/> Subject: [Scons-users] MSVC 2013 /



>>/> /



>>/> Hello, /



>>/> /



>>/> I have created a test installation with MSVC Ultimate RC 2013 (Win

8) and current stable SCons version (2.3.0). On running a C/C++ build
process I get the warning: /


>>/> /



>>/> scons: warning: No version of Visual Studio compiler found - C/C++

compilers most likely not set correctly /


>>/> /



>>/> with MSVC 2012 the build process works. /



>>/> Does SCons support the MSVC 2013 at the moment? /



>>/> /



>>/> Phil /



>>/_______________________________________________ /



>>/Scons-users mailing list /



>>/Scons-users at scons.org

<http://four.pairlist.net/mailman/listinfo/scons-users> /


>>/http://four.pairlist.net/mailman/listinfo/scons-users /



>>//



>>/_______________________________________________ /



>>/Scons-users mailing list /



>>/Scons-users at scons.org

<http://four.pairlist.net/mailman/listinfo/scons-users> /


>>/http://four.pairlist.net/mailman/listinfo/scons-users /



>//



>/_______________________________________________ /



>/Scons-users mailing list /



>/Scons-users at scons.org

<http://four.pairlist.net/mailman/listinfo/scons-users> /


>/http://four.pairlist.net/mailman/listinfo/scons-users /



-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://four.pairlist.net/pipermail/scons-users/attachments/20130923/162b1832/attachment-0001.htm

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

* Previous message: [Scons-users] MSVC 2013
<http://four.pairlist.net/pipermail/scons-users/2013-September/001749.html>
* Next message: [Scons-users] Decider which checks md5 checksums
unexpectedly detecting changed/invalid ones
<http://four.pairlist.net/pipermail/scons-users/2013-September/001747.html>
* *Messages sorted by:* [ date ]
<http://four.pairlist.net/pipermail/scons-users/2013-September/date.html#1751>
[ thread ]
<http://four.pairlist.net/pipermail/scons-users/2013-September/thread.html#1751>
[ subject ]
<http://four.pairlist.net/pipermail/scons-users/2013-September/subject.html#1751>
[ author ]
<http://four.pairlist.net/pipermail/scons-users/2013-September/author.html#1751>


------------------------------------------------------------------------
More information about the Scons-users mailing list
<http://four.pairlist.net/mailman/listinfo/scons-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130924/78910677/attachment.html


More information about the Scons-users mailing list