mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
b63516efe7
This adds the msbuild integration files to the install, provides batch scripts for (un)installing it in a convenient way, and hooks up the nsis installer to run those scripts. Differential Revision: http://llvm-reviews.chandlerc.com/D1537 llvm-svn: 189434
35 lines
832 B
Batchfile
35 lines
832 B
Batchfile
@echo off
|
|
|
|
echo Installing MSVC integration...
|
|
|
|
REM Change to the directory of this batch file.
|
|
cd /d %~dp0
|
|
|
|
REM Search for the MSBuild toolsets directory.
|
|
SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets"
|
|
IF EXIST %D% GOTO FOUND_MSBUILD
|
|
SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets"
|
|
IF EXIST %D% GOTO FOUND_MSBUILD
|
|
|
|
echo Failed to find MSBuild toolsets directory.
|
|
goto FAILED
|
|
|
|
:FOUND_MSBUILD
|
|
IF NOT EXIST %D%\llvm mkdir %D%\llvm
|
|
IF NOT %ERRORLEVEL% == 0 GOTO FAILED
|
|
|
|
copy Microsoft.Cpp.Win32.llvm.props %D%\llvm
|
|
IF NOT %ERRORLEVEL% == 0 GOTO FAILED
|
|
copy Microsoft.Cpp.Win32.llvm.targets %D%\llvm
|
|
IF NOT %ERRORLEVEL% == 0 GOTO FAILED
|
|
|
|
echo Done!
|
|
goto END
|
|
|
|
:FAILED
|
|
echo MSVC integration install failed.
|
|
pause
|
|
goto END
|
|
|
|
:END
|