mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Compile using VS2017
This commit is contained in:
parent
04055abd3e
commit
5545a653b8
15
build.bat
15
build.bat
@ -10,11 +10,8 @@ IF /I "%~1" == "-help" GOTO SHOWHELP
|
||||
IF /I "%~1" == "--help" GOTO SHOWHELP
|
||||
IF /I "%~1" == "/?" GOTO SHOWHELP
|
||||
|
||||
IF DEFINED VS140COMNTOOLS (
|
||||
SET VSVARS_BAT="%VS140COMNTOOLS%vsvars32.bat"
|
||||
) ELSE (
|
||||
ECHO Cannot find Visual Studio 2015
|
||||
GOTO EndWithError
|
||||
for /f "usebackq tokens=1* delims=: " %%i in (`vswhere -latest -requires Microsoft.Component.MSBuild`) do (
|
||||
if /i "%%i"=="installationPath" set InstallDir=%%j
|
||||
)
|
||||
|
||||
IF "%~1" == "" (
|
||||
@ -41,12 +38,16 @@ IF "%~1" == "" (
|
||||
:START
|
||||
PUSHD "src"
|
||||
|
||||
CALL %VSVARS_BAT%
|
||||
TITLE %BUILDTYPE%ing SubtitleEdit - Release^|Any CPU...
|
||||
|
||||
"MSBuild.exe" SubtitleEdit.sln /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^
|
||||
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
|
||||
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" SubtitleEdit.sln /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^
|
||||
/maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError
|
||||
) else (
|
||||
ECHO Cannot find Visual Studio 2017
|
||||
GOTO EndWithError
|
||||
)
|
||||
|
||||
IF /I "%BUILDTYPE%" == "Clean" GOTO END
|
||||
|
||||
|
BIN
vswhere.exe
Normal file
BIN
vswhere.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user