Menu

[77d46b]: / Scripts / BuildDemosFPC.sh  Maximize  Restore  History

Download this file

24 lines (19 with data), 752 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
echo "Building Demos using Free Pascal"
ROOTDIR=".."
DEMOPATH="$ROOTDIR/Demos/ObjectPascal"
UNITS="-Fu$ROOTDIR/Source -Fu$ROOTDIR/Source/JpegLib -Fu$ROOTDIR/Source/ZLib
-Fu$ROOTDIR/Extras/Extensions -Fu$ROOTDIR\Extras\Extensions\LibTiff -Fu$DEMOPATH/Common"
INCLUDE="-Fi$ROOTDIR/Source"
LIBS="-Fl$ROOTDIR/Extras/Extensions/J2KObjects"
OUTPUT="-FE$ROOTDIR/Demos/Bin"
OPTIONS="-MDelphi -Scghi -Cg -OG2 -Xs"
fpc $OPTIONS $OUTPUT "$DEMOPATH/Benchmark/Bench.dpr" $UNITS $INCLUDE $LIBS -oBench
if test $? = 0; then
fpc $OPTIONS $OUTPUT "$DEMOPATH/VampConvert/VampConvert.dpr" $UNITS $INCLUDE $LIBS -oVampConvert
fi
if test $? = 0; then
echo "Demos successfuly build in Demos/Bin directory"
else
echo "Error when building demos!"
fi
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.