[Scons-users] Using a different Microsoft SDKs with a given Visual Studio version

Mark Holloway hollowaymr at hotmail.com
Tue Jan 19 10:12:13 EST 2016


Thanks Bill.
I should have said that I had begun with the order of the tools being the reverse of what you have seen below and the outcome was less desirable, as the newer SDK appeared later that the older SDK which was the reverse of what I wanted:           'INCLUDE': u'c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\ATLMFC\\INCLUDE;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\INCLUDE;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\include',
I've attached the logs, the names demonstrating the order in which the tools appear (although I suppose that doesn't matter with those logs).
I'd already spent a bit of time looking at the source (and generated logs), so I'm guessing this probably can't be made to work exactly as I want straight out of the box, but I didn't know if there was any cleverness in path merging across tools.
Thanks,Mark
Date: Mon, 18 Jan 2016 17:28:31 -0500
From: bill at baddogconsulting.com
To: scons-users at scons.org
Subject: Re: [Scons-users] Using a different Microsoft SDKs with a given Visual Studio version

Mark,

First try switching the order of the tools.
Second:
set SCONS_MSCOMMON_DEBUG=%TEMP%/msdebug.log
and then paste the log somewhere and respond with a link.

-Bill

On Mon, Jan 18, 2016 at 12:54 PM, Mark Holloway <hollowaymr at hotmail.com> wrote:



Hi,
I'd like to be able to override and choose a different Microsoft SDK (Windows SDK) to accompany my given version of Visual Studio toolchain (2008 in this case).
For example, the default with VS2008 is V6.0A, where I require V7.1.
The closest I've been able to get is:       env = Environment(tools = ['msvc','mssdk'], MSVC_VERSION = '9.0', MSSDK_VERSION='7.1')
Which gives me:
  'ENV': { 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',           'INCLUDE': u'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\include;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\ATLMFC\\INCLUDE;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\INCLUDE;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include',           'LIB': u'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\lib;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\ATLMFC\\LIB\\amd64;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\LIB\\amd64;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\lib\\x64',           'LIBPATH': u'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\lib;c:\\Windows\\Microsoft.NET\\Framework64\\v3.5;c:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\ATLMFC\\LIB\\amd64;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\LIB\\amd64',           'PATH': u'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\bin;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\amd64;c:\\Windows\\Microsoft.NET\\Framework64\\v3.5;c:\\Windows\\Microsoft.NET\\Framework64\\v3.5\\Microsoft .NET Framework 3.5 (Pre-Release Version);c:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\VCPackages;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\Tools;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\Tools\\bin;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\bin\\x64;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\bin\\win64\\x64;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\bin;C:\\Windows\\System32',
But to match the Microsoft way of doing things, I'd require:           'INCLUDE': u'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\include;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\ATLMFC\\INCLUDE;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\INCLUDE;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include',
To ideally become:           'INCLUDE': u'c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\ATLMFC\\INCLUDE;c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\INCLUDE;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\include;'
Where the Visual Studio directories come first, and SDKs last, and also to not include the default (v6.0A) at all.
Thanks,Mark 		 	   		  

_______________________________________________

Scons-users mailing list

Scons-users at scons.org

https://pairlist4.pair.net/mailman/listinfo/scons-users





_______________________________________________
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/20160119/37fc582f/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: msdebug_msvc_mssdk.log
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160119/37fc582f/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: msdebug_mssdk_msvc.log
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160119/37fc582f/attachment-0003.ksh>


More information about the Scons-users mailing list