mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Revert build.bat
This commit is contained in:
parent
35986fef4e
commit
637610b20a
1 changed files with 82 additions and 16 deletions
94
build.bat
94
build.bat
|
|
@ -1,18 +1,84 @@
|
|||
@echo off
|
||||
|
||||
rem Compiling components
|
||||
rem the next two line must be changed before run on your computer
|
||||
set lazpath=D:\Alexx\Prog\FreePascal\Lazarus
|
||||
|
||||
rem Do not execute this script directly.
|
||||
rem This script is called from ..\build.bat.
|
||||
set PATH=%lazpath%;%PATH%
|
||||
|
||||
pushd components
|
||||
lazbuild chsdet\chsdet.lpk %DC_ARCH%
|
||||
lazbuild CmdLine\cmdbox.lpk %DC_ARCH%
|
||||
lazbuild multithreadprocs\multithreadprocslaz.lpk %DC_ARCH%
|
||||
lazbuild dcpcrypt\dcpcrypt.lpk %DC_ARCH%
|
||||
lazbuild doublecmd\doublecmd_common.lpk %DC_ARCH%
|
||||
lazbuild KASToolBar\kascomp.lpk %DC_ARCH%
|
||||
lazbuild viewer\viewerpackage.lpk %DC_ARCH%
|
||||
lazbuild gifanim\pkg_gifanim.lpk %DC_ARCH%
|
||||
lazbuild ZVDateTimeCtrls\zvdatetimectrls.lpk %DC_ARCH%
|
||||
popd
|
||||
rem You can execute this script with different parameters:
|
||||
rem components - compiling components needed for DC
|
||||
rem plugins - compiling all DC plugins
|
||||
rem all - compiling components, plugins and DC
|
||||
rem default - compiling DC only
|
||||
rem beta - compile in beta mode (using by default)
|
||||
if not "%OS_TARGET%" == "" (
|
||||
set DC_ARCH=%DC_ARCH% --os=%OS_TARGET%
|
||||
)
|
||||
if not "%CPU_TARGET%" == "" (
|
||||
set DC_ARCH=%DC_ARCH% --cpu=%CPU_TARGET%
|
||||
)
|
||||
|
||||
if "%1"=="components" ( call :components
|
||||
) else (
|
||||
if "%1"=="plugins" ( call :plugins
|
||||
) else (
|
||||
if "%1"=="beta" ( call :beta
|
||||
) else (
|
||||
if "%1"=="default" ( call :default
|
||||
) else (
|
||||
if "%1"=="nightly" ( call :nightly
|
||||
) else (
|
||||
if "%1"=="all" ( call :all
|
||||
) else (
|
||||
if "%1"=="" ( call :beta
|
||||
) else (
|
||||
echo ERROR: Mode not defined: %1
|
||||
echo Available modes: components, plugins, default, nightly, all, beta
|
||||
)))))))
|
||||
|
||||
pause
|
||||
GOTO:EOF
|
||||
|
||||
:components
|
||||
call components\build.bat
|
||||
GOTO:EOF
|
||||
|
||||
:plugins
|
||||
call plugins\build.bat
|
||||
GOTO:EOF
|
||||
|
||||
:beta
|
||||
call :components
|
||||
call :plugins
|
||||
|
||||
rem Build Double Commander
|
||||
call :replace_old
|
||||
lazbuild src\doublecmd.lpi --bm=beta %DC_ARCH%
|
||||
|
||||
rem Build Dwarf LineInfo Extractor
|
||||
lazbuild tools\extractdwrflnfo.lpi
|
||||
|
||||
rem Extract debug line info
|
||||
tools\extractdwrflnfo doublecmd.dbg
|
||||
GOTO:EOF
|
||||
|
||||
:all
|
||||
call :components
|
||||
call :plugins
|
||||
call :default
|
||||
GOTO:EOF
|
||||
|
||||
:default
|
||||
call :replace_old
|
||||
lazbuild src\doublecmd.lpi %DC_ARCH%
|
||||
GOTO:EOF
|
||||
|
||||
:nightly
|
||||
call :replace_old
|
||||
lazbuild src\doublecmd.lpi --bm=nightly %DC_ARCH%
|
||||
GOTO:EOF
|
||||
|
||||
:replace_old
|
||||
del /Q doublecmd.exe.old
|
||||
ren doublecmd.exe doublecmd.exe.old
|
||||
GOTO:EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue