Add a VS "14" msbuild toolset
[oota-llvm.git] / tools / msbuild / install.bat
index 9880fb27e9b2fe35113cf2f9a054f3c403b45dd5..18057b4d40ff15a74e73b6ff9c9c778c9c73d472 100644 (file)
@@ -30,6 +30,12 @@ IF EXIST %D% GOTO FOUND_V120
 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\%PLATFORM%\PlatformToolsets"\r
 IF EXIST %D% GOTO FOUND_V120\r
 \r
+:TRY_V140\r
+SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\%PLATFORM%\PlatformToolsets"\r
+IF EXIST %D% GOTO FOUND_V140\r
+SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\%PLATFORM%\PlatformToolsets"\r
+IF EXIST %D% GOTO FOUND_V140\r
+\r
 :LOOPEND\r
 IF %SUCCESS% == 1 goto DONE\r
 echo Failed to find MSBuild toolsets directory.\r
@@ -76,6 +82,22 @@ IF NOT %ERRORLEVEL% == 0 GOTO FAILED
 copy %PLATFORM%\toolset-vs2013_xp.targets %D%\LLVM-vs2013_xp\toolset.targets\r
 IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
 set SUCCESS=1\r
+GOTO TRY_V140\r
+\r
+:FOUND_V140\r
+IF NOT EXIST %D%\LLVM-vs2014 mkdir %D%\LLVM-vs2014\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+copy %PLATFORM%\toolset-vs2014.props %D%\LLVM-vs2014\toolset.props\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+copy %PLATFORM%\toolset-vs2014.targets %D%\LLVM-vs2014\toolset.targets\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+IF NOT EXIST %D%\LLVM-vs2014_xp mkdir %D%\LLVM-vs2014_xp\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+copy %PLATFORM%\toolset-vs2014_xp.props %D%\LLVM-vs2014_xp\toolset.props\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+copy %PLATFORM%\toolset-vs2014_xp.targets %D%\LLVM-vs2014_xp\toolset.targets\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+set SUCCESS=1\r
 GOTO START\r
 \r
 \r