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_prog_snovis |
---|
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_app_prog_snovis_sh_22 |
---|
280 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
281 | GOTO end_if_db_build_app_prog_snovis_sh_22 |
---|
282 | :else_if_db_build_app_prog_snovis_sh_22 |
---|
283 | SET obuild_cxx_debug_local= |
---|
284 | :end_if_db_build_app_prog_snovis_sh_22 |
---|
285 | |
---|
286 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_23 |
---|
287 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
288 | GOTO end_if_opt_build_app_prog_snovis_sh_23 |
---|
289 | :else_if_opt_build_app_prog_snovis_sh_23 |
---|
290 | SET obuild_cxx_optimize_local= |
---|
291 | :end_if_opt_build_app_prog_snovis_sh_23 |
---|
292 | |
---|
293 | |
---|
294 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
295 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
296 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL |
---|
297 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
298 | ) |
---|
299 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
300 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
301 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
302 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
303 | cd "%obuild_pwd_snovis_0%" |
---|
304 | SET obuild_pwd_snovis_0= |
---|
305 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
306 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
307 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
308 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
309 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
310 | cd "%obuild_pwd_snovis_0%" |
---|
311 | SET obuild_pwd_snovis_0= |
---|
312 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
313 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
314 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
315 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
316 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
317 | cd "%obuild_pwd_snovis_0%" |
---|
318 | SET obuild_pwd_snovis_0= |
---|
319 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
320 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
321 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
322 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
323 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
324 | cd "%obuild_pwd_snovis_0%" |
---|
325 | SET obuild_pwd_snovis_0= |
---|
326 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
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_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
330 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j |
---|
331 | cd "%obuild_pwd_snovis_0%" |
---|
332 | SET obuild_pwd_snovis_0= |
---|
333 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return |
---|
334 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
335 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
336 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
337 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
338 | cd "%obuild_pwd_snovis_0%" |
---|
339 | SET obuild_pwd_snovis_0= |
---|
340 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
341 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
342 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
343 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
344 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
345 | cd "%obuild_pwd_snovis_0%" |
---|
346 | SET obuild_pwd_snovis_0= |
---|
347 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
348 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
349 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
350 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
351 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
352 | cd "%obuild_pwd_snovis_0%" |
---|
353 | SET obuild_pwd_snovis_0= |
---|
354 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
355 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
356 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
357 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
358 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j |
---|
359 | cd "%obuild_pwd_snovis_0%" |
---|
360 | SET obuild_pwd_snovis_0= |
---|
361 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return |
---|
362 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
363 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
364 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
365 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j |
---|
366 | cd "%obuild_pwd_snovis_0%" |
---|
367 | SET obuild_pwd_snovis_0= |
---|
368 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return |
---|
369 | |
---|
370 | SET obuild_cxx_includes=/I"%obuild_snovis_path%\source" |
---|
371 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%" |
---|
372 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include" |
---|
373 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include" |
---|
374 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include" |
---|
375 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" |
---|
376 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
377 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
378 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
379 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
380 | cd "%obuild_pwd_snovis_0%" |
---|
381 | SET obuild_pwd_snovis_0= |
---|
382 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 |
---|
383 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
384 | :end_if_platform_30 |
---|
385 | SET obuild_platform_result= |
---|
386 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
387 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
388 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
389 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
390 | cd "%obuild_pwd_snovis_0%" |
---|
391 | SET obuild_pwd_snovis_0= |
---|
392 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31 |
---|
393 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include |
---|
394 | :end_if_platform_31 |
---|
395 | SET obuild_platform_result= |
---|
396 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
397 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
398 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
399 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
400 | cd "%obuild_pwd_snovis_0%" |
---|
401 | SET obuild_pwd_snovis_0= |
---|
402 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32 |
---|
403 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include |
---|
404 | :end_if_platform_32 |
---|
405 | SET obuild_platform_result= |
---|
406 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
407 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
408 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
409 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
410 | cd "%obuild_pwd_snovis_0%" |
---|
411 | SET obuild_pwd_snovis_0= |
---|
412 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33 |
---|
413 | 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 |
---|
414 | :end_if_platform_33 |
---|
415 | SET obuild_platform_result= |
---|
416 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
417 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
418 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
419 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
420 | cd "%obuild_pwd_snovis_0%" |
---|
421 | SET obuild_pwd_snovis_0= |
---|
422 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34 |
---|
423 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab |
---|
424 | :end_if_platform_34 |
---|
425 | SET obuild_platform_result= |
---|
426 | |
---|
427 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis" |
---|
428 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis" |
---|
429 | |
---|
430 | @IF %obuild_verbose% == yes @ECHO ON |
---|
431 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
432 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_prog_snovis\snovis_session.obj /Tp"..\applications\snovis_session.cc" 1> cl_exe_error |
---|
433 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
434 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
435 | cd "%obuild_snovis_path%\obuild" |
---|
436 | |
---|
437 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
438 | |
---|
439 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
440 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
441 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
442 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
443 | cd "%obuild_pwd_snovis_0%" |
---|
444 | SET obuild_pwd_snovis_0= |
---|
445 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36 |
---|
446 | SET obuild_cxx_linker_command=c++ |
---|
447 | :end_if_platform_36 |
---|
448 | SET obuild_platform_result= |
---|
449 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
450 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
451 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
452 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
453 | cd "%obuild_pwd_snovis_0%" |
---|
454 | SET obuild_pwd_snovis_0= |
---|
455 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 |
---|
456 | SET obuild_cxx_linker_command=c++ |
---|
457 | :end_if_platform_37 |
---|
458 | SET obuild_platform_result= |
---|
459 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
460 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
461 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
462 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
463 | cd "%obuild_pwd_snovis_0%" |
---|
464 | SET obuild_pwd_snovis_0= |
---|
465 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 |
---|
466 | SET obuild_cxx_linker_command=cxx |
---|
467 | :end_if_platform_38 |
---|
468 | SET obuild_platform_result= |
---|
469 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
470 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
471 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
472 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
473 | cd "%obuild_pwd_snovis_0%" |
---|
474 | SET obuild_pwd_snovis_0= |
---|
475 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39 |
---|
476 | SET obuild_cxx_linker_command=link.exe |
---|
477 | :end_if_platform_39 |
---|
478 | SET obuild_platform_result= |
---|
479 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
480 | |
---|
481 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
482 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
483 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
484 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
485 | cd "%obuild_pwd_snovis_0%" |
---|
486 | SET obuild_pwd_snovis_0= |
---|
487 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 |
---|
488 | SET obuild_cxx_linker_debug=-g |
---|
489 | :end_if_platform_40 |
---|
490 | SET obuild_platform_result= |
---|
491 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
492 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
493 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
494 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
495 | cd "%obuild_pwd_snovis_0%" |
---|
496 | SET obuild_pwd_snovis_0= |
---|
497 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 |
---|
498 | SET obuild_cxx_linker_debug=-g |
---|
499 | :end_if_platform_41 |
---|
500 | SET obuild_platform_result= |
---|
501 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
502 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
503 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
504 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
505 | cd "%obuild_pwd_snovis_0%" |
---|
506 | SET obuild_pwd_snovis_0= |
---|
507 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 |
---|
508 | SET obuild_cxx_linker_debug=-g |
---|
509 | :end_if_platform_42 |
---|
510 | SET obuild_platform_result= |
---|
511 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
512 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
513 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
514 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
515 | cd "%obuild_pwd_snovis_0%" |
---|
516 | SET obuild_pwd_snovis_0= |
---|
517 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 |
---|
518 | SET obuild_cxx_linker_debug=/DEBUG |
---|
519 | :end_if_platform_43 |
---|
520 | SET obuild_platform_result= |
---|
521 | |
---|
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% Windows_NT`) 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_44 |
---|
529 | SET obuild_cxx_linker_options=/nologo |
---|
530 | :end_if_platform_44 |
---|
531 | SET obuild_platform_result= |
---|
532 | |
---|
533 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_45 |
---|
534 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
535 | GOTO end_if_db_build_app_prog_snovis_sh_45 |
---|
536 | :else_if_db_build_app_prog_snovis_sh_45 |
---|
537 | SET obuild_cxx_linker_debug_local= |
---|
538 | :end_if_db_build_app_prog_snovis_sh_45 |
---|
539 | |
---|
540 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_46 |
---|
541 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
542 | GOTO end_if_opt_build_app_prog_snovis_sh_46 |
---|
543 | :else_if_opt_build_app_prog_snovis_sh_46 |
---|
544 | SET obuild_cxx_linker_optimize_local= |
---|
545 | :end_if_opt_build_app_prog_snovis_sh_46 |
---|
546 | |
---|
547 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
548 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
549 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
550 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
551 | cd "%obuild_pwd_snovis_0%" |
---|
552 | SET obuild_pwd_snovis_0= |
---|
553 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 |
---|
554 | SET obuild_cxx_linker_options=%obuild_cxx_linker_options% -bind_at_load -multiply_defined suppress |
---|
555 | :end_if_platform_47 |
---|
556 | SET obuild_platform_result= |
---|
557 | |
---|
558 | SET obuild_linked_libraries="%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.lib" |
---|
559 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.lib" |
---|
560 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snova.lib" |
---|
561 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snvertex.lib" |
---|
562 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\sngeom.lib" |
---|
563 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib" |
---|
564 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib" |
---|
565 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
566 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
567 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
568 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
569 | cd "%obuild_pwd_snovis_0%" |
---|
570 | SET obuild_pwd_snovis_0= |
---|
571 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55 |
---|
572 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${HDF5_home}/lib -lhdf5.0.0.0 |
---|
573 | :end_if_platform_55 |
---|
574 | SET obuild_platform_result= |
---|
575 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
576 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
577 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
578 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
579 | cd "%obuild_pwd_snovis_0%" |
---|
580 | SET obuild_pwd_snovis_0= |
---|
581 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56 |
---|
582 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global |
---|
583 | :end_if_platform_56 |
---|
584 | SET obuild_platform_result= |
---|
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% UNIX`) 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_57 |
---|
592 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1 |
---|
593 | :end_if_platform_57 |
---|
594 | SET obuild_platform_result= |
---|
595 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
596 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
597 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
598 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
599 | cd "%obuild_pwd_snovis_0%" |
---|
600 | SET obuild_pwd_snovis_0= |
---|
601 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58 |
---|
602 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl |
---|
603 | :end_if_platform_58 |
---|
604 | SET obuild_platform_result= |
---|
605 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
606 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
607 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
608 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
609 | cd "%obuild_pwd_snovis_0%" |
---|
610 | SET obuild_pwd_snovis_0= |
---|
611 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59 |
---|
612 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils |
---|
613 | :end_if_platform_59 |
---|
614 | SET obuild_platform_result= |
---|
615 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
616 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
617 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
618 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
619 | cd "%obuild_pwd_snovis_0%" |
---|
620 | SET obuild_pwd_snovis_0= |
---|
621 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_60 |
---|
622 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL |
---|
623 | :end_if_platform_60 |
---|
624 | SET obuild_platform_result= |
---|
625 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
626 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
627 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
628 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
629 | cd "%obuild_pwd_snovis_0%" |
---|
630 | SET obuild_pwd_snovis_0= |
---|
631 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61 |
---|
632 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices |
---|
633 | :end_if_platform_61 |
---|
634 | SET obuild_platform_result= |
---|
635 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
636 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
637 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
638 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
639 | cd "%obuild_pwd_snovis_0%" |
---|
640 | SET obuild_pwd_snovis_0= |
---|
641 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62 |
---|
642 | SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm |
---|
643 | :end_if_platform_62 |
---|
644 | SET obuild_platform_result= |
---|
645 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
646 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
647 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
648 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
649 | cd "%obuild_pwd_snovis_0%" |
---|
650 | SET obuild_pwd_snovis_0= |
---|
651 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63 |
---|
652 | SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib |
---|
653 | :end_if_platform_63 |
---|
654 | SET obuild_platform_result= |
---|
655 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
656 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
657 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
658 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
659 | cd "%obuild_pwd_snovis_0%" |
---|
660 | SET obuild_pwd_snovis_0= |
---|
661 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64 |
---|
662 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm |
---|
663 | :end_if_platform_64 |
---|
664 | SET obuild_platform_result= |
---|
665 | |
---|
666 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
667 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
668 | IF EXIST .\app_prog_snovis\tmp_objs DEL .\app_prog_snovis\tmp_objs |
---|
669 | FOR %%f IN (.\app_prog_snovis\*.obj) DO ECHO %%f >> .\app_prog_snovis\tmp_objs |
---|
670 | REM # Link prog_snovis : |
---|
671 | IF EXIST .\prog_snovis.exe DEL .\prog_snovis.exe |
---|
672 | @IF %obuild_verbose% == yes @ECHO ON |
---|
673 | %obuild_cxx_linker_command% %obuild_cxx_linker_debug_local% %obuild_cxx_linker_optimize_local% %obuild_cxx_linker_options% /out:.\prog_snovis.exe @.\app_prog_snovis\tmp_objs %obuild_linked_libraries% |
---|
674 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
675 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
676 | |
---|
677 | cd "%obuild_pwd_snovis_0%" |
---|
678 | SET obuild_pwd_snovis_0= |
---|
679 | REM # Some cleanup : |
---|
680 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis\tmp_objs" |
---|
681 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.ilk" |
---|
682 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.pdb" |
---|
683 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis\tmp_objs" |
---|
684 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snovis.exp" |
---|
685 | |
---|
686 | :obuild_return |
---|
687 | ENDLOCAL |
---|
688 | @ECHO ON |
---|