diff --git a/.gitignore b/.gitignore index 4ea19e6..c131078 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.$* *.~* +*.7z *.bak *.cfg *.bpl @@ -9,5 +10,9 @@ *.dof *.dsk *.exe +*.img +*.iso *.map -*.tmp \ No newline at end of file +*.tmp +*.zip +Bin/* \ No newline at end of file diff --git a/KolibriOS/Examples/ColorButtons/build.bat b/KolibriOS/Examples/ColorButtons/build.bat new file mode 100644 index 0000000..27b6800 --- /dev/null +++ b/KolibriOS/Examples/ColorButtons/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0ColorButtons" \ No newline at end of file diff --git a/KolibriOS/Examples/ColorButtons/make.bat b/KolibriOS/Examples/ColorButtons/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/ColorButtons/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/DateTime/build.bat b/KolibriOS/Examples/DateTime/build.bat new file mode 100644 index 0000000..641635a --- /dev/null +++ b/KolibriOS/Examples/DateTime/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0DateTime" \ No newline at end of file diff --git a/KolibriOS/Examples/DateTime/make.bat b/KolibriOS/Examples/DateTime/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/DateTime/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/DrawImage/build.bat b/KolibriOS/Examples/DrawImage/build.bat new file mode 100644 index 0000000..105178b --- /dev/null +++ b/KolibriOS/Examples/DrawImage/build.bat @@ -0,0 +1,3 @@ +@echo off +call "%~dp0..\build.bat" "%~dp0DrawImage" +copy "%~dp0*.tga" "%~dp0..\..\..\Bin" \ No newline at end of file diff --git a/KolibriOS/Examples/DrawImage/make.bat b/KolibriOS/Examples/DrawImage/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/DrawImage/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/DrawImageEx/build.bat b/KolibriOS/Examples/DrawImageEx/build.bat new file mode 100644 index 0000000..3ce4d63 --- /dev/null +++ b/KolibriOS/Examples/DrawImageEx/build.bat @@ -0,0 +1,3 @@ +@echo off +call "%~dp0..\build.bat" "%~dp0DrawImageEx" +copy "%~dp0*.bmp" "%~dp0..\..\..\Bin" \ No newline at end of file diff --git a/KolibriOS/Examples/DrawImageEx/make.bat b/KolibriOS/Examples/DrawImageEx/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/DrawImageEx/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/DrawText/build.bat b/KolibriOS/Examples/DrawText/build.bat new file mode 100644 index 0000000..e1b73f0 --- /dev/null +++ b/KolibriOS/Examples/DrawText/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0DrawText" \ No newline at end of file diff --git a/KolibriOS/Examples/DrawText/make.bat b/KolibriOS/Examples/DrawText/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/DrawText/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/GetCurrentDir/build.bat b/KolibriOS/Examples/GetCurrentDir/build.bat new file mode 100644 index 0000000..6328dbe --- /dev/null +++ b/KolibriOS/Examples/GetCurrentDir/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0GetCurrentDir" \ No newline at end of file diff --git a/KolibriOS/Examples/GetCurrentDir/make.bat b/KolibriOS/Examples/GetCurrentDir/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/GetCurrentDir/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/GetPixel/build.bat b/KolibriOS/Examples/GetPixel/build.bat new file mode 100644 index 0000000..4a6a38e --- /dev/null +++ b/KolibriOS/Examples/GetPixel/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0GetPixel" \ No newline at end of file diff --git a/KolibriOS/Examples/GetPixel/make.bat b/KolibriOS/Examples/GetPixel/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/GetPixel/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/GetPointOwner/build.bat b/KolibriOS/Examples/GetPointOwner/build.bat new file mode 100644 index 0000000..b4c4c30 --- /dev/null +++ b/KolibriOS/Examples/GetPointOwner/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0GetPointOwner" \ No newline at end of file diff --git a/KolibriOS/Examples/GetPointOwner/make.bat b/KolibriOS/Examples/GetPointOwner/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/GetPointOwner/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/Hello/build.bat b/KolibriOS/Examples/Hello/build.bat new file mode 100644 index 0000000..b2b7dc6 --- /dev/null +++ b/KolibriOS/Examples/Hello/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0Hello" \ No newline at end of file diff --git a/KolibriOS/Examples/Hello/make.bat b/KolibriOS/Examples/Hello/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/Hello/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/LoadFile/build.bat b/KolibriOS/Examples/LoadFile/build.bat new file mode 100644 index 0000000..2dcbaa3 --- /dev/null +++ b/KolibriOS/Examples/LoadFile/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0LoadFile" \ No newline at end of file diff --git a/KolibriOS/Examples/LoadFile/make.bat b/KolibriOS/Examples/LoadFile/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/LoadFile/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/ReadFolder/build.bat b/KolibriOS/Examples/ReadFolder/build.bat new file mode 100644 index 0000000..33f4829 --- /dev/null +++ b/KolibriOS/Examples/ReadFolder/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0ReadFolder" \ No newline at end of file diff --git a/KolibriOS/Examples/ReadFolder/make.bat b/KolibriOS/Examples/ReadFolder/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/ReadFolder/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/Screenshot/build.bat b/KolibriOS/Examples/Screenshot/build.bat new file mode 100644 index 0000000..65ff628 --- /dev/null +++ b/KolibriOS/Examples/Screenshot/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0Screenshot" \ No newline at end of file diff --git a/KolibriOS/Examples/Screenshot/make.bat b/KolibriOS/Examples/Screenshot/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/Screenshot/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/SetCursor/build.bat b/KolibriOS/Examples/SetCursor/build.bat new file mode 100644 index 0000000..2e23013 --- /dev/null +++ b/KolibriOS/Examples/SetCursor/build.bat @@ -0,0 +1,3 @@ +@echo off +call "%~dp0..\build.bat" "%~dp0SetCursor" +copy "%~dp0*.bmp" "%~dp0..\..\..\Bin" \ No newline at end of file diff --git a/KolibriOS/Examples/SetCursor/make.bat b/KolibriOS/Examples/SetCursor/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/SetCursor/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/SetPixel/build.bat b/KolibriOS/Examples/SetPixel/build.bat new file mode 100644 index 0000000..0ac7c85 --- /dev/null +++ b/KolibriOS/Examples/SetPixel/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0SetPixel" \ No newline at end of file diff --git a/KolibriOS/Examples/SetPixel/make.bat b/KolibriOS/Examples/SetPixel/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/SetPixel/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/SetWindowPos/build.bat b/KolibriOS/Examples/SetWindowPos/build.bat new file mode 100644 index 0000000..b82bea3 --- /dev/null +++ b/KolibriOS/Examples/SetWindowPos/build.bat @@ -0,0 +1 @@ +@call "%~dp0..\build.bat" "%~dp0SetWindowPos" \ No newline at end of file diff --git a/KolibriOS/Examples/SetWindowPos/make.bat b/KolibriOS/Examples/SetWindowPos/make.bat deleted file mode 100644 index 584c95d..0000000 --- a/KolibriOS/Examples/SetWindowPos/make.bat +++ /dev/null @@ -1 +0,0 @@ -../make.bat Unit1 \ No newline at end of file diff --git a/KolibriOS/Examples/build.bat b/KolibriOS/Examples/build.bat new file mode 100644 index 0000000..328d240 --- /dev/null +++ b/KolibriOS/Examples/build.bat @@ -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 \ No newline at end of file diff --git a/build-RTL.bat b/build-RTL.bat new file mode 100644 index 0000000..85b4a11 --- /dev/null +++ b/build-RTL.bat @@ -0,0 +1 @@ +@dcc32 -m -y -z %~dp0RTL\System -n%~dp0\RTL %* \ No newline at end of file diff --git a/build-all.bat b/build-all.bat new file mode 100644 index 0000000..532cb1b --- /dev/null +++ b/build-all.bat @@ -0,0 +1,8 @@ +@echo off + +call %~dp0build-RTL.bat +if errorlevel 1 goto exit + +call %~dp0build-apps.bat + +:exit \ No newline at end of file diff --git a/build-apps.bat b/build-apps.bat new file mode 100644 index 0000000..20832fc --- /dev/null +++ b/build-apps.bat @@ -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 \ No newline at end of file