mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Merge pull request #1337 from xylographe/xfix1
Fix build.bat - use available Visual Studio
This commit is contained in:
commit
160b387cf8
16
build.bat
16
build.bat
@ -10,10 +10,18 @@ IF /I "%~1" == "-help" GOTO SHOWHELP
|
||||
IF /I "%~1" == "--help" GOTO SHOWHELP
|
||||
IF /I "%~1" == "/?" GOTO SHOWHELP
|
||||
|
||||
IF NOT DEFINED VS120COMNTOOLS (
|
||||
ECHO Visual Studio 2013 wasn't found
|
||||
IF DEFINED VS140COMNTOOLS (
|
||||
SET VSVARS_BAT="%VS140COMNTOOLS%vsvars32.bat"
|
||||
) ELSE (
|
||||
IF DEFINED VS130COMNTOOLS (
|
||||
SET VSVARS_BAT="%VS130COMNTOOLS%vsvars32.bat"
|
||||
) ELSE (
|
||||
IF DEFINED VS120COMNTOOLS (
|
||||
SET VSVARS_BAT="%VS120COMNTOOLS%vsvars32.bat"
|
||||
) ELSE (
|
||||
ECHO Cannot find Visual Studio
|
||||
GOTO EndWithError
|
||||
)
|
||||
)))
|
||||
|
||||
IF "%~1" == "" (
|
||||
SET "BUILDTYPE=Build"
|
||||
@ -39,7 +47,7 @@ IF "%~1" == "" (
|
||||
:START
|
||||
PUSHD "src"
|
||||
|
||||
CALL "%VS120COMNTOOLS%vsvars32.bat" x86
|
||||
CALL %VSVARS_BAT% x86
|
||||
TITLE %BUILDTYPE%ing SubtitleEdit - Release^|Any CPU...
|
||||
|
||||
"MSBuild.exe" SubtitleEdit.sln /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^
|
||||
|
Loading…
Reference in New Issue
Block a user