mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Build scripts
This commit is contained in:
parent
d0688ab5fe
commit
2308d9a193
4 changed files with 26 additions and 17 deletions
|
|
@ -8,6 +8,13 @@ rem doublecmd - compiling only DC without *.lrs files generation
|
|||
rem all - compiling components, plugins and DC with *.lrs files generation
|
||||
rem default - compiling DC with *.lrs files generation (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"=="doublecmd" goto doublecmd
|
||||
|
|
@ -22,6 +29,6 @@ call plugins\build.bat
|
|||
for %%f in (src\*.lfm) do %lazpath%\Tools\lazres %%~nf.lrs %%f
|
||||
|
||||
:doublecmd
|
||||
%lazpath%\lazbuild src\doublecmd.lpi
|
||||
%lazpath%\lazbuild src\doublecmd.lpi %DC_ARCH%
|
||||
|
||||
strip --strip-all doublecmd.exe
|
||||
|
|
@ -4,7 +4,7 @@ rem This script run from _make.bat
|
|||
rem If you run it direct, set up %lazpath% first
|
||||
|
||||
pushd components
|
||||
%lazpath%\lazbuild.exe CmdLine\cmdbox.lpk
|
||||
%lazpath%\lazbuild.exe KASToolBar\kascomp.lpk
|
||||
%lazpath%\lazbuild.exe viewer\viewerpackage.lpk
|
||||
%lazpath%\lazbuild.exe CmdLine\cmdbox.lpk %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe KASToolBar\kascomp.lpk %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe viewer\viewerpackage.lpk %DC_ARCH%
|
||||
popd
|
||||
|
|
|
|||
|
|
@ -38,11 +38,13 @@ copy windows\lib\*.dll %BUILD_DC_TMP_DIR%\
|
|||
cd /D %BUILD_DC_TMP_DIR%
|
||||
|
||||
rem Get processor architecture
|
||||
if "%DC_ARCH%" == "" (
|
||||
if "%CPU_TARGET%" == "" (
|
||||
if "%PROCESSOR_ARCHITECTURE%" == "x86" (
|
||||
set DC_ARCH=i386
|
||||
set CPU_TARGET=i386
|
||||
set OS_TARGET=win32
|
||||
) else if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
|
||||
set DC_ARCH=x86_64
|
||||
set CPU_TARGET=x86_64
|
||||
set OS_TARGET=win64
|
||||
)
|
||||
)
|
||||
|
||||
|
|
@ -61,7 +63,7 @@ move release\*.exe %PACK_DIR%
|
|||
|
||||
rem Create *.zip package
|
||||
patch doublecmd/doublecmd.ini portable.diff
|
||||
zip -9 -Dr %PACK_DIR%\doublecmd-%DC_VER%.%DC_ARCH%-win32.zip doublecmd
|
||||
zip -9 -Dr %PACK_DIR%\doublecmd-%DC_VER%.%CPU_TARGET%-%OS_TARGET%.zip doublecmd
|
||||
|
||||
rem Clean temp directories
|
||||
cd \
|
||||
|
|
|
|||
|
|
@ -7,17 +7,17 @@ rem CD to plugins directory
|
|||
pushd plugins
|
||||
|
||||
rem WCX plugins
|
||||
%lazpath%\lazbuild.exe wcx\cpio\src\cpio.lpi
|
||||
%lazpath%\lazbuild.exe wcx\deb\src\deb.lpi
|
||||
%lazpath%\lazbuild.exe wcx\lzma\src\lzma.lpi
|
||||
%lazpath%\lazbuild.exe wcx\rpm\src\rpm.lpi
|
||||
%lazpath%\lazbuild.exe wcx\unbz2\src\unbz2.lpi
|
||||
%lazpath%\lazbuild.exe wcx\unrar\src\unrar.lpi
|
||||
%lazpath%\lazbuild.exe wcx\zip\src\zip.lpi
|
||||
%lazpath%\lazbuild.exe wcx\cpio\src\cpio.lpi %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe wcx\deb\src\deb.lpi %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe wcx\lzma\src\lzma.lpi %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe wcx\rpm\src\rpm.lpi %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe wcx\unbz2\src\unbz2.lpi %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe wcx\unrar\src\unrar.lpi %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe wcx\zip\src\zip.lpi %DC_ARCH%
|
||||
|
||||
rem WDX plugins
|
||||
%lazpath%\lazbuild.exe wdx\rpm_wdx\src\rpm_wdx.lpi
|
||||
%lazpath%\lazbuild.exe wdx\deb_wdx\src\deb_wdx.lpi
|
||||
%lazpath%\lazbuild.exe wdx\rpm_wdx\src\rpm_wdx.lpi %DC_ARCH%
|
||||
%lazpath%\lazbuild.exe wdx\deb_wdx\src\deb_wdx.lpi %DC_ARCH%
|
||||
|
||||
rem Strip and rename WCX
|
||||
pushd wcx\cpio\lib\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue