Build scripts for RTL and examples

This commit is contained in:
Владислав Джавадов 2020-05-22 01:15:03 +03:00
parent b0ec37bebd
commit d72a460d22
35 changed files with 113 additions and 16 deletions

5
.gitignore vendored
View File

@ -1,5 +1,6 @@
*.$* *.$*
*.~* *.~*
*.7z
*.bak *.bak
*.cfg *.cfg
*.bpl *.bpl
@ -9,5 +10,9 @@
*.dof *.dof
*.dsk *.dsk
*.exe *.exe
*.img
*.iso
*.map *.map
*.tmp *.tmp
*.zip
Bin/*

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0ColorButtons"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0DateTime"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1,3 @@
@echo off
call "%~dp0..\build.bat" "%~dp0DrawImage"
copy "%~dp0*.tga" "%~dp0..\..\..\Bin"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1,3 @@
@echo off
call "%~dp0..\build.bat" "%~dp0DrawImageEx"
copy "%~dp0*.bmp" "%~dp0..\..\..\Bin"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0DrawText"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0GetCurrentDir"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0GetPixel"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0GetPointOwner"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0Hello"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0LoadFile"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0ReadFolder"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0Screenshot"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1,3 @@
@echo off
call "%~dp0..\build.bat" "%~dp0SetCursor"
copy "%~dp0*.bmp" "%~dp0..\..\..\Bin"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0SetPixel"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1 @@
@call "%~dp0..\build.bat" "%~dp0SetWindowPos"

View File

@ -1 +0,0 @@
../make.bat Unit1

View File

@ -0,0 +1,30 @@
@echo off
set Source=%1
if "%Source%"=="" (
echo Usage: %~n0 [source-file]
goto exit
)
set Bin=%~dp0..\..\Bin
set Options=-b -$C- -$I- -$T+
set Target=%Bin%\%~n1
set Units=%~dp0..\..\RTL;%~dp0..
if not exist "%Bin%" mkdir "%Bin%"
if exist "%Source%.cfg" del "%Source%.cfg"
dcc32 "%Source%.dpr" -e"%Bin%" %Options% -u"%Units%"
if errorlevel 1 goto exit
"%~dp0..\..\pet" -nologo -strip -trunc -dropsect .idata,.rsrc -rebase 0 -osver 0.7 -ls -into "%Target%.exe"
if errorlevel 1 goto exit
"%~dp0..\..\exe2kos" "%Target%.exe" "%Target%"
if errorlevel 1 goto exit
del "%Target%.exe"
%~dp0..\..\kpack "%Target%"
:exit

1
build-RTL.bat Normal file
View File

@ -0,0 +1 @@
@dcc32 -m -y -z %~dp0RTL\System -n%~dp0\RTL %*

8
build-all.bat Normal file
View File

@ -0,0 +1,8 @@
@echo off
call %~dp0build-RTL.bat
if errorlevel 1 goto exit
call %~dp0build-apps.bat
:exit

47
build-apps.bat Normal file
View File

@ -0,0 +1,47 @@
@echo off
call %~dp0KolibriOS\Examples\ColorButtons\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\DateTime\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\DrawImage\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\DrawImageEx\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\DrawText\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\GetCurrentDir\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\GetPixel\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\GetPointOwner\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\Hello\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\LoadFile\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\ReadFolder\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\Screenshot\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\SetCursor\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\SetPixel\build.bat
if errorlevel 1 goto exit
call %~dp0KolibriOS\Examples\SetWindowPos\build.bat
:exit