1 | @ECHO OFF |
---|
2 | SETLOCAL |
---|
3 | |
---|
4 | REM # |
---|
5 | REM # File produced by the obuild tool version 1.0 |
---|
6 | REM # for the package bhep with version v1r4p2. |
---|
7 | REM # |
---|
8 | |
---|
9 | REM #//////////////////////////////////////////////// |
---|
10 | REM # Usage : |
---|
11 | REM # DOS> CD some_path\pack\version\obuild |
---|
12 | REM # DOS> DOS\build_bhep |
---|
13 | REM # |
---|
14 | REM #//////////////////////////////////////////////// |
---|
15 | |
---|
16 | REM #//////////////////////////////////////////////// |
---|
17 | REM #/// Get path of this file : |
---|
18 | REM #//////////////////////////////////////////////// |
---|
19 | SET obuild_bhep_path=%~dp0 |
---|
20 | REM # Remove ending \obuild\DOS\ |
---|
21 | SET obuild_bhep_path=%obuild_bhep_path:~0,-12% |
---|
22 | |
---|
23 | REM #//////////////////////////////////////////////// |
---|
24 | REM #/// Treat arguments : |
---|
25 | REM #//////////////////////////////////////////////// |
---|
26 | |
---|
27 | SET obuild_verbose=no |
---|
28 | SET obuild_debug=no |
---|
29 | SET obuild_optimize=yes |
---|
30 | SET obuild_set_x=no |
---|
31 | |
---|
32 | :next_arg |
---|
33 | IF "%1%" == "" GOTO end_args |
---|
34 | |
---|
35 | IF NOT "%1%" == "-v" GOTO end_if_v |
---|
36 | SET obuild_verbose=yes |
---|
37 | SHIFT |
---|
38 | GOTO next_arg |
---|
39 | :end_if_v |
---|
40 | |
---|
41 | IF NOT "%1%" == "-g" GOTO end_if_g |
---|
42 | SET obuild_debug=yes |
---|
43 | SHIFT |
---|
44 | GOTO next_arg |
---|
45 | :end_if_g |
---|
46 | |
---|
47 | IF NOT "%1%" == "-x" GOTO end_if_x |
---|
48 | SET obuild_set_x=yes |
---|
49 | SHIFT |
---|
50 | GOTO next_arg |
---|
51 | :end_if_x |
---|
52 | |
---|
53 | :end_args |
---|
54 | |
---|
55 | REM #//////////////////////////////////////////////// |
---|
56 | REM #/// End arguments. |
---|
57 | REM #//////////////////////////////////////////////// |
---|
58 | |
---|
59 | IF %obuild_set_x% == yes ECHO ON |
---|
60 | |
---|
61 | IF %obuild_debug% == yes SET obuild_optimize=no |
---|
62 | |
---|
63 | IF "%OBUILD_PLATFORM%" == "" ( |
---|
64 | IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return |
---|
65 | SET obuild_platform=%OS% |
---|
66 | ) ELSE ( |
---|
67 | SET obuild_platform=%OBUILD_PLATFORM% |
---|
68 | ) |
---|
69 | |
---|
70 | IF "%obuild_platform%" == "" ( |
---|
71 | ECHO obuild_platform variable not defined. |
---|
72 | GOTO obuild_return |
---|
73 | ) |
---|
74 | |
---|
75 | IF "%OBUILD_DIR_BIN%" == "" ( |
---|
76 | SET obuild_dir_bin=%obuild_platform%_obuild |
---|
77 | ) ELSE ( |
---|
78 | SET obuild_dir_bin=%OBUILD_DIR_BIN% |
---|
79 | ) |
---|
80 | |
---|
81 | IF "%obuild_dir_bin%" == "" ( |
---|
82 | ECHO obuild_dir_bin variable not defined. |
---|
83 | GOTO obuild_return |
---|
84 | ) |
---|
85 | |
---|
86 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
87 | |
---|
88 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
89 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\obuild_platform.exe" ( |
---|
90 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_bhep_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_bhep_path%\obuild\cpp\obuild_platform.cpp" 1> NUL |
---|
91 | IF EXIST obuild_platform.obj DEL obuild_platform.obj |
---|
92 | ) |
---|
93 | |
---|
94 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
95 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
96 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
97 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
98 | cd "%obuild_pwd_bhep_0%" |
---|
99 | SET obuild_pwd_bhep_0= |
---|
100 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 |
---|
101 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 |
---|
102 | :end_if_platform_1 |
---|
103 | SET obuild_platform_result= |
---|
104 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
105 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
106 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
107 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
108 | cd "%obuild_pwd_bhep_0%" |
---|
109 | SET obuild_pwd_bhep_0= |
---|
110 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 |
---|
111 | SET HDF5_home=/usr/local/HDF5/1.6.5 |
---|
112 | :end_if_platform_3 |
---|
113 | SET obuild_platform_result= |
---|
114 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
115 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
116 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
117 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
118 | cd "%obuild_pwd_bhep_0%" |
---|
119 | SET obuild_pwd_bhep_0= |
---|
120 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 |
---|
121 | SET zlib_home=/usr |
---|
122 | :end_if_platform_5 |
---|
123 | SET obuild_platform_result= |
---|
124 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
125 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
126 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
127 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
128 | cd "%obuild_pwd_bhep_0%" |
---|
129 | SET obuild_pwd_bhep_0= |
---|
130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 |
---|
131 | SET obuild_cxx_command=c++ |
---|
132 | :end_if_platform_6 |
---|
133 | SET obuild_platform_result= |
---|
134 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
135 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
136 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
137 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
138 | cd "%obuild_pwd_bhep_0%" |
---|
139 | SET obuild_pwd_bhep_0= |
---|
140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 |
---|
141 | SET obuild_cxx_command=c++ |
---|
142 | :end_if_platform_7 |
---|
143 | SET obuild_platform_result= |
---|
144 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
145 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
146 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
147 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
148 | cd "%obuild_pwd_bhep_0%" |
---|
149 | SET obuild_pwd_bhep_0= |
---|
150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 |
---|
151 | SET obuild_cxx_command=cxx |
---|
152 | :end_if_platform_8 |
---|
153 | SET obuild_platform_result= |
---|
154 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
155 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
156 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
157 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
158 | cd "%obuild_pwd_bhep_0%" |
---|
159 | SET obuild_pwd_bhep_0= |
---|
160 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 |
---|
161 | SET obuild_cxx_command=cl.exe |
---|
162 | :end_if_platform_9 |
---|
163 | SET obuild_platform_result= |
---|
164 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
165 | |
---|
166 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
167 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
168 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
169 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
170 | cd "%obuild_pwd_bhep_0%" |
---|
171 | SET obuild_pwd_bhep_0= |
---|
172 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 |
---|
173 | SET obuild_cxx_optimize=-O |
---|
174 | :end_if_platform_10 |
---|
175 | SET obuild_platform_result= |
---|
176 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
177 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
178 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
179 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
180 | cd "%obuild_pwd_bhep_0%" |
---|
181 | SET obuild_pwd_bhep_0= |
---|
182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 |
---|
183 | SET obuild_cxx_optimize=-O |
---|
184 | :end_if_platform_11 |
---|
185 | SET obuild_platform_result= |
---|
186 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
187 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
188 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
189 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
190 | cd "%obuild_pwd_bhep_0%" |
---|
191 | SET obuild_pwd_bhep_0= |
---|
192 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 |
---|
193 | SET obuild_cxx_optimize=-O |
---|
194 | :end_if_platform_12 |
---|
195 | SET obuild_platform_result= |
---|
196 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
197 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
198 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
199 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
200 | cd "%obuild_pwd_bhep_0%" |
---|
201 | SET obuild_pwd_bhep_0= |
---|
202 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 |
---|
203 | SET obuild_cxx_optimize=/O2 |
---|
204 | :end_if_platform_13 |
---|
205 | SET obuild_platform_result= |
---|
206 | |
---|
207 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
208 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
209 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
210 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
211 | cd "%obuild_pwd_bhep_0%" |
---|
212 | SET obuild_pwd_bhep_0= |
---|
213 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
214 | SET obuild_cxx_debug=-g |
---|
215 | :end_if_platform_14 |
---|
216 | SET obuild_platform_result= |
---|
217 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
218 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
219 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
220 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
221 | cd "%obuild_pwd_bhep_0%" |
---|
222 | SET obuild_pwd_bhep_0= |
---|
223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 |
---|
224 | SET obuild_cxx_debug=-g |
---|
225 | :end_if_platform_15 |
---|
226 | SET obuild_platform_result= |
---|
227 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
228 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
229 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
230 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
231 | cd "%obuild_pwd_bhep_0%" |
---|
232 | SET obuild_pwd_bhep_0= |
---|
233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 |
---|
234 | SET obuild_cxx_debug=-g |
---|
235 | :end_if_platform_16 |
---|
236 | SET obuild_platform_result= |
---|
237 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
238 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
239 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
240 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
241 | cd "%obuild_pwd_bhep_0%" |
---|
242 | SET obuild_pwd_bhep_0= |
---|
243 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 |
---|
244 | SET obuild_cxx_debug=/ZI /Od |
---|
245 | :end_if_platform_17 |
---|
246 | SET obuild_platform_result= |
---|
247 | |
---|
248 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
249 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
250 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
251 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
252 | cd "%obuild_pwd_bhep_0%" |
---|
253 | SET obuild_pwd_bhep_0= |
---|
254 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 |
---|
255 | SET obuild_cxx_options=-fPIC |
---|
256 | :end_if_platform_18 |
---|
257 | SET obuild_platform_result= |
---|
258 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
259 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
260 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
261 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
262 | cd "%obuild_pwd_bhep_0%" |
---|
263 | SET obuild_pwd_bhep_0= |
---|
264 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 |
---|
265 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
266 | :end_if_platform_19 |
---|
267 | SET obuild_platform_result= |
---|
268 | |
---|
269 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_20 |
---|
270 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
271 | GOTO end_if_db_build_lib_bhep_sh_20 |
---|
272 | :else_if_db_build_lib_bhep_sh_20 |
---|
273 | SET obuild_cxx_debug_local= |
---|
274 | :end_if_db_build_lib_bhep_sh_20 |
---|
275 | |
---|
276 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_21 |
---|
277 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
278 | GOTO end_if_opt_build_lib_bhep_sh_21 |
---|
279 | :else_if_opt_build_lib_bhep_sh_21 |
---|
280 | SET obuild_cxx_optimize_local= |
---|
281 | :end_if_opt_build_lib_bhep_sh_21 |
---|
282 | |
---|
283 | |
---|
284 | |
---|
285 | SET obuild_cxx_includes=/I"%obuild_bhep_path%" |
---|
286 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%\bhep" |
---|
287 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
288 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
289 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
290 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
291 | cd "%obuild_pwd_bhep_0%" |
---|
292 | SET obuild_pwd_bhep_0= |
---|
293 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 |
---|
294 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
295 | :end_if_platform_24 |
---|
296 | SET obuild_platform_result= |
---|
297 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
298 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
299 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
300 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
301 | cd "%obuild_pwd_bhep_0%" |
---|
302 | SET obuild_pwd_bhep_0= |
---|
303 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 |
---|
304 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include |
---|
305 | :end_if_platform_25 |
---|
306 | SET obuild_platform_result= |
---|
307 | |
---|
308 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" |
---|
309 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" |
---|
310 | |
---|
311 | REM # pre_build scripts : |
---|
312 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
313 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
314 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
315 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
316 | cd "%obuild_pwd_bhep_0%" |
---|
317 | SET obuild_pwd_bhep_0= |
---|
318 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26 |
---|
319 | chmod a+x ./pre_build;./pre_build |
---|
320 | :end_if_platform_26 |
---|
321 | SET obuild_platform_result= |
---|
322 | |
---|
323 | @IF %obuild_verbose% == yes @ECHO ON |
---|
324 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
325 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\version.obj /Tp"..\source\version.cpp" 1> cl_exe_error |
---|
326 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
327 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
328 | cd "%obuild_bhep_path%\obuild" |
---|
329 | |
---|
330 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
331 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\event.obj /Tp"..\source\base\event.cpp" 1> cl_exe_error |
---|
332 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
333 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
334 | cd "%obuild_bhep_path%\obuild" |
---|
335 | |
---|
336 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
337 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\hit.obj /Tp"..\source\base\hit.cpp" 1> cl_exe_error |
---|
338 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
339 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
340 | cd "%obuild_bhep_path%\obuild" |
---|
341 | |
---|
342 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
343 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\mparticle.obj /Tp"..\source\base\mparticle.cpp" 1> cl_exe_error |
---|
344 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
345 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
346 | cd "%obuild_bhep_path%\obuild" |
---|
347 | |
---|
348 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
349 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle.obj /Tp"..\source\base\particle.cpp" 1> cl_exe_error |
---|
350 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
351 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
352 | cd "%obuild_bhep_path%\obuild" |
---|
353 | |
---|
354 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
355 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sparticle.obj /Tp"..\source\base\sparticle.cpp" 1> cl_exe_error |
---|
356 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
357 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
358 | cd "%obuild_bhep_path%\obuild" |
---|
359 | |
---|
360 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
361 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\track.obj /Tp"..\source\base\track.cpp" 1> cl_exe_error |
---|
362 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
363 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
364 | cd "%obuild_bhep_path%\obuild" |
---|
365 | |
---|
366 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
367 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\material.obj /Tp"..\source\util\material.cpp" 1> cl_exe_error |
---|
368 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
369 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
370 | cd "%obuild_bhep_path%\obuild" |
---|
371 | |
---|
372 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
373 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle_definition.obj /Tp"..\source\util\particle_definition.cpp" 1> cl_exe_error |
---|
374 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
375 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
376 | cd "%obuild_bhep_path%\obuild" |
---|
377 | |
---|
378 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
379 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\ray.obj /Tp"..\source\util\ray.cpp" 1> cl_exe_error |
---|
380 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
381 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
382 | cd "%obuild_bhep_path%\obuild" |
---|
383 | |
---|
384 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
385 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\event_cvt.obj /Tp"..\source\converters\event_cvt.cpp" 1> cl_exe_error |
---|
386 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
387 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
388 | cd "%obuild_bhep_path%\obuild" |
---|
389 | |
---|
390 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
391 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\hit_cvt.obj /Tp"..\source\converters\hit_cvt.cpp" 1> cl_exe_error |
---|
392 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
393 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
394 | cd "%obuild_bhep_path%\obuild" |
---|
395 | |
---|
396 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
397 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\mparticle_cvt.obj /Tp"..\source\converters\mparticle_cvt.cpp" 1> cl_exe_error |
---|
398 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
399 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
400 | cd "%obuild_bhep_path%\obuild" |
---|
401 | |
---|
402 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
403 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle_cvt.obj /Tp"..\source\converters\particle_cvt.cpp" 1> cl_exe_error |
---|
404 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
405 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
406 | cd "%obuild_bhep_path%\obuild" |
---|
407 | |
---|
408 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
409 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sparticle_cvt.obj /Tp"..\source\converters\sparticle_cvt.cpp" 1> cl_exe_error |
---|
410 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
411 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
412 | cd "%obuild_bhep_path%\obuild" |
---|
413 | |
---|
414 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
415 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\track_cvt.obj /Tp"..\source\converters\track_cvt.cpp" 1> cl_exe_error |
---|
416 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
417 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
418 | cd "%obuild_bhep_path%\obuild" |
---|
419 | |
---|
420 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
421 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\base_reader.obj /Tp"..\source\manager\base_reader.cpp" 1> cl_exe_error |
---|
422 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
423 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
424 | cd "%obuild_bhep_path%\obuild" |
---|
425 | |
---|
426 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
427 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\bhep_svc.obj /Tp"..\source\manager\bhep_svc.cpp" 1> cl_exe_error |
---|
428 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
429 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
430 | cd "%obuild_bhep_path%\obuild" |
---|
431 | |
---|
432 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
433 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\brw.obj /Tp"..\source\manager\brw.cpp" 1> cl_exe_error |
---|
434 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
435 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
436 | cd "%obuild_bhep_path%\obuild" |
---|
437 | |
---|
438 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
439 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\converter_svc.obj /Tp"..\source\manager\converter_svc.cpp" 1> cl_exe_error |
---|
440 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
441 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
442 | cd "%obuild_bhep_path%\obuild" |
---|
443 | |
---|
444 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
445 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\random_reader.obj /Tp"..\source\manager\random_reader.cpp" 1> cl_exe_error |
---|
446 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
447 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
448 | cd "%obuild_bhep_path%\obuild" |
---|
449 | |
---|
450 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
451 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\random_writer.obj /Tp"..\source\manager\random_writer.cpp" 1> cl_exe_error |
---|
452 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
453 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
454 | cd "%obuild_bhep_path%\obuild" |
---|
455 | |
---|
456 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
457 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\reader_gz.obj /Tp"..\source\manager\reader_gz.cpp" 1> cl_exe_error |
---|
458 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
459 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
460 | cd "%obuild_bhep_path%\obuild" |
---|
461 | |
---|
462 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
463 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\reader_hdf5.obj /Tp"..\source\manager\reader_hdf5.cpp" 1> cl_exe_error |
---|
464 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
465 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
466 | cd "%obuild_bhep_path%\obuild" |
---|
467 | |
---|
468 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
469 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\reader_txt.obj /Tp"..\source\manager\reader_txt.cpp" 1> cl_exe_error |
---|
470 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
471 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
472 | cd "%obuild_bhep_path%\obuild" |
---|
473 | |
---|
474 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
475 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sequential_reader.obj /Tp"..\source\manager\sequential_reader.cpp" 1> cl_exe_error |
---|
476 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
477 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
478 | cd "%obuild_bhep_path%\obuild" |
---|
479 | |
---|
480 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
481 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sequential_writer.obj /Tp"..\source\manager\sequential_writer.cpp" 1> cl_exe_error |
---|
482 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
483 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
484 | cd "%obuild_bhep_path%\obuild" |
---|
485 | |
---|
486 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
487 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\writer_gz.obj /Tp"..\source\manager\writer_gz.cpp" 1> cl_exe_error |
---|
488 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
489 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
490 | cd "%obuild_bhep_path%\obuild" |
---|
491 | |
---|
492 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
493 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\writer_hdf5.obj /Tp"..\source\manager\writer_hdf5.cpp" 1> cl_exe_error |
---|
494 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
495 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
496 | cd "%obuild_bhep_path%\obuild" |
---|
497 | |
---|
498 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
499 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\writer_txt.obj /Tp"..\source\manager\writer_txt.cpp" 1> cl_exe_error |
---|
500 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
501 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
502 | cd "%obuild_bhep_path%\obuild" |
---|
503 | |
---|
504 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
505 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\generate_event.obj /Tp"..\source\examples\generate_event.cpp" 1> cl_exe_error |
---|
506 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
507 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
508 | cd "%obuild_bhep_path%\obuild" |
---|
509 | |
---|
510 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
511 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\gevent.obj /Tp"..\source\tutorials\gevent.cpp" 1> cl_exe_error |
---|
512 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
513 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
514 | cd "%obuild_bhep_path%\obuild" |
---|
515 | |
---|
516 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
517 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\axis.obj /Tp"..\source\histos\axis.cpp" 1> cl_exe_error |
---|
518 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
519 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
520 | cd "%obuild_bhep_path%\obuild" |
---|
521 | |
---|
522 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
523 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\histogram.obj /Tp"..\source\histos\histogram.cpp" 1> cl_exe_error |
---|
524 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
525 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
526 | cd "%obuild_bhep_path%\obuild" |
---|
527 | |
---|
528 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
529 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\EventManager.obj /Tp"..\source\tools\EventManager.cpp" 1> cl_exe_error |
---|
530 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
531 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
532 | cd "%obuild_bhep_path%\obuild" |
---|
533 | |
---|
534 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
535 | |
---|
536 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
537 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
538 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
539 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
540 | cd "%obuild_pwd_bhep_0%" |
---|
541 | SET obuild_pwd_bhep_0= |
---|
542 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62 |
---|
543 | SET obuild_cxx_linker_command=c++ |
---|
544 | :end_if_platform_62 |
---|
545 | SET obuild_platform_result= |
---|
546 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
547 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
548 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
549 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
550 | cd "%obuild_pwd_bhep_0%" |
---|
551 | SET obuild_pwd_bhep_0= |
---|
552 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63 |
---|
553 | SET obuild_cxx_linker_command=c++ |
---|
554 | :end_if_platform_63 |
---|
555 | SET obuild_platform_result= |
---|
556 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
557 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
558 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
559 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
560 | cd "%obuild_pwd_bhep_0%" |
---|
561 | SET obuild_pwd_bhep_0= |
---|
562 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64 |
---|
563 | SET obuild_cxx_linker_command=cxx |
---|
564 | :end_if_platform_64 |
---|
565 | SET obuild_platform_result= |
---|
566 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
567 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
568 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
569 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
570 | cd "%obuild_pwd_bhep_0%" |
---|
571 | SET obuild_pwd_bhep_0= |
---|
572 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_65 |
---|
573 | SET obuild_cxx_linker_command=link.exe |
---|
574 | :end_if_platform_65 |
---|
575 | SET obuild_platform_result= |
---|
576 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
577 | |
---|
578 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
579 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
580 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
581 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
582 | cd "%obuild_pwd_bhep_0%" |
---|
583 | SET obuild_pwd_bhep_0= |
---|
584 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66 |
---|
585 | SET obuild_cxx_linker_debug=-g |
---|
586 | :end_if_platform_66 |
---|
587 | SET obuild_platform_result= |
---|
588 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
589 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
590 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
591 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
592 | cd "%obuild_pwd_bhep_0%" |
---|
593 | SET obuild_pwd_bhep_0= |
---|
594 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67 |
---|
595 | SET obuild_cxx_linker_debug=-g |
---|
596 | :end_if_platform_67 |
---|
597 | SET obuild_platform_result= |
---|
598 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
599 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
600 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
601 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
602 | cd "%obuild_pwd_bhep_0%" |
---|
603 | SET obuild_pwd_bhep_0= |
---|
604 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_68 |
---|
605 | SET obuild_cxx_linker_debug=-g |
---|
606 | :end_if_platform_68 |
---|
607 | SET obuild_platform_result= |
---|
608 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
609 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
610 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
611 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
612 | cd "%obuild_pwd_bhep_0%" |
---|
613 | SET obuild_pwd_bhep_0= |
---|
614 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69 |
---|
615 | SET obuild_cxx_linker_debug=/DEBUG |
---|
616 | :end_if_platform_69 |
---|
617 | SET obuild_platform_result= |
---|
618 | |
---|
619 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
620 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
621 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
622 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
623 | cd "%obuild_pwd_bhep_0%" |
---|
624 | SET obuild_pwd_bhep_0= |
---|
625 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_70 |
---|
626 | SET obuild_cxx_linker_options=/nologo |
---|
627 | :end_if_platform_70 |
---|
628 | SET obuild_platform_result= |
---|
629 | |
---|
630 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_71 |
---|
631 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
632 | GOTO end_if_db_build_lib_bhep_sh_71 |
---|
633 | :else_if_db_build_lib_bhep_sh_71 |
---|
634 | SET obuild_cxx_linker_debug_local= |
---|
635 | :end_if_db_build_lib_bhep_sh_71 |
---|
636 | |
---|
637 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_72 |
---|
638 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
639 | GOTO end_if_opt_build_lib_bhep_sh_72 |
---|
640 | :else_if_opt_build_lib_bhep_sh_72 |
---|
641 | SET obuild_cxx_linker_optimize_local= |
---|
642 | :end_if_opt_build_lib_bhep_sh_72 |
---|
643 | |
---|
644 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
645 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
646 | IF EXIST .\lib_bhep\tmp_objs DEL .\lib_bhep\tmp_objs |
---|
647 | FOR %%f IN (.\lib_bhep\*.obj) DO ECHO %%f >> .\lib_bhep\tmp_objs |
---|
648 | |
---|
649 | REM # Create the archive library bhep : |
---|
650 | @IF %obuild_verbose% == yes @ECHO ON |
---|
651 | lib.exe /nologo /machine:ix86 /out:.\lib_bhep\bhep.arc @.\lib_bhep\tmp_objs |
---|
652 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
653 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
654 | |
---|
655 | REM # Build the obuild_windef.exe utility program : |
---|
656 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_bhep_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
657 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
658 | |
---|
659 | REM # Building the .def file : |
---|
660 | @IF %obuild_verbose% == yes @ECHO ON |
---|
661 | dumpbin.exe /symbols /out:.\lib_bhep\tmp .\lib_bhep\bhep.arc 1> dumpbin_exe_error .\lib_bhep\bhep.arc |
---|
662 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
663 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
664 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
665 | .\obuild_windef.exe bhep < .\lib_bhep\tmp > .\lib_bhep\bhep.def |
---|
666 | REM # Building the linking library : |
---|
667 | REM # It produces a .exp file. |
---|
668 | @IF %obuild_verbose% == yes @ECHO ON |
---|
669 | lib.exe /nologo /machine:ix86 /out:.\bhep.lib /def:.\lib_bhep\bhep.def 1> lib_exe_error |
---|
670 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
671 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
672 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
673 | |
---|
674 | REM # Building the DLL : |
---|
675 | IF EXIST .\bhep.dll DEL .\bhep.dll |
---|
676 | @IF %obuild_verbose% == yes @ECHO ON |
---|
677 | link.exe /nologo /dll /out:.\bhep.dll .\bhep.exp .\lib_bhep\bhep.arc %obuild_linked_libraries% |
---|
678 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
679 | |
---|
680 | cd "%obuild_pwd_bhep_0%" |
---|
681 | SET obuild_pwd_bhep_0= |
---|
682 | REM # Some cleanup : |
---|
683 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" DEL "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" |
---|
684 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" DEL "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" |
---|
685 | |
---|
686 | :obuild_return |
---|
687 | ENDLOCAL |
---|
688 | @ECHO ON |
---|