-
Notifications
You must be signed in to change notification settings - Fork 19
/
build-all-mingw.bat.template
129 lines (128 loc) · 2.71 KB
/
build-all-mingw.bat.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
128
129
@echo off
SET VALID=0
SET BatchToRun=
SET QtConfig=
SET CHECKQTVERTOOL=
if [%1] EQU [Debug] (
SET VALID=1
SET BatchToRun=debug.bat
SET QtConfig=debug
SET CHECKQTVERTOOL="bin/isqt580-debug.exe"
)
if [%1] EQU [Release] (
SET VALID=1
SET BatchToRun=release.bat
SET QtConfig=release
SET CHECKQTVERTOOL="bin/isqt580-release.exe"
)
if [%VALID%] EQU [0] (
echo Build script for all libraries for MinGW. Just run it from Command line of Qt
echo Syntax:
echo build-all-mingw.bat "[Debug|Release]"
exit /B 1
)
@echo on
call %BatchToRun%
cd tools/atlasgen
qmake CONFIG+=%QtConfig% atlasgen.pro || goto :error
mingw32-make || goto :error
cd ../..
cd tools/exporter
qmake CONFIG+=%QtConfig% exporter.pro || goto :error
mingw32-make || goto :error
cd ../..
cd plugins/freetype
call %BatchToRun% || goto :error
cd ../..
REM cd tools/ifaceed
REM qmake CONFIG+=%QtConfig% ifaceed.pro
REM mingw32-make
REM cd ../..
cd plugins/dukpp-03
call %BatchToRun% || goto :error
cd ../..
cd plugins/phy52d
call %BatchToRun% || goto :error
cd ../..
cd plugins/irrklang
call %BatchToRun% || goto :error
cd ../..
cd plugins/imgui
call %BatchToRun% || goto :error
cd ../..
cd plugins/dukpp-03-irrklang
call %BatchToRun%
cd ../..
cd examples/game
call %BatchToRun% || goto :error
cd ../..
cd examples/multithreading
call %BatchToRun% || goto :error
cd ../..
cd examples/stress-physics
call %BatchToRun% || goto :error
cd ../..
cd examples/imgui
call %BatchToRun% || goto :error
cd ../..
cd examples/shaders
call %BatchToRun% || goto :error
cd ../..
cd tests/animations
call %BatchToRun% || goto :error
cd ../..
cd tests/db
call %BatchToRun% || goto :error
cd ../..
cd tests/dukpp-03
call %BatchToRun% || goto :error
cd ../..
cd tests/freetype
call %BatchToRun% || goto :error
cd ../..
cd tests/hfsm
call %BatchToRun% || goto :error
cd ../..
cd tests/input
call %BatchToRun% || goto :error
cd ../..
cd tests/irrklang
call %BatchToRun% || goto :error
cd ../..
cd tests/dukpp-03-irrklang
call %BatchToRun% || goto :error
cd ../..
cd tests/p2d
call %BatchToRun% || goto :error
cd ../..
cd tests/pipeline
call %BatchToRun% || goto :error
cd ../..
cd tests/resource
call %BatchToRun% || goto :error
cd ../..
cd tests/sad
call %BatchToRun% || goto :error
cd ../..
cd tests/layouts
call %BatchToRun% || goto :error
cd ../..
cd tools/isqt580
qmake CONFIG+=%QtConfig% isqt580.pro || goto :error
mingw32-make || goto :error
cd ../..
%CHECKQTVERTOOL%
if errorlevel 1 (
cd plugins/qt-widget
qmake CONFIG+=%QtConfig% qt-widget.pro || goto :error
mingw32-make || goto :error
cd ../..
cd examples/example-game-in-qt
qmake CONFIG+=%QtConfig% example-game-in-qt.pro || goto :error
mingw32-make || goto :error
cd ../..
)
goto :EOF
:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%