| OLD | NEW |
| 1 # Copyright 2009, Google Inc. | 1 # Copyright 2009, Google Inc. |
| 2 # All rights reserved. | 2 # All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 print 'variable must point to the installation directory.' | 95 print 'variable must point to the installation directory.' |
| 96 sys.exit(1) | 96 sys.exit(1) |
| 97 try: | 97 try: |
| 98 winsdk_key = _winreg.OpenKey( | 98 winsdk_key = _winreg.OpenKey( |
| 99 _winreg.HKEY_LOCAL_MACHINE, | 99 _winreg.HKEY_LOCAL_MACHINE, |
| 100 'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.0\\WinSDKBuild') | 100 'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.0\\WinSDKBuild') |
| 101 except WindowsError: | 101 except WindowsError: |
| 102 try: | 102 try: |
| 103 winsdk_key = _winreg.OpenKey( | 103 winsdk_key = _winreg.OpenKey( |
| 104 _winreg.HKEY_LOCAL_MACHINE, | 104 _winreg.HKEY_LOCAL_MACHINE, |
| 105 'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1\\WinSDKBuild') | 105 'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.0A\\VistaClientHeade
rsLibs') |
| 106 except WindowsError: | 106 except WindowsError: |
| 107 print 'The Windows SDK version 6.0 or later needs to be installed' | 107 try: |
| 108 sys.exit(1) | 108 winsdk_key = _winreg.OpenKey( |
| 109 _winreg.HKEY_LOCAL_MACHINE, |
| 110 'SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1\\WinSDKBuild') |
| 111 except WindowsError: |
| 112 print 'The Windows SDK version 6.0 or later needs to be installed' |
| 113 sys.exit(1) |
| 109 try: | 114 try: |
| 110 winsdk_dir, value_type = _winreg.QueryValueEx(winsdk_key, | 115 winsdk_dir, value_type = _winreg.QueryValueEx(winsdk_key, |
| 111 'InstallationFolder') | 116 'InstallationFolder') |
| 112 except WindowsError: | 117 except WindowsError: |
| 113 print 'The Windows SDK version 6.0 or later needs to be installed' | 118 print 'The Windows SDK version 6.0 or later needs to be installed' |
| 114 sys.exit(1) | 119 sys.exit(1) |
| 115 _winreg.CloseKey(winsdk_key) | 120 _winreg.CloseKey(winsdk_key) |
| 116 # Strip off trailing slashes | 121 # Strip off trailing slashes |
| 117 winsdk_dir = winsdk_dir.rstrip('\\/') | 122 winsdk_dir = winsdk_dir.rstrip('\\/') |
| 118 dxsdk_dir = dxsdk_dir.rstrip('\\/') | 123 dxsdk_dir = dxsdk_dir.rstrip('\\/') |
| 119 env.Replace(JAVA_EXE = '%SystemRoot%\\system32\\java.exe', | 124 env.Replace(JAVA_EXE = '%SystemRoot%\\system32\\java.exe', |
| 120 PLATFORM_SDK_VISTA_6_0_DIR = winsdk_dir, | 125 PLATFORM_SDK_VISTA_6_0_DIR = winsdk_dir, |
| 121 DIRECTX9_18_944_0_PARTIAL_DIR = dxsdk_dir, | 126 DIRECTX9_18_944_0_PARTIAL_DIR = dxsdk_dir, |
| 122 DOXYGEN = '$DOXYGEN_DIR/win/doxygen.exe') | 127 DOXYGEN = '$DOXYGEN_DIR/win/doxygen.exe') |
| 123 try: | 128 try: |
| 124 env['ENV']['PATH'] = "%s%s%s" % (env['ENV']['PATH'], os.pathsep, | 129 env['ENV']['PATH'] = "%s%s%s" % (env['ENV']['PATH'], os.pathsep, |
| 125 os.path.join(winsdk_dir, 'Bin')) | 130 os.path.join(winsdk_dir, 'Bin')) |
| 126 except KeyError: | 131 except KeyError: |
| 127 env['ENV']['PATH'] = os.path.join(winsdk_dir, 'Bin') | 132 env['ENV']['PATH'] = os.path.join(winsdk_dir, 'Bin') |
| 128 else: | 133 else: |
| 129 env.Replace(JAVA_EXE = 'java') | 134 env.Replace(JAVA_EXE = 'java') |
| 130 if env.Bit('host_linux'): | 135 if env.Bit('host_linux'): |
| 131 env.Replace(DOXYGEN = '$DOXYGEN_DIR/linux/doxygen') | 136 env.Replace(DOXYGEN = '$DOXYGEN_DIR/linux/doxygen') |
| 132 else: | 137 else: |
| 133 env.Replace(DOXYGEN = '$DOXYGEN_DIR/osx/doxygen') | 138 env.Replace(DOXYGEN = '$DOXYGEN_DIR/osx/doxygen') |
| OLD | NEW |