mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
Update to support Windows SDK 7.1 with Visual C++ 10.0.
This commit is contained in:
parent
4139718baa
commit
428fbeac02
1 changed files with 10 additions and 1 deletions
|
@ -81,13 +81,21 @@ public class WinEnvironmentVariableSupplier
|
||||||
return envvars.values().toArray(new IBuildEnvironmentVariable[envvars.size()]);
|
return envvars.values().toArray(new IBuildEnvironmentVariable[envvars.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Current support is for Windows SDK 7.1 with Visual C++ 10.0
|
||||||
|
// Secondary support for Windows SDK 7.0 with Visual C++ 9.0
|
||||||
private static String getSDKDir() {
|
private static String getSDKDir() {
|
||||||
WindowsRegistry reg = WindowsRegistry.getRegistry();
|
WindowsRegistry reg = WindowsRegistry.getRegistry();
|
||||||
|
String sdkDir = reg.getLocalMachineValue("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v7.1", "InstallationFolder");
|
||||||
|
if (sdkDir != null)
|
||||||
|
return sdkDir;
|
||||||
return reg.getLocalMachineValue("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v7.0", "InstallationFolder");
|
return reg.getLocalMachineValue("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v7.0", "InstallationFolder");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getVCDir() {
|
private static String getVCDir() {
|
||||||
WindowsRegistry reg = WindowsRegistry.getRegistry();
|
WindowsRegistry reg = WindowsRegistry.getRegistry();
|
||||||
|
String vcDir = reg.getLocalMachineValue("SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VC7", "10.0");
|
||||||
|
if (vcDir != null)
|
||||||
|
return vcDir;
|
||||||
return reg.getLocalMachineValue("SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VC7", "9.0");
|
return reg.getLocalMachineValue("SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VC7", "9.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,9 +150,10 @@ public class WinEnvironmentVariableSupplier
|
||||||
// PATH
|
// PATH
|
||||||
buff = new StringBuffer();
|
buff = new StringBuffer();
|
||||||
if (vcDir != null) {
|
if (vcDir != null) {
|
||||||
|
buff.append(vcDir).append("..\\Common7\\IDE;");
|
||||||
|
buff.append(vcDir).append("..\\Common7\\Tools;");
|
||||||
buff.append(vcDir).append("Bin;");
|
buff.append(vcDir).append("Bin;");
|
||||||
buff.append(vcDir).append("vcpackages;");
|
buff.append(vcDir).append("vcpackages;");
|
||||||
buff.append(vcDir).append("..\\Common7\\IDE;");
|
|
||||||
}
|
}
|
||||||
if (sdkDir != null) {
|
if (sdkDir != null) {
|
||||||
buff.append(sdkDir).append("Bin;");
|
buff.append(sdkDir).append("Bin;");
|
||||||
|
|
Loading…
Add table
Reference in a new issue