diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-10-10 17:32:01 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-10-10 17:32:01 +0000 |
commit | a7d9a5d64a89ef8532fcf38cc8a57960d48e283e (patch) | |
tree | 0722121c4468bed273509f965e3e2cb1d35ef170 /tools/msbuild/install.bat | |
parent | 6a24c7d4e78ade068e60cbb95adb5021014ba0b7 (diff) | |
download | llvm-a7d9a5d64a89ef8532fcf38cc8a57960d48e283e.tar.gz llvm-a7d9a5d64a89ef8532fcf38cc8a57960d48e283e.tar.bz2 llvm-a7d9a5d64a89ef8532fcf38cc8a57960d48e283e.tar.xz |
Provide msbuild integration for vs2013.
Patch by Josh Samuel!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/msbuild/install.bat')
-rw-r--r-- | tools/msbuild/install.bat | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/msbuild/install.bat b/tools/msbuild/install.bat index fb00d277b9..c4c61ace8e 100644 --- a/tools/msbuild/install.bat +++ b/tools/msbuild/install.bat @@ -18,6 +18,12 @@ IF EXIST %D% GOTO FOUND_V110 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\PlatformToolsets"
IF EXIST %D% GOTO FOUND_V110
+:TRY_V120
+SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\Win32\PlatformToolsets"
+IF EXIST %D% GOTO FOUND_V120
+SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\Win32\PlatformToolsets"
+IF EXIST %D% GOTO FOUND_V120
+
IF %SUCCESS% == 1 goto DONE
echo Failed to find MSBuild toolsets directory.
goto FAILED
@@ -46,6 +52,22 @@ copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.props %D%\LLVM-vs2012_xp IF NOT %ERRORLEVEL% == 0 GOTO FAILED
copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets %D%\LLVM-vs2012_xp
IF NOT %ERRORLEVEL% == 0 GOTO FAILED
+set SUCCESS=1
+GOTO TRY_V120
+
+:FOUND_V120
+IF NOT EXIST %D%\LLVM-vs2013 mkdir %D%\LLVM-vs2013
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED
+copy toolset-vs2013.props %D%\LLVM-vs2013\toolset.props
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED
+copy toolset-vs2013.targets %D%\LLVM-vs2013\toolset.targets
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED
+IF NOT EXIST %D%\LLVM-vs2013_xp mkdir %D%\LLVM-vs2013_xp
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED
+copy toolset-vs2013_xp.props %D%\LLVM-vs2013_xp\toolset.props
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED
+copy toolset-vs2013_xp.targets %D%\LLVM-vs2013_xp\toolset.targets
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED
:DONE
echo Done!
|