-
Notifications
You must be signed in to change notification settings - Fork 18
/
buildall.bat
246 lines (179 loc) · 5.26 KB
/
buildall.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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
@echo off
SETLOCAL
SET DIR=%CD%
SET BORLAND=C:\Borland
SET CODEGEAR=C:\CodeGear
SET EMBT=C:\Program Files (x86)\Embarcadero
SET OLDPATH=%PATH%
SET ISCC="C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
SET ZIP="C:\Program Files\7-Zip\7z.exe"
if exist "%EMBT%\RAD Studio\8.0\Bin\brcc32.exe" "%EMBT%\RAD Studio\8.0\Bin\brcc32.exe" Version.rc -foVersion.res
if not exist "%DIR%\bin" md "%DIR%\bin"
if not exist "%DIR%\lib" md "%DIR%\lib"
::goto Setup
echo === Delphi 11 Alexandria =======================
SET PATH=%EMBT%\Studio\22.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckD11.dproj
msbuild /p:Configuration=Release DfmCheckD11.dproj
echo === Delphi 10.4 Sydney =======================
SET PATH=%EMBT%\Studio\21.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckD104.dproj
msbuild /p:Configuration=Release DfmCheckD104.dproj
echo === Delphi 10.3 Rio =======================
SET PATH=%EMBT%\Studio\20.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckD103.dproj
msbuild /p:Configuration=Release DfmCheckD103.dproj
echo === Delphi 10.2 Tokyo =======================
SET PATH=%EMBT%\Studio\19.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckD102.dproj
msbuild /p:Configuration=Release DfmCheckD102.dproj
echo === Delphi 10.1 Berlin =======================
SET PATH=%EMBT%\Studio\18.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckD101.dproj
msbuild /p:Configuration=Release DfmCheckD101.dproj
echo === Delphi 10 Seattle =======================
SET PATH=%EMBT%\Studio\17.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckD10.dproj
msbuild /p:Configuration=Release DfmCheckD10.dproj
echo === Delphi XE8 ==============================
SET PATH=%EMBT%\Studio\16.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckXE8.dproj
msbuild /p:Configuration=Release DfmCheckXE8.dproj
echo === Delphi XE7 ==============================
SET PATH=%EMBT%\Studio\15.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckXE7.dproj
msbuild /p:Configuration=Release DfmCheckXE7.dproj
echo === Delphi XE6 ==============================
SET PATH=%EMBT%\Studio\14.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckXE6.dproj
msbuild /p:Configuration=Release DfmCheckXE6.dproj
echo === Delphi XE5 ==============================
SET PATH=%EMBT%\RAD Studio\12.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckXE5.dproj
msbuild /p:Configuration=Release DfmCheckXE5.dproj
echo === Delphi XE4 ==============================
SET PATH=%EMBT%\RAD Studio\11.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckXE4.dproj
msbuild /p:Configuration=Release DfmCheckXE4.dproj
echo === Delphi XE3 ==============================
SET PATH=%EMBT%\RAD Studio\10.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckXE3.dproj
msbuild /p:Configuration=Release DfmCheckXE3.dproj
echo === Delphi XE2 ==============================
SET PATH=%EMBT%\RAD Studio\9.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckXE2.dproj
msbuild /p:Configuration=Release DfmCheckXE2.dproj
echo === Delphi XE ==============================
SET PATH=%EMBT%\RAD Studio\8.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheckXE.dproj
msbuild /p:Configuration=Release DfmCheckXE.dproj
cd console
msbuild /t:Clean DfmCheck.dproj
msbuild /p:Configuration=Release /p:LANGDIR=EN DfmCheck.dproj
if ERRORLEVEL 1 goto Error1
cd ..
cd ..
echo === Delphi 2010 ==============================
SET PATH=%EMBT%\RAD Studio\7.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheck2010.dproj
msbuild /p:Configuration=Release DfmCheck2010.dproj
if ERRORLEVEL 1 goto Error1
cd ..
echo === Delphi 2009 ==============================
SET PATH=%CodeGear%\RAD Studio\6.0\Bin;%OLDPATH%
call rsvars.bat
cd source
msbuild /t:Clean DfmCheck2009.dproj
msbuild /p:Configuration=Release DfmCheck2009.dproj
if ERRORLEVEL 1 goto Error1
cd ..
echo === Delphi 11 ==============================
SET PATH=%CodeGear%\RAD Studio\5.0\Bin;%OLDPATH%
cd source
dcc32 -B -Q DFMCheck.dpk
if ERRORLEVEL 1 goto Error1
cd ..
echo === Delphi 10 ==============================
SET PATH=%Borland%\BDS\4.0\Bin;%OLDPATH%
cd source
dcc32 -B -Q DFMCheck.dpk
if ERRORLEVEL 1 goto Error1
cd ..
echo === Delphi 9 ==============================
SET PATH=%Borland%\BDS\3.0\Bin;%OLDPATH%
cd source
dcc32 -B -Q DFMCheck.dpk
if ERRORLEVEL 1 goto Error1
cd ..
echo === Delphi 7 ==============================
SET PATH=%Borland%\Delphi7\Bin;%OLDPATH%
cd source
dcc32 -B -Q -U"%Borland%\Delphi7\Lib" DFMCheck.dpk
if ERRORLEVEL 1 goto Error1
cd ..
echo === Delphi 6 ==============================
SET PATH=%Borland%\Delphi6\Bin
cd source
dcc32 -B -Q DFMCheck.dpk
if ERRORLEVEL 1 goto Error1
cd ..
echo === Delphi 5 ==============================
SET PATH=%Borland%\Delphi5\Bin
cd source
dcc32 -B -Q DFMCheck5.dpk
if ERRORLEVEL 1 goto Error1
cd ..
echo === Installer =============================
:Setup
if not exist "Installer" goto Leave
cd Installer
%ISCC% DfmCheck.iss
if ERRORLEVEL 1 goto Error1
cd ..
:: ===========================================
goto Leave
:Error2
cd ..
:Error1
cd ..
:Error0
pause
:Leave
cd /d "%DIR%"
SET PATH=%OLDPATH%
SET OLDPATH=
SET BORLAND=
SET CODEGEAR=
SET EMBT=
SET DIR=
ENDLOCAL