3 echo Installing MSVC integration...
\r
6 REM Change to the directory of this batch file.
\r
9 REM Loop over the two platforms in awkward batch file fashion.
\r
12 IF %PLATFORM% == x64 GOTO PLATFORMLOOPEND
\r
13 IF %PLATFORM% == Win32 SET PLATFORM=x64
\r
14 IF %PLATFORM% == None SET PLATFORM=Win32
\r
16 REM Search for the MSBuild toolsets directory.
\r
18 SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\Platforms\%PLATFORM%\PlatformToolsets"
\r
19 IF EXIST %D% GOTO FOUND_V100
\r
20 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\%PLATFORM%\PlatformToolsets"
\r
21 IF EXIST %D% GOTO FOUND_V100
\r
24 SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\%PLATFORM%\PlatformToolsets"
\r
25 IF EXIST %D% GOTO FOUND_V110
\r
26 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\%PLATFORM%\PlatformToolsets"
\r
27 IF EXIST %D% GOTO FOUND_V110
\r
30 SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\%PLATFORM%\PlatformToolsets"
\r
31 IF EXIST %D% GOTO FOUND_V120
\r
32 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\%PLATFORM%\PlatformToolsets"
\r
33 IF EXIST %D% GOTO FOUND_V120
\r
36 SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\%PLATFORM%\PlatformToolsets"
\r
37 IF EXIST %D% GOTO FOUND_V140
\r
38 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\%PLATFORM%\PlatformToolsets"
\r
39 IF EXIST %D% GOTO FOUND_V140
\r
43 GOTO PLATFORMLOOPHEAD
\r
46 IF %SUCCESS% == 1 goto DONE
\r
47 echo Failed to find MSBuild toolsets directory.
\r
52 REM Routine for installing v100 toolchain.
\r
53 IF NOT EXIST %D%\LLVM-vs2010 mkdir %D%\LLVM-vs2010
\r
54 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
55 copy %PLATFORM%\Microsoft.Cpp.%PLATFORM%.LLVM-vs2010.props %D%\LLVM-vs2010
\r
56 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
57 copy %PLATFORM%\Microsoft.Cpp.%PLATFORM%.LLVM-vs2010.targets %D%\LLVM-vs2010
\r
58 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
63 REM Routine for installing v110 toolchain.
\r
64 IF NOT EXIST %D%\LLVM-vs2012 mkdir %D%\LLVM-vs2012
\r
65 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
66 copy %PLATFORM%\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012.props %D%\LLVM-vs2012
\r
67 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
68 copy %PLATFORM%\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012.targets %D%\LLVM-vs2012
\r
69 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
70 IF NOT EXIST %D%\LLVM-vs2012_xp mkdir %D%\LLVM-vs2012_xp
\r
71 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
72 copy %PLATFORM%\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012_xp.props %D%\LLVM-vs2012_xp
\r
73 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
74 copy %PLATFORM%\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012_xp.targets %D%\LLVM-vs2012_xp
\r
75 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
80 REM Routine for installing v120 toolchain.
\r
81 IF NOT EXIST %D%\LLVM-vs2013 mkdir %D%\LLVM-vs2013
\r
82 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
83 copy %PLATFORM%\toolset-vs2013.props %D%\LLVM-vs2013\toolset.props
\r
84 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
85 copy %PLATFORM%\toolset-vs2013.targets %D%\LLVM-vs2013\toolset.targets
\r
86 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
87 IF NOT EXIST %D%\LLVM-vs2013_xp mkdir %D%\LLVM-vs2013_xp
\r
88 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
89 copy %PLATFORM%\toolset-vs2013_xp.props %D%\LLVM-vs2013_xp\toolset.props
\r
90 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
91 copy %PLATFORM%\toolset-vs2013_xp.targets %D%\LLVM-vs2013_xp\toolset.targets
\r
92 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
97 REM Routine for installing v140 toolchain.
\r
98 IF NOT EXIST %D%\LLVM-vs2014 mkdir %D%\LLVM-vs2014
\r
99 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
100 copy %PLATFORM%\toolset-vs2014.props %D%\LLVM-vs2014\toolset.props
\r
101 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
102 copy %PLATFORM%\toolset-vs2014.targets %D%\LLVM-vs2014\toolset.targets
\r
103 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
104 IF NOT EXIST %D%\LLVM-vs2014_xp mkdir %D%\LLVM-vs2014_xp
\r
105 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
106 copy %PLATFORM%\toolset-vs2014_xp.props %D%\LLVM-vs2014_xp\toolset.props
\r
107 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
108 copy %PLATFORM%\toolset-vs2014_xp.targets %D%\LLVM-vs2014_xp\toolset.targets
\r
109 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
\r
119 echo MSVC integration install failed.
\r