mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2024-09-19 01:21:02 +02:00
Build scripts for RTL and examples
This commit is contained in:
parent
b0ec37bebd
commit
d72a460d22
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
*.$*
|
||||
*.~*
|
||||
*.7z
|
||||
*.bak
|
||||
*.cfg
|
||||
*.bpl
|
||||
@ -9,5 +10,9 @@
|
||||
*.dof
|
||||
*.dsk
|
||||
*.exe
|
||||
*.img
|
||||
*.iso
|
||||
*.map
|
||||
*.tmp
|
||||
*.zip
|
||||
Bin/*
|
1
KolibriOS/Examples/ColorButtons/build.bat
Normal file
1
KolibriOS/Examples/ColorButtons/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0ColorButtons"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/DateTime/build.bat
Normal file
1
KolibriOS/Examples/DateTime/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0DateTime"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
3
KolibriOS/Examples/DrawImage/build.bat
Normal file
3
KolibriOS/Examples/DrawImage/build.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
call "%~dp0..\build.bat" "%~dp0DrawImage"
|
||||
copy "%~dp0*.tga" "%~dp0..\..\..\Bin"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
3
KolibriOS/Examples/DrawImageEx/build.bat
Normal file
3
KolibriOS/Examples/DrawImageEx/build.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
call "%~dp0..\build.bat" "%~dp0DrawImageEx"
|
||||
copy "%~dp0*.bmp" "%~dp0..\..\..\Bin"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/DrawText/build.bat
Normal file
1
KolibriOS/Examples/DrawText/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0DrawText"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/GetCurrentDir/build.bat
Normal file
1
KolibriOS/Examples/GetCurrentDir/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0GetCurrentDir"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/GetPixel/build.bat
Normal file
1
KolibriOS/Examples/GetPixel/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0GetPixel"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/GetPointOwner/build.bat
Normal file
1
KolibriOS/Examples/GetPointOwner/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0GetPointOwner"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/Hello/build.bat
Normal file
1
KolibriOS/Examples/Hello/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0Hello"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/LoadFile/build.bat
Normal file
1
KolibriOS/Examples/LoadFile/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0LoadFile"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/ReadFolder/build.bat
Normal file
1
KolibriOS/Examples/ReadFolder/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0ReadFolder"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/Screenshot/build.bat
Normal file
1
KolibriOS/Examples/Screenshot/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0Screenshot"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
3
KolibriOS/Examples/SetCursor/build.bat
Normal file
3
KolibriOS/Examples/SetCursor/build.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
call "%~dp0..\build.bat" "%~dp0SetCursor"
|
||||
copy "%~dp0*.bmp" "%~dp0..\..\..\Bin"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/SetPixel/build.bat
Normal file
1
KolibriOS/Examples/SetPixel/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0SetPixel"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
1
KolibriOS/Examples/SetWindowPos/build.bat
Normal file
1
KolibriOS/Examples/SetWindowPos/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\build.bat" "%~dp0SetWindowPos"
|
@ -1 +0,0 @@
|
||||
../make.bat Unit1
|
30
KolibriOS/Examples/build.bat
Normal file
30
KolibriOS/Examples/build.bat
Normal 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
1
build-RTL.bat
Normal file
@ -0,0 +1 @@
|
||||
@dcc32 -m -y -z %~dp0RTL\System -n%~dp0\RTL %*
|
8
build-all.bat
Normal file
8
build-all.bat
Normal 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
47
build-apps.bat
Normal 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
|
Loading…
Reference in New Issue
Block a user