-
Notifications
You must be signed in to change notification settings - Fork 20
/
build-all-linux-gcc.sh.template
127 lines (126 loc) · 1.99 KB
/
build-all-linux-gcc.sh.template
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
VALID=0
BatchToRun=
QtConfig=
CheckQtVerTool=
if [ "$1" = "Debug" ]
then
VALID=1
BatchToRun=./debug.sh
QtConfig=debug
CheckQtVerTool="./bin/isqt580-debug"
fi
if [ "$1" = "Release" ]
then
VALID=1
BatchToRun=./release.sh
QtConfig=release
CheckQtVerTool="./bin/isqt580-release"
fi
if [ "$VALID" -eq 0 ]
then
echo Build script for all libraries for Linux for GCC.
echo Syntax:
echo build-all-linux-gcc.sh "[Debug|Release]"
exit 1
fi
eval $BatchToRun
cd tools/atlasgen
qmake CONFIG+=$QtConfig atlasgen.pro
make
cd ../..
cd tools/exporter
qmake CONFIG+=$QtConfig exporter.pro
make
cd ../..
cd plugins/freetype
eval $BatchToRun
cd ../..
cd tools/ifaceed
qmake CONFIG+=$QtConfig ifaceed.pro
make
cd ../..
cd plugins/dukpp-03
eval $BatchToRun
cd ../..
cd plugins/irrklang
eval $BatchToRun
cd ../..
cd plugins/imgui
eval $BatchToRun
cd ../..
cd plugins/phy2d
eval $BatchToRun
cd ../..
cd plugins/dukpp-03-irrklang
eval $BatchToRun
cd ../..
cd examples/game
eval $BatchToRun
cd ../..
cd examples/multithreading
eval $BatchToRun
cd ../..
cd examples/stress-physics
eval $BatchToRun
cd ../..
cd examples/imgui
eval $BatchToRun
cd ../..
cd examples/shaders
eval $BatchToRun
cd ../..
cd tests/animations
eval $BatchToRun
cd ../..
cd tests/db
eval $BatchToRun
cd ../..
cd tests/dukpp-03
eval $BatchToRun
cd ../..
cd tests/freetype
eval $BatchToRun
cd ../..
cd tests/hfsm
eval $BatchToRun
cd ../..
cd tests/input
eval $BatchToRun
cd ../..
cd tests/irrklang
eval $BatchToRun
cd ../..
cd tests/dukpp-03-irrklang
eval $BatchToRun
cd ../..
cd tests/p2d
eval $BatchToRun
cd ../..
cd tests/pipeline
eval $BatchToRun
cd ../..
cd tests/resource
eval $BatchToRun
cd ../..
cd tests/sad
eval $BatchToRun
cd ../..
cd tests/layouts
eval $BatchToRun
cd ../..
cd tools/isqt580
qmake CONFIG+=$QtConfig isqt580.pro
make
cd ../..
eval $CheckQtVerTool
if [ $? -eq 1 ]
then
cd plugins/qt-widget
qmake CONFIG+=$QtConfig qt-widget.pro
make
cd ../..
cd examples/example-game-in-qt
qmake CONFIG+=$QtConfig example-game-in-qt.pro
make
cd ../..
fi