-
Notifications
You must be signed in to change notification settings - Fork 23
/
_linux_llvm.bat
executable file
·41 lines (28 loc) · 1.08 KB
/
_linux_llvm.bat
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
cd ~/surf-ice
#compile Surfice to OpenGL 3.3 CORE
#next lines obsolete: we use glcorearb.pas
# the copy of glext that comes with freepascal 3.0 does not support geometry shaders
# cp ./coregl/glext.pp ./glext.pp
cp ./optsCore.inc ./opts.inc
rm -rf lib
lazbuild -B --compiler=/home/chris/pas/fpcllvm86/lib/fpc/3.3.1/ppcx64 surfice.lpr
cp surfice ~/Surf_Ice/surfice
rm -rf lib
lazbuild -B --compiler=/home/chris/pas/fpcllvm86/lib/fpc/3.3.1/ppcx64 surfice.lpr --ws=qt5
cp surfice ~/Surf_Ice/surfice_qt5
#compile Surfice to OpenGL 2.1
#next line not used: we will not use the geometry shaders
# cp ./optsCompatGeom.inc ./opts.inc
cp ./optsCompat.inc ./opts.inc
rm -rf lib
lazbuild -B --compiler=/home/chris/pas/fpcllvm86/lib/fpc/3.3.1/ppcx64 surfice.lpr
cp surfice ~/Surf_Ice/surficeOld
rm -rf lib
lazbuild -B --compiler=/home/chris/pas/fpcllvm86/lib/fpc/3.3.1/ppcx64 surfice.lpr --ws=qt5
cp surfice ~/Surf_Ice/surficeOld_qt5
#clean up - remove modified glext so it does not interfere with other builds
rm -rf lib
#cp ./optsCompat.inc ./opts.inc
#rm ./glext.pp
cd ~
zip -FSr surfice_linux.zip Surf_Ice