From 992c8c7e9579f6997ba1ff8edbb96a7517d25600 Mon Sep 17 00:00:00 2001 From: lordmulder Date: Sat, 24 Nov 2012 17:27:45 +0100 Subject: [PATCH] Added patch for vcvars32.bat that will overwrite the SDK path. Required in MSVC 11.0 (VC2012) Update-1, because the default (8.0) Windows SDK does *not* support Windows XP. --- ...2012-update1-vcvars32-WinSdkOverwrite.diff | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 etc/Patches/MSVC2012-update1-vcvars32-WinSdkOverwrite.diff diff --git a/etc/Patches/MSVC2012-update1-vcvars32-WinSdkOverwrite.diff b/etc/Patches/MSVC2012-update1-vcvars32-WinSdkOverwrite.diff new file mode 100644 index 00000000..d3f039b3 --- /dev/null +++ b/etc/Patches/MSVC2012-update1-vcvars32-WinSdkOverwrite.diff @@ -0,0 +1,26 @@ +diff --git "a/C:\\Program Files\\Microsoft Visual Studio 11.0\\VC\\bin\\vcvars32.bat" "b/C:\\Program Files\\Microsoft Visual Studio 11.0\\VC\\bin\\vcvars32_XP.bat" +index d02a974..815d2d3 100644 +--- "a/C:\\Program Files\\Microsoft Visual Studio 11.0\\VC\\bin\\vcvars32.bat" ++++ "b/C:\\Program Files\\Microsoft Visual Studio 11.0\\VC\\bin\\vcvars32_XP.bat" +@@ -12,14 +12,18 @@ + @set FrameworkDir=%FrameworkDir32% + @set FrameworkVersion=%FrameworkVersion32% + ++@rem --- MOD --- ++@set "WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v7.1A\" ++@rem --- /MOD --- ++ + @if not "%WindowsSdkDir_old%" == "" ( + @set "PATH=%WindowsSdkDir_old%bin\NETFX 4.0 Tools;%WindowsSdkDir_35%;%PATH%" + ) + + @if not "%WindowsSdkDir%" == "" ( +- @set "PATH=%WindowsSdkDir%bin\x86;%PATH%" +- @set "INCLUDE=%WindowsSdkDir%include\shared;%WindowsSdkDir%include\um;%WindowsSdkDir%include\winrt;%INCLUDE%" +- @set "LIB=%WindowsSdkDir%lib\win8\um\x86;%LIB%" ++ @set "PATH=%WindowsSdkDir%bin;%WindowsSdkDir%bin\x86;%PATH%" ++ @set "INCLUDE=%WindowsSdkDir%include;%WindowsSdkDir%include\shared;%WindowsSdkDir%include\um;%WindowsSdkDir%include\winrt;%INCLUDE%" ++ @set "LIB=%WindowsSdkDir%lib;%WindowsSdkDir%lib\win8\um\x86;%LIB%" + @set "LIBPATH=%WindowsSdkDir%References\CommonConfiguration\Neutral;%ExtensionSDKDir%\Microsoft.VCLibs\11.0\References\CommonConfiguration\neutral;%LIBPATH%" + ) +