1 | @ECHO OFF |
---|
2 | SETLOCAL |
---|
3 | |
---|
4 | REM # |
---|
5 | REM # File produced by the obuild tool version 1.0 |
---|
6 | REM # for the package snovis with version v1r1. |
---|
7 | REM # |
---|
8 | |
---|
9 | REM #//////////////////////////////////////////////// |
---|
10 | REM # Usage : |
---|
11 | REM # DOS> CD some_path\pack\version\obuild |
---|
12 | REM # DOS> DOS\build_G4LabCore |
---|
13 | REM # |
---|
14 | REM #//////////////////////////////////////////////// |
---|
15 | |
---|
16 | REM #//////////////////////////////////////////////// |
---|
17 | REM #/// Get path of this file : |
---|
18 | REM #//////////////////////////////////////////////// |
---|
19 | SET obuild_snovis_path=%~dp0 |
---|
20 | REM # Remove ending \obuild\DOS\ |
---|
21 | SET obuild_snovis_path=%obuild_snovis_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_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
87 | |
---|
88 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
89 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" ( |
---|
90 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_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_snovis_0=%%d |
---|
95 | cd "%obuild_snovis_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_snovis_0%" |
---|
99 | SET obuild_pwd_snovis_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_snovis_0=%%d |
---|
105 | cd "%obuild_snovis_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_snovis_0%" |
---|
109 | SET obuild_pwd_snovis_0= |
---|
110 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 |
---|
111 | SET Geant4_home=/usr/local/geant4/8.2 |
---|
112 | :end_if_platform_3 |
---|
113 | SET obuild_platform_result= |
---|
114 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
115 | cd "%obuild_snovis_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_snovis_0%" |
---|
119 | SET obuild_pwd_snovis_0= |
---|
120 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 |
---|
121 | SET HDF5_home=/usr/local/HDF5/1.6.5 |
---|
122 | :end_if_platform_5 |
---|
123 | SET obuild_platform_result= |
---|
124 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
125 | cd "%obuild_snovis_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% UNIX`) DO SET obuild_platform_result=%%j |
---|
128 | cd "%obuild_pwd_snovis_0%" |
---|
129 | SET obuild_pwd_snovis_0= |
---|
130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 |
---|
131 | SET OSC_home=/usr/local/OpenScientist/v16r0 |
---|
132 | :end_if_platform_7 |
---|
133 | SET obuild_platform_result= |
---|
134 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
135 | cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j |
---|
138 | cd "%obuild_pwd_snovis_0%" |
---|
139 | SET obuild_pwd_snovis_0= |
---|
140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 |
---|
141 | SET obuild_cxx_command=c++ |
---|
142 | :end_if_platform_8 |
---|
143 | SET obuild_platform_result= |
---|
144 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
145 | cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j |
---|
148 | cd "%obuild_pwd_snovis_0%" |
---|
149 | SET obuild_pwd_snovis_0= |
---|
150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 |
---|
151 | SET obuild_cxx_command=c++ |
---|
152 | :end_if_platform_9 |
---|
153 | SET obuild_platform_result= |
---|
154 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
155 | cd "%obuild_snovis_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% OSF1`) DO SET obuild_platform_result=%%j |
---|
158 | cd "%obuild_pwd_snovis_0%" |
---|
159 | SET obuild_pwd_snovis_0= |
---|
160 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 |
---|
161 | SET obuild_cxx_command=cxx |
---|
162 | :end_if_platform_10 |
---|
163 | SET obuild_platform_result= |
---|
164 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
165 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
166 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
167 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
168 | cd "%obuild_pwd_snovis_0%" |
---|
169 | SET obuild_pwd_snovis_0= |
---|
170 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 |
---|
171 | SET obuild_cxx_command=cl.exe |
---|
172 | :end_if_platform_11 |
---|
173 | SET obuild_platform_result= |
---|
174 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
175 | |
---|
176 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
177 | cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j |
---|
180 | cd "%obuild_pwd_snovis_0%" |
---|
181 | SET obuild_pwd_snovis_0= |
---|
182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 |
---|
183 | SET obuild_cxx_optimize=-O |
---|
184 | :end_if_platform_12 |
---|
185 | SET obuild_platform_result= |
---|
186 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
187 | cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j |
---|
190 | cd "%obuild_pwd_snovis_0%" |
---|
191 | SET obuild_pwd_snovis_0= |
---|
192 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 |
---|
193 | SET obuild_cxx_optimize=-O |
---|
194 | :end_if_platform_13 |
---|
195 | SET obuild_platform_result= |
---|
196 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
197 | cd "%obuild_snovis_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% OSF1`) DO SET obuild_platform_result=%%j |
---|
200 | cd "%obuild_pwd_snovis_0%" |
---|
201 | SET obuild_pwd_snovis_0= |
---|
202 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
203 | SET obuild_cxx_optimize=-O |
---|
204 | :end_if_platform_14 |
---|
205 | SET obuild_platform_result= |
---|
206 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
207 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
208 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
209 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
210 | cd "%obuild_pwd_snovis_0%" |
---|
211 | SET obuild_pwd_snovis_0= |
---|
212 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 |
---|
213 | SET obuild_cxx_optimize=/O2 |
---|
214 | :end_if_platform_15 |
---|
215 | SET obuild_platform_result= |
---|
216 | |
---|
217 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
218 | cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j |
---|
221 | cd "%obuild_pwd_snovis_0%" |
---|
222 | SET obuild_pwd_snovis_0= |
---|
223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 |
---|
224 | SET obuild_cxx_debug=-g |
---|
225 | :end_if_platform_16 |
---|
226 | SET obuild_platform_result= |
---|
227 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
228 | cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j |
---|
231 | cd "%obuild_pwd_snovis_0%" |
---|
232 | SET obuild_pwd_snovis_0= |
---|
233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 |
---|
234 | SET obuild_cxx_debug=-g |
---|
235 | :end_if_platform_17 |
---|
236 | SET obuild_platform_result= |
---|
237 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
238 | cd "%obuild_snovis_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% OSF1`) DO SET obuild_platform_result=%%j |
---|
241 | cd "%obuild_pwd_snovis_0%" |
---|
242 | SET obuild_pwd_snovis_0= |
---|
243 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 |
---|
244 | SET obuild_cxx_debug=-g |
---|
245 | :end_if_platform_18 |
---|
246 | SET obuild_platform_result= |
---|
247 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
248 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
249 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
250 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
251 | cd "%obuild_pwd_snovis_0%" |
---|
252 | SET obuild_pwd_snovis_0= |
---|
253 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 |
---|
254 | SET obuild_cxx_debug=/ZI /Od |
---|
255 | :end_if_platform_19 |
---|
256 | SET obuild_platform_result= |
---|
257 | |
---|
258 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
259 | cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j |
---|
262 | cd "%obuild_pwd_snovis_0%" |
---|
263 | SET obuild_pwd_snovis_0= |
---|
264 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 |
---|
265 | SET obuild_cxx_options=-fPIC |
---|
266 | :end_if_platform_20 |
---|
267 | SET obuild_platform_result= |
---|
268 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
269 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
270 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
271 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
272 | cd "%obuild_pwd_snovis_0%" |
---|
273 | SET obuild_pwd_snovis_0= |
---|
274 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 |
---|
275 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
276 | :end_if_platform_21 |
---|
277 | SET obuild_platform_result= |
---|
278 | |
---|
279 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_22 |
---|
280 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
281 | GOTO end_if_db_build_lib_G4LabCore_sh_22 |
---|
282 | :else_if_db_build_lib_G4LabCore_sh_22 |
---|
283 | SET obuild_cxx_debug_local= |
---|
284 | :end_if_db_build_lib_G4LabCore_sh_22 |
---|
285 | |
---|
286 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_23 |
---|
287 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
288 | GOTO end_if_opt_build_lib_G4LabCore_sh_23 |
---|
289 | :else_if_opt_build_lib_G4LabCore_sh_23 |
---|
290 | SET obuild_cxx_optimize_local= |
---|
291 | :end_if_opt_build_lib_G4LabCore_sh_23 |
---|
292 | |
---|
293 | |
---|
294 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
295 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
296 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
297 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
298 | cd "%obuild_pwd_snovis_0%" |
---|
299 | SET obuild_pwd_snovis_0= |
---|
300 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 |
---|
301 | SET obuild_cxx_macros=%obuild_cxx_macros% /DAPPLE_GL |
---|
302 | :end_if_platform_24 |
---|
303 | SET obuild_platform_result= |
---|
304 | |
---|
305 | |
---|
306 | SET obuild_cxx_includes=/I"%obuild_snovis_path%\source" |
---|
307 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
308 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
309 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
310 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
311 | cd "%obuild_pwd_snovis_0%" |
---|
312 | SET obuild_pwd_snovis_0= |
---|
313 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26 |
---|
314 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
315 | :end_if_platform_26 |
---|
316 | SET obuild_platform_result= |
---|
317 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
318 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
319 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
320 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
321 | cd "%obuild_pwd_snovis_0%" |
---|
322 | SET obuild_pwd_snovis_0= |
---|
323 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27 |
---|
324 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include |
---|
325 | :end_if_platform_27 |
---|
326 | SET obuild_platform_result= |
---|
327 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
328 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
329 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
330 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
331 | cd "%obuild_pwd_snovis_0%" |
---|
332 | SET obuild_pwd_snovis_0= |
---|
333 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28 |
---|
334 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp |
---|
335 | :end_if_platform_28 |
---|
336 | SET obuild_platform_result= |
---|
337 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
338 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
339 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
340 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
341 | cd "%obuild_pwd_snovis_0%" |
---|
342 | SET obuild_pwd_snovis_0= |
---|
343 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29 |
---|
344 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include |
---|
345 | :end_if_platform_29 |
---|
346 | SET obuild_platform_result= |
---|
347 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
348 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
349 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
350 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
351 | cd "%obuild_pwd_snovis_0%" |
---|
352 | SET obuild_pwd_snovis_0= |
---|
353 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 |
---|
354 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab |
---|
355 | :end_if_platform_30 |
---|
356 | SET obuild_platform_result= |
---|
357 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
358 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
359 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
360 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
361 | cd "%obuild_pwd_snovis_0%" |
---|
362 | SET obuild_pwd_snovis_0= |
---|
363 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31 |
---|
364 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include |
---|
365 | :end_if_platform_31 |
---|
366 | SET obuild_platform_result= |
---|
367 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
368 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
369 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
370 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
371 | cd "%obuild_pwd_snovis_0%" |
---|
372 | SET obuild_pwd_snovis_0= |
---|
373 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32 |
---|
374 | SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers |
---|
375 | :end_if_platform_32 |
---|
376 | SET obuild_platform_result= |
---|
377 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
378 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
379 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
380 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
381 | cd "%obuild_pwd_snovis_0%" |
---|
382 | SET obuild_pwd_snovis_0= |
---|
383 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33 |
---|
384 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include |
---|
385 | :end_if_platform_33 |
---|
386 | SET obuild_platform_result= |
---|
387 | |
---|
388 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" |
---|
389 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" |
---|
390 | |
---|
391 | @IF %obuild_verbose% == yes @ECHO ON |
---|
392 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
393 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Transform3D.obj /Tp"..\source\G4Lab\cxx\Transform3D.cxx" 1> cl_exe_error |
---|
394 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
395 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
396 | cd "%obuild_snovis_path%\obuild" |
---|
397 | |
---|
398 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
399 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Polyhedron.obj /Tp"..\source\G4Lab\cxx\Polyhedron.cxx" 1> cl_exe_error |
---|
400 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
401 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
402 | cd "%obuild_snovis_path%\obuild" |
---|
403 | |
---|
404 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
405 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\GeometryVisitor.obj /Tp"..\source\G4Lab\cxx\GeometryVisitor.cxx" 1> cl_exe_error |
---|
406 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
407 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
408 | cd "%obuild_snovis_path%\obuild" |
---|
409 | |
---|
410 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
411 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Tree.obj /Tp"..\source\G4Lab\cxx\Tree.cxx" 1> cl_exe_error |
---|
412 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
413 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
414 | cd "%obuild_snovis_path%\obuild" |
---|
415 | |
---|
416 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
417 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Trajectory.obj /Tp"..\source\G4Lab\cxx\Trajectory.cxx" 1> cl_exe_error |
---|
418 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
419 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
420 | cd "%obuild_snovis_path%\obuild" |
---|
421 | |
---|
422 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
423 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\State.obj /Tp"..\source\G4Lab\cxx\State.cxx" 1> cl_exe_error |
---|
424 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
425 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
426 | cd "%obuild_snovis_path%\obuild" |
---|
427 | |
---|
428 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
429 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\SteppingAction.obj /Tp"..\source\G4Lab\cxx\SteppingAction.cxx" 1> cl_exe_error |
---|
430 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
431 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
432 | cd "%obuild_snovis_path%\obuild" |
---|
433 | |
---|
434 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
435 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\TrackingAction.obj /Tp"..\source\G4Lab\cxx\TrackingAction.cxx" 1> cl_exe_error |
---|
436 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
437 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
438 | cd "%obuild_snovis_path%\obuild" |
---|
439 | |
---|
440 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
441 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\SoG4RunManager.obj /Tp"..\source\G4Lab\cxx\SoG4RunManager.cxx" 1> cl_exe_error |
---|
442 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
443 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
444 | cd "%obuild_snovis_path%\obuild" |
---|
445 | |
---|
446 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
447 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\SoVisitedVolume.obj /Tp"..\source\G4Lab\cxx\SoVisitedVolume.cxx" 1> cl_exe_error |
---|
448 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
449 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
450 | cd "%obuild_snovis_path%\obuild" |
---|
451 | |
---|
452 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
453 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\SoG4Trajectories.obj /Tp"..\source\G4Lab\cxx\SoG4Trajectories.cxx" 1> cl_exe_error |
---|
454 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
455 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
456 | cd "%obuild_snovis_path%\obuild" |
---|
457 | |
---|
458 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
459 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\PhysicalVolumeAccessor.obj /Tp"..\source\G4Lab\cxx\PhysicalVolumeAccessor.cxx" 1> cl_exe_error |
---|
460 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
461 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
462 | cd "%obuild_snovis_path%\obuild" |
---|
463 | |
---|
464 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
465 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\TrajectoryContainerAccessor.obj /Tp"..\source\G4Lab\cxx\TrajectoryContainerAccessor.cxx" 1> cl_exe_error |
---|
466 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
467 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
468 | cd "%obuild_snovis_path%\obuild" |
---|
469 | |
---|
470 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
471 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\TrajectoryAccessor.obj /Tp"..\source\G4Lab\cxx\TrajectoryAccessor.cxx" 1> cl_exe_error |
---|
472 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
473 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
474 | cd "%obuild_snovis_path%\obuild" |
---|
475 | |
---|
476 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
477 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\PhysicsTableAccessor.obj /Tp"..\source\G4Lab\cxx\PhysicsTableAccessor.cxx" 1> cl_exe_error |
---|
478 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
479 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
480 | cd "%obuild_snovis_path%\obuild" |
---|
481 | |
---|
482 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
483 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\HitsCollectionAccessor.obj /Tp"..\source\G4Lab\cxx\HitsCollectionAccessor.cxx" 1> cl_exe_error |
---|
484 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
485 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
486 | cd "%obuild_snovis_path%\obuild" |
---|
487 | |
---|
488 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
489 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\DigitsCollectionAccessor.obj /Tp"..\source\G4Lab\cxx\DigitsCollectionAccessor.cxx" 1> cl_exe_error |
---|
490 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
491 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
492 | cd "%obuild_snovis_path%\obuild" |
---|
493 | |
---|
494 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
495 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Manager.obj /Tp"..\source\G4Lab\cxx\Manager.cxx" 1> cl_exe_error |
---|
496 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
497 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
498 | cd "%obuild_snovis_path%\obuild" |
---|
499 | |
---|
500 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
501 | |
---|
502 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
503 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
504 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
505 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
506 | cd "%obuild_pwd_snovis_0%" |
---|
507 | SET obuild_pwd_snovis_0= |
---|
508 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52 |
---|
509 | SET obuild_cxx_linker_command=c++ |
---|
510 | :end_if_platform_52 |
---|
511 | SET obuild_platform_result= |
---|
512 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
513 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
514 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
515 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
516 | cd "%obuild_pwd_snovis_0%" |
---|
517 | SET obuild_pwd_snovis_0= |
---|
518 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53 |
---|
519 | SET obuild_cxx_linker_command=c++ |
---|
520 | :end_if_platform_53 |
---|
521 | SET obuild_platform_result= |
---|
522 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
523 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
524 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
525 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
526 | cd "%obuild_pwd_snovis_0%" |
---|
527 | SET obuild_pwd_snovis_0= |
---|
528 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54 |
---|
529 | SET obuild_cxx_linker_command=cxx |
---|
530 | :end_if_platform_54 |
---|
531 | SET obuild_platform_result= |
---|
532 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
533 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
534 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
535 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
536 | cd "%obuild_pwd_snovis_0%" |
---|
537 | SET obuild_pwd_snovis_0= |
---|
538 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55 |
---|
539 | SET obuild_cxx_linker_command=link.exe |
---|
540 | :end_if_platform_55 |
---|
541 | SET obuild_platform_result= |
---|
542 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
543 | |
---|
544 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
545 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
546 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
547 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
548 | cd "%obuild_pwd_snovis_0%" |
---|
549 | SET obuild_pwd_snovis_0= |
---|
550 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56 |
---|
551 | SET obuild_cxx_linker_debug=-g |
---|
552 | :end_if_platform_56 |
---|
553 | SET obuild_platform_result= |
---|
554 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
555 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
556 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
557 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
558 | cd "%obuild_pwd_snovis_0%" |
---|
559 | SET obuild_pwd_snovis_0= |
---|
560 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57 |
---|
561 | SET obuild_cxx_linker_debug=-g |
---|
562 | :end_if_platform_57 |
---|
563 | SET obuild_platform_result= |
---|
564 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
565 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
566 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
567 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
568 | cd "%obuild_pwd_snovis_0%" |
---|
569 | SET obuild_pwd_snovis_0= |
---|
570 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58 |
---|
571 | SET obuild_cxx_linker_debug=-g |
---|
572 | :end_if_platform_58 |
---|
573 | SET obuild_platform_result= |
---|
574 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
575 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
576 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
577 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
578 | cd "%obuild_pwd_snovis_0%" |
---|
579 | SET obuild_pwd_snovis_0= |
---|
580 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59 |
---|
581 | SET obuild_cxx_linker_debug=/DEBUG |
---|
582 | :end_if_platform_59 |
---|
583 | SET obuild_platform_result= |
---|
584 | |
---|
585 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
586 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
587 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
588 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
589 | cd "%obuild_pwd_snovis_0%" |
---|
590 | SET obuild_pwd_snovis_0= |
---|
591 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_60 |
---|
592 | SET obuild_cxx_linker_options=/nologo |
---|
593 | :end_if_platform_60 |
---|
594 | SET obuild_platform_result= |
---|
595 | |
---|
596 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_61 |
---|
597 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
598 | GOTO end_if_db_build_lib_G4LabCore_sh_61 |
---|
599 | :else_if_db_build_lib_G4LabCore_sh_61 |
---|
600 | SET obuild_cxx_linker_debug_local= |
---|
601 | :end_if_db_build_lib_G4LabCore_sh_61 |
---|
602 | |
---|
603 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_62 |
---|
604 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
605 | GOTO end_if_opt_build_lib_G4LabCore_sh_62 |
---|
606 | :else_if_opt_build_lib_G4LabCore_sh_62 |
---|
607 | SET obuild_cxx_linker_optimize_local= |
---|
608 | :end_if_opt_build_lib_G4LabCore_sh_62 |
---|
609 | |
---|
610 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
611 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
612 | IF EXIST .\lib_G4LabCore\tmp_objs DEL .\lib_G4LabCore\tmp_objs |
---|
613 | FOR %%f IN (.\lib_G4LabCore\*.obj) DO ECHO %%f >> .\lib_G4LabCore\tmp_objs |
---|
614 | |
---|
615 | REM # Create the archive library G4LabCore : |
---|
616 | @IF %obuild_verbose% == yes @ECHO ON |
---|
617 | lib.exe /nologo /machine:ix86 /out:.\lib_G4LabCore\G4LabCore.arc @.\lib_G4LabCore\tmp_objs |
---|
618 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
619 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
620 | |
---|
621 | REM # Build the obuild_windef.exe utility program : |
---|
622 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
623 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
624 | |
---|
625 | REM # Building the .def file : |
---|
626 | @IF %obuild_verbose% == yes @ECHO ON |
---|
627 | dumpbin.exe /symbols /out:.\lib_G4LabCore\tmp .\lib_G4LabCore\G4LabCore.arc 1> dumpbin_exe_error .\lib_G4LabCore\G4LabCore.arc |
---|
628 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
629 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
630 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
631 | .\obuild_windef.exe G4LabCore < .\lib_G4LabCore\tmp > .\lib_G4LabCore\G4LabCore.def |
---|
632 | REM # Building the linking library : |
---|
633 | REM # It produces a .exp file. |
---|
634 | @IF %obuild_verbose% == yes @ECHO ON |
---|
635 | lib.exe /nologo /machine:ix86 /out:.\G4LabCore.lib /def:.\lib_G4LabCore\G4LabCore.def 1> lib_exe_error |
---|
636 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
637 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
638 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
639 | |
---|
640 | REM # Building the DLL : |
---|
641 | IF EXIST .\G4LabCore.dll DEL .\G4LabCore.dll |
---|
642 | @IF %obuild_verbose% == yes @ECHO ON |
---|
643 | link.exe /nologo /dll /out:.\G4LabCore.dll .\G4LabCore.exp .\lib_G4LabCore\G4LabCore.arc %obuild_linked_libraries% |
---|
644 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
645 | |
---|
646 | cd "%obuild_pwd_snovis_0%" |
---|
647 | SET obuild_pwd_snovis_0= |
---|
648 | REM # Some cleanup : |
---|
649 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore\tmp_objs" |
---|
650 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.exp" |
---|
651 | |
---|
652 | :obuild_return |
---|
653 | ENDLOCAL |
---|
654 | @ECHO ON |
---|