-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.bat
More file actions
50 lines (41 loc) · 1.16 KB
/
build.bat
File metadata and controls
50 lines (41 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
REM Build script for ImageWriter projects
cd /d "%~dp0"
SET DCC32="C:\Program Files (x86)\Borland\Delphi7\Bin\DCC32.EXE"
SET UNITS=-U"src;src\studio;src\studio\md5;src\studio\sha256;src\studio\random"
SET DEFINES=-dZLIB_USE_DLL
echo ========================================
echo Building ImageWriter projects
echo ========================================
echo.
echo Cleaning old files...
del /Q src\*.dcu 2>nul
del /Q src\studio\*.dcu 2>nul
del /Q src\studio\md5\*.dcu 2>nul
del /Q src\studio\sha256\*.dcu 2>nul
del /Q src\studio\random\*.dcu 2>nul
del /Q *.exe 2>nul
echo.
echo Building ImageWriter.exe...
%DCC32% -B %DEFINES% %UNITS% ImageWriter.dpr
if errorlevel 1 goto error
echo [OK] ImageWriter.exe compiled
echo.
echo Building ImageWriterPro.exe...
%DCC32% -B %DEFINES% %UNITS% ImageWriterPro.dpr
if errorlevel 1 goto error
echo [OK] ImageWriterPro.exe compiled
echo.
echo ========================================
echo Build completed successfully!
echo ========================================
echo.
dir /B *.exe
goto end
:error
echo.
echo ========================================
echo Build FAILED!
echo ========================================
exit /b 1
:end