mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
54 lines
No EOL
1.2 KiB
Batchfile
54 lines
No EOL
1.2 KiB
Batchfile
@echo off
|
|
|
|
rem the next line must be changed before run on your computer
|
|
set lazpath=D:\Alexx\Prog\FreePascal\Lazarus
|
|
|
|
set PATH=%PATH%;%lazpath%
|
|
|
|
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 (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" components\build.bat
|
|
if "%1"=="plugins" plugins\build.bat
|
|
if "%1"=="beta" goto beta
|
|
if "%1"=="all" goto all
|
|
goto default
|
|
|
|
:beta
|
|
call components\build.bat
|
|
call plugins\build.bat
|
|
|
|
rem Build Double Commander
|
|
lazbuild src\doublecmd.lpi --bm=beta %DC_ARCH%
|
|
|
|
rem Build Dwarf LineInfo Extractor
|
|
fpc src\extractdwrflnfo.lpr
|
|
|
|
rem Extract debug line info
|
|
src\extractdwrflnfo doublecmd.dbg
|
|
|
|
rem Strip debug info
|
|
strip --strip-all doublecmd.exe
|
|
|
|
goto exit
|
|
|
|
:all
|
|
call components\build.bat
|
|
call plugins\build.bat
|
|
|
|
:default
|
|
lazbuild src\doublecmd.lpi %DC_ARCH%
|
|
|
|
strip --strip-all doublecmd.exe
|
|
|
|
:exit |