Making it possible to run scons on vista using VS2008 without having to install an additional MS SDK. VS2008 does come with SDK version 6.0, it's just that the registry entries for it are slightly different than in XP. This change takes care of Vista but I'm not sure what the registry looks like in Windows XP when you install VS 2008.

Review URL: http://codereview.chromium.org/155326

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20356 0039d316-1c4b-4281-b951-d872f2087c98
Esse commit está contido em:
vangelis@google.com
2009-07-10 02:44:14 +00:00
commit 375ddbdce5
2 arquivos alterados com 15 adições e 5 exclusões
+7 -2
Ver Arquivo
@@ -92,8 +92,13 @@ def FindPlatformSDK():
_winreg.HKEY_LOCAL_MACHINE,
'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.0A\\WinSDKBuild')
except WindowsError:
print 'The Windows SDK version 6.0 or later needs to be installed'
sys.exit(1)
try:
winsdk_key = _winreg.OpenKey(
_winreg.HKEY_LOCAL_MACHINE,
'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.0A\\VistaClientHeadersLibs')
except WindowsError:
print 'The Windows SDK version 6.0 or later needs to be installed'
sys.exit(1)
try:
winsdk_dir, value_type = _winreg.QueryValueEx(winsdk_key,
'InstallationFolder')
+8 -3
Ver Arquivo
@@ -102,10 +102,15 @@ if env.Bit('host_windows'):
try:
winsdk_key = _winreg.OpenKey(
_winreg.HKEY_LOCAL_MACHINE,
'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1\\WinSDKBuild')
'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.0A\\VistaClientHeadersLibs')
except WindowsError:
print 'The Windows SDK version 6.0 or later needs to be installed'
sys.exit(1)
try:
winsdk_key = _winreg.OpenKey(
_winreg.HKEY_LOCAL_MACHINE,
'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1\\WinSDKBuild')
except WindowsError:
print 'The Windows SDK version 6.0 or later needs to be installed'
sys.exit(1)
try:
winsdk_dir, value_type = _winreg.QueryValueEx(winsdk_key,
'InstallationFolder')