KoW for console applications added

This commit is contained in:
2021-01-08 18:39:17 +03:00
parent 305cd924f7
commit 5f3fca1705
29 changed files with 824 additions and 134 deletions

View File

@@ -7,7 +7,7 @@ if #%Source%#==## (
goto exit
)
call "%~dp0init.bat"
call "%~dp0init.bat" -dKolibriOS
set Bin=%~dp0..\Bin
set DCU=%Bin%\DCU
@@ -17,10 +17,16 @@ set Units=%~dp0..\Lib;%DCU%
if exist "%Source%.cfg" del "%Source%.cfg"
dcc32 %Source%.dpr -e"%Bin%" -n"%DCU%" -u"%Units%" %Options%
dcc32 -b %Source%.dpr -e"%Bin%" -n"%DCU%" -u"%Units%" %Options% -dKolibriOS
if errorlevel 1 goto exit
call "%~dp0convert.bat" "%Target%.exe"
"%~dp0..\Pet" -nologo -strip -trunc -dropsect .idata,.rsrc -rebase 0 -osver 0.7 -log brief -into "%Target%.exe"
if errorlevel 1 goto exit
"%~dp0..\exe2kos" "%Target%.exe"
if errorlevel 1 goto exit
"%~dp0..\kpack" "%Target%"
if errorlevel 1 goto exit
del "%Target%.exe"

View File

@@ -1,8 +0,0 @@
@echo off
for %%f in ("%~dp0*.exe") do (
call "%~dp0..\Tools\convert.bat" "%%f" %*
if errorlevel 1 goto exit
)
:exit

View File

@@ -1,16 +0,0 @@
@echo off
if #%1#==## (
echo Usage: %~n0 [source-file.exe [pet-options]]
goto exit
)
"%~dp0..\Pet" -nologo -strip -trunc -dropsect .idata,.rsrc -rebase 0 -osver 0.7 -log brief -into %*
if errorlevel 1 goto exit
"%~dp0..\exe2kos" %1
if errorlevel 1 goto exit
"%~dp0..\kpack" "%~dp1%~n1"
:exit

View File

@@ -6,13 +6,4 @@ set DCU=%Bin%\DCU
if not exist "%Bin%" mkdir "%Bin%"
if not exist "%DCU%" mkdir "%DCU%"
echo @call "%%~dp0..\Tools\convert.bat" %%* >"%Bin%\convert.bat"
if errorlevel 1 goto exit
copy "%~dp0convert-all.bat" "%Bin%" >nul
if errorlevel 1 goto exit
dcc32 -m -y -z "%~dp0..\Lib\System" -n"%DCU%"
if errorlevel 1 goto exit
:exit
dcc32 -m -y -z "%~dp0..\Lib\System" -n"%DCU%" %*