[Scons-users] Using a different Microsoft SDKs with a given Visual Studio version
Mark Holloway
hollowaymr at hotmail.com
Mon Jan 18 12:54:39 EST 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160118/0217aef2/attachment.html>
More information about the Scons-users
mailing list