mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
improve build.bat
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@403 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
4e66adb019
commit
fecabb7789
29
build.bat
29
build.bat
@ -1,9 +1,14 @@
|
||||
@ECHO OFF
|
||||
SETLOCAL
|
||||
TITLE Compiling Subtitle Edit...
|
||||
|
||||
CD /D %~dp0
|
||||
|
||||
rem Check for the help switches
|
||||
IF /I "%~1"=="help" GOTO SHOWHELP
|
||||
IF /I "%~1"=="/help" GOTO SHOWHELP
|
||||
IF /I "%~1"=="-help" GOTO SHOWHELP
|
||||
IF /I "%~1"=="--help" GOTO SHOWHELP
|
||||
IF /I "%~1"=="/?" GOTO SHOWHELP
|
||||
|
||||
IF NOT DEFINED VS100COMNTOOLS (
|
||||
ECHO Visual Studio 2010 wasn't found
|
||||
GOTO EndWithError
|
||||
@ -34,8 +39,11 @@ IF "%~1" == "" (
|
||||
PUSHD "src"
|
||||
|
||||
CALL "%VS100COMNTOOLS%vsvars32.bat"
|
||||
TITLE %BUILDTYPE%ing SubtitleEdit with MSVC 2010 - Release^|Any CPU...
|
||||
|
||||
devenv SubtitleEdit.sln /%BUILDTYPE% "Release|Any CPU"
|
||||
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\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
|
||||
|
||||
ECHO.
|
||||
@ -48,6 +56,7 @@ CALL :SubDetectInnoSetup
|
||||
IF DEFINED InnoSetupPath (
|
||||
PUSHD "installer"
|
||||
|
||||
TITLE Compiling installer...
|
||||
"%InnoSetupPath%\iscc.exe" /Q "Subtitle_Edit_installer.iss"
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError
|
||||
|
||||
@ -75,6 +84,20 @@ ENDLOCAL
|
||||
EXIT
|
||||
|
||||
|
||||
:SHOWHELP
|
||||
TITLE "%~nx0 %1"
|
||||
ECHO. & ECHO.
|
||||
ECHO Usage: %~nx0 [Clean^|Build^|Rebuild]
|
||||
ECHO.
|
||||
ECHO Notes: You can also prefix the commands with "-", "--" or "/".
|
||||
ECHO The arguments are case insesitive.
|
||||
ECHO. & ECHO.
|
||||
ECHO Executing "%~nx0" will use the defaults: "%~nx0 build"
|
||||
ECHO.
|
||||
ENDLOCAL
|
||||
EXIT /B
|
||||
|
||||
|
||||
:SubDetectInnoSetup
|
||||
REM Detect if we are running on 64bit WIN and use Wow6432Node, and set the path
|
||||
REM of Inno Setup accordingly
|
||||
|
Loading…
Reference in New Issue
Block a user