Menu

[77d46b]: / Scripts / BuildDemosDelphi.bat  Maximize  Restore  History

Download this file

36 lines (28 with data), 1.0 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
@echo OFF
echo Building Demos using Delphi
set ROOTDIR=..
set DEMOPATH=%ROOTDIR%\Demos\ObjectPascal
set OUTPUT=-E%ROOTDIR%\Demos\Bin
set UNITS=-U%ROOTDIR%\Source -U%ROOTDIR%\Source\JpegLib -U%ROOTDIR%\Source\ZLib -U%ROOTDIR%\Extras\Extensions -U%ROOTDIR%\Extras\Extensions\LibTiff
set UNITS=%UNITS% -U%DEMOPATH%\Common -U%ROOTDIR%\Extras\Extensions\LibTiff
set INCLUDE=-I%ROOTDIR%\Source
set OPTIONS=-B -$D- -$L- -$Y- -DRELEASE
set DEMOSBUILD=0
set DEMOCOUNT=3
call :BUILD Benchmark\Bench.dpr
call :BUILD VampConvert\VampConvert.dpr
call :BUILD VCLImageBrowser\ImgBrowser.dpr
goto END
:BUILD
dcc32 %OPTIONS% %DEMOPATH%\%1 %OUTPUT% %UNITS% %INCLUDE%
if errorlevel 1 (echo Error when building %1) else (set /a DEMOSBUILD+=1)
goto :EOF
:END
if "%DEMOSBUILD%"=="%DEMOCOUNT%" (
echo Build Successful - all %DEMOSBUILD% of %DEMOCOUNT% build
echo
) else (
echo Errors during building - only %DEMOSBUILD% of %DEMOCOUNT% demos build
echo
)
call Clean.bat
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.