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_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 bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2 |
---|
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% Darwin`) 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 bhep_platform=Darwin |
---|
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 snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0 |
---|
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% Darwin`) 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 snova_platform=Darwin |
---|
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% UNIX`) 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_9 |
---|
141 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 |
---|
142 | :end_if_platform_9 |
---|
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% UNIX`) 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_11 |
---|
151 | SET Geant4_home=/usr/local/geant4/8.2 |
---|
152 | :end_if_platform_11 |
---|
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% Darwin`) 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_12 |
---|
161 | SET obuild_cxx_command=c++ |
---|
162 | :end_if_platform_12 |
---|
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% Linux`) 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_13 |
---|
171 | SET obuild_cxx_command=c++ |
---|
172 | :end_if_platform_13 |
---|
173 | SET obuild_platform_result= |
---|
174 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
175 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
176 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
177 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
178 | cd "%obuild_pwd_snovis_0%" |
---|
179 | SET obuild_pwd_snovis_0= |
---|
180 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
181 | SET obuild_cxx_command=cxx |
---|
182 | :end_if_platform_14 |
---|
183 | SET obuild_platform_result= |
---|
184 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
185 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
186 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
187 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
188 | cd "%obuild_pwd_snovis_0%" |
---|
189 | SET obuild_pwd_snovis_0= |
---|
190 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 |
---|
191 | SET obuild_cxx_command=cl.exe |
---|
192 | :end_if_platform_15 |
---|
193 | SET obuild_platform_result= |
---|
194 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
195 | |
---|
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% Darwin`) 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_16 |
---|
203 | SET obuild_cxx_optimize=-O |
---|
204 | :end_if_platform_16 |
---|
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% Linux`) 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_17 |
---|
213 | SET obuild_cxx_optimize=-O |
---|
214 | :end_if_platform_17 |
---|
215 | SET obuild_platform_result= |
---|
216 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
217 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
218 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
219 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
220 | cd "%obuild_pwd_snovis_0%" |
---|
221 | SET obuild_pwd_snovis_0= |
---|
222 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 |
---|
223 | SET obuild_cxx_optimize=-O |
---|
224 | :end_if_platform_18 |
---|
225 | SET obuild_platform_result= |
---|
226 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
227 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
228 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
229 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
230 | cd "%obuild_pwd_snovis_0%" |
---|
231 | SET obuild_pwd_snovis_0= |
---|
232 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 |
---|
233 | SET obuild_cxx_optimize=/O2 |
---|
234 | :end_if_platform_19 |
---|
235 | SET obuild_platform_result= |
---|
236 | |
---|
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% Darwin`) 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_20 |
---|
244 | SET obuild_cxx_debug=-g |
---|
245 | :end_if_platform_20 |
---|
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% Linux`) 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_21 |
---|
254 | SET obuild_cxx_debug=-g |
---|
255 | :end_if_platform_21 |
---|
256 | SET obuild_platform_result= |
---|
257 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
258 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
259 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
260 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
261 | cd "%obuild_pwd_snovis_0%" |
---|
262 | SET obuild_pwd_snovis_0= |
---|
263 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 |
---|
264 | SET obuild_cxx_debug=-g |
---|
265 | :end_if_platform_22 |
---|
266 | SET obuild_platform_result= |
---|
267 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
268 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
269 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
270 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
271 | cd "%obuild_pwd_snovis_0%" |
---|
272 | SET obuild_pwd_snovis_0= |
---|
273 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23 |
---|
274 | SET obuild_cxx_debug=/ZI /Od |
---|
275 | :end_if_platform_23 |
---|
276 | SET obuild_platform_result= |
---|
277 | |
---|
278 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
279 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
280 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
281 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
282 | cd "%obuild_pwd_snovis_0%" |
---|
283 | SET obuild_pwd_snovis_0= |
---|
284 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 |
---|
285 | SET obuild_cxx_options=-fPIC |
---|
286 | :end_if_platform_24 |
---|
287 | SET obuild_platform_result= |
---|
288 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
289 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
290 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
291 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
292 | cd "%obuild_pwd_snovis_0%" |
---|
293 | SET obuild_pwd_snovis_0= |
---|
294 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 |
---|
295 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
296 | :end_if_platform_25 |
---|
297 | SET obuild_platform_result= |
---|
298 | |
---|
299 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_26 |
---|
300 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
301 | GOTO end_if_db_build_dll_snovis_sh_26 |
---|
302 | :else_if_db_build_dll_snovis_sh_26 |
---|
303 | SET obuild_cxx_debug_local= |
---|
304 | :end_if_db_build_dll_snovis_sh_26 |
---|
305 | |
---|
306 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_27 |
---|
307 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
308 | GOTO end_if_opt_build_dll_snovis_sh_27 |
---|
309 | :else_if_opt_build_dll_snovis_sh_27 |
---|
310 | SET obuild_cxx_optimize_local= |
---|
311 | :end_if_opt_build_dll_snovis_sh_27 |
---|
312 | |
---|
313 | |
---|
314 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
315 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
316 | 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 |
---|
317 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
318 | ) |
---|
319 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
320 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
321 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
322 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j |
---|
323 | cd "%obuild_pwd_snovis_0%" |
---|
324 | SET obuild_pwd_snovis_0= |
---|
325 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return |
---|
326 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
327 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
328 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
329 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Slash v1r*`) DO SET obuild_Slash_path=%%j |
---|
330 | cd "%obuild_pwd_snovis_0%" |
---|
331 | SET obuild_pwd_snovis_0= |
---|
332 | IF NOT DEFINED obuild_Slash_path ECHO Can't find Slash package. && GOTO obuild_return |
---|
333 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
334 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
335 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
336 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j |
---|
337 | cd "%obuild_pwd_snovis_0%" |
---|
338 | SET obuild_pwd_snovis_0= |
---|
339 | IF NOT DEFINED obuild_AIDA_path ECHO Can't find AIDA package. && GOTO obuild_return |
---|
340 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
341 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
342 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
343 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe OnX v17r*`) DO SET obuild_OnX_path=%%j |
---|
344 | cd "%obuild_pwd_snovis_0%" |
---|
345 | SET obuild_pwd_snovis_0= |
---|
346 | IF NOT DEFINED obuild_OnX_path ECHO Can't find OnX package. && GOTO obuild_return |
---|
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_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
350 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j |
---|
351 | cd "%obuild_pwd_snovis_0%" |
---|
352 | SET obuild_pwd_snovis_0= |
---|
353 | IF NOT DEFINED obuild_G4Lab_path ECHO Can't find G4Lab package. && GOTO obuild_return |
---|
354 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
355 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
356 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
357 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe BatchLab v1r*`) DO SET obuild_BatchLab_path=%%j |
---|
358 | cd "%obuild_pwd_snovis_0%" |
---|
359 | SET obuild_pwd_snovis_0= |
---|
360 | IF NOT DEFINED obuild_BatchLab_path ECHO Can't find BatchLab package. && GOTO obuild_return |
---|
361 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
362 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
363 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
364 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j |
---|
365 | cd "%obuild_pwd_snovis_0%" |
---|
366 | SET obuild_pwd_snovis_0= |
---|
367 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return |
---|
368 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
369 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
370 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
371 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j |
---|
372 | cd "%obuild_pwd_snovis_0%" |
---|
373 | SET obuild_pwd_snovis_0= |
---|
374 | IF NOT DEFINED obuild_CoinGL_path ECHO Can't find CoinGL package. && GOTO obuild_return |
---|
375 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
376 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
377 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
378 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j |
---|
379 | cd "%obuild_pwd_snovis_0%" |
---|
380 | SET obuild_pwd_snovis_0= |
---|
381 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return |
---|
382 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
383 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
384 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
385 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe expat v1r*`) DO SET obuild_expat_path=%%j |
---|
386 | cd "%obuild_pwd_snovis_0%" |
---|
387 | SET obuild_pwd_snovis_0= |
---|
388 | IF NOT DEFINED obuild_expat_path ECHO Can't find expat package. && GOTO obuild_return |
---|
389 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
390 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
391 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
392 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j |
---|
393 | cd "%obuild_pwd_snovis_0%" |
---|
394 | SET obuild_pwd_snovis_0= |
---|
395 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return |
---|
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_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
399 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j |
---|
400 | cd "%obuild_pwd_snovis_0%" |
---|
401 | SET obuild_pwd_snovis_0= |
---|
402 | IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return |
---|
403 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
404 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
405 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
406 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j |
---|
407 | cd "%obuild_pwd_snovis_0%" |
---|
408 | SET obuild_pwd_snovis_0= |
---|
409 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return |
---|
410 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
411 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
412 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
413 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j |
---|
414 | cd "%obuild_pwd_snovis_0%" |
---|
415 | SET obuild_pwd_snovis_0= |
---|
416 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return |
---|
417 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
418 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
419 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
420 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j |
---|
421 | cd "%obuild_pwd_snovis_0%" |
---|
422 | SET obuild_pwd_snovis_0= |
---|
423 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return |
---|
424 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
425 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
426 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
427 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe jpeg v1r*`) DO SET obuild_jpeg_path=%%j |
---|
428 | cd "%obuild_pwd_snovis_0%" |
---|
429 | SET obuild_pwd_snovis_0= |
---|
430 | IF NOT DEFINED obuild_jpeg_path ECHO Can't find jpeg package. && GOTO obuild_return |
---|
431 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
432 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
433 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
434 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j |
---|
435 | cd "%obuild_pwd_snovis_0%" |
---|
436 | SET obuild_pwd_snovis_0= |
---|
437 | IF NOT DEFINED obuild_dvi2bitmap_path ECHO Can't find dvi2bitmap package. && GOTO obuild_return |
---|
438 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
439 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
440 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
441 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe freetype2 v1r*`) DO SET obuild_freetype2_path=%%j |
---|
442 | cd "%obuild_pwd_snovis_0%" |
---|
443 | SET obuild_pwd_snovis_0= |
---|
444 | IF NOT DEFINED obuild_freetype2_path ECHO Can't find freetype2 package. && GOTO obuild_return |
---|
445 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
446 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
447 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
448 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j |
---|
449 | cd "%obuild_pwd_snovis_0%" |
---|
450 | SET obuild_pwd_snovis_0= |
---|
451 | IF NOT DEFINED obuild_CoinGL_path ECHO Can't find CoinGL package. && GOTO obuild_return |
---|
452 | |
---|
453 | SET obuild_cxx_includes=/I"%obuild_snovis_path%" |
---|
454 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include" |
---|
455 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%" |
---|
456 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp" |
---|
457 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_OnX_path%\include" |
---|
458 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include" |
---|
459 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_BatchLab_path%" |
---|
460 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HEPVis_path%\include" |
---|
461 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_CoinGL_path%\include" |
---|
462 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
463 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
464 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
465 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
466 | cd "%obuild_pwd_snovis_0%" |
---|
467 | SET obuild_pwd_snovis_0= |
---|
468 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 |
---|
469 | SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers |
---|
470 | :end_if_platform_37 |
---|
471 | SET obuild_platform_result= |
---|
472 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
473 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
474 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
475 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
476 | cd "%obuild_pwd_snovis_0%" |
---|
477 | SET obuild_pwd_snovis_0= |
---|
478 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 |
---|
479 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include |
---|
480 | :end_if_platform_38 |
---|
481 | SET obuild_platform_result= |
---|
482 | |
---|
483 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" |
---|
484 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" |
---|
485 | |
---|
486 | @IF %obuild_verbose% == yes @ECHO ON |
---|
487 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
488 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Callbacks.obj /Tp"..\source\Callbacks.cxx" 1> cl_exe_error |
---|
489 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
490 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
491 | cd "%obuild_snovis_path%\obuild" |
---|
492 | |
---|
493 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
494 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\InventorCallbacks.obj /Tp"..\source\InventorCallbacks.cxx" 1> cl_exe_error |
---|
495 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
496 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
497 | cd "%obuild_snovis_path%\obuild" |
---|
498 | |
---|
499 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
500 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Layouts.obj /Tp"..\source\Layouts.cxx" 1> cl_exe_error |
---|
501 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
502 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
503 | cd "%obuild_snovis_path%\obuild" |
---|
504 | |
---|
505 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
506 | |
---|
507 | SET obuild_linked_libraries="%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib" |
---|
508 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib" |
---|
509 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib" |
---|
510 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib" |
---|
511 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib" |
---|
512 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib" |
---|
513 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib" |
---|
514 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib" |
---|
515 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib" |
---|
516 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib" |
---|
517 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib" |
---|
518 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
519 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
520 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
521 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
522 | cd "%obuild_pwd_snovis_0%" |
---|
523 | SET obuild_pwd_snovis_0= |
---|
524 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53 |
---|
525 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL |
---|
526 | :end_if_platform_53 |
---|
527 | SET obuild_platform_result= |
---|
528 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
529 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
530 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
531 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
532 | cd "%obuild_pwd_snovis_0%" |
---|
533 | SET obuild_pwd_snovis_0= |
---|
534 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54 |
---|
535 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices |
---|
536 | :end_if_platform_54 |
---|
537 | SET obuild_platform_result= |
---|
538 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
539 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
540 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
541 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
542 | cd "%obuild_pwd_snovis_0%" |
---|
543 | SET obuild_pwd_snovis_0= |
---|
544 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55 |
---|
545 | SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm |
---|
546 | :end_if_platform_55 |
---|
547 | SET obuild_platform_result= |
---|
548 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
549 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
550 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
551 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
552 | cd "%obuild_pwd_snovis_0%" |
---|
553 | SET obuild_pwd_snovis_0= |
---|
554 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56 |
---|
555 | SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib |
---|
556 | :end_if_platform_56 |
---|
557 | SET obuild_platform_result= |
---|
558 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
559 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
560 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
561 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
562 | cd "%obuild_pwd_snovis_0%" |
---|
563 | SET obuild_pwd_snovis_0= |
---|
564 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57 |
---|
565 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm |
---|
566 | :end_if_platform_57 |
---|
567 | SET obuild_platform_result= |
---|
568 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
569 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
570 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
571 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
572 | cd "%obuild_pwd_snovis_0%" |
---|
573 | SET obuild_pwd_snovis_0= |
---|
574 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58 |
---|
575 | SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread |
---|
576 | :end_if_platform_58 |
---|
577 | SET obuild_platform_result= |
---|
578 | |
---|
579 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
580 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
581 | IF EXIST .\dll_snovis\tmp_objs DEL .\dll_snovis\tmp_objs |
---|
582 | FOR %%f IN (.\dll_snovis\*.obj) DO ECHO %%f >> .\dll_snovis\tmp_objs |
---|
583 | |
---|
584 | REM # Create the archive library snovis : |
---|
585 | @IF %obuild_verbose% == yes @ECHO ON |
---|
586 | lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.arc @.\dll_snovis\tmp_objs |
---|
587 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
588 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
589 | |
---|
590 | REM # Build the obuild_windef.exe utility program : |
---|
591 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
592 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
593 | |
---|
594 | REM # Building the .def file : |
---|
595 | @IF %obuild_verbose% == yes @ECHO ON |
---|
596 | dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc 1> dumpbin_exe_error .\dll_snovis\snovis.arc |
---|
597 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
598 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
599 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
600 | .\obuild_windef.exe snovis < .\dll_snovis\tmp > .\dll_snovis\snovis.def |
---|
601 | REM # Building the linking library : |
---|
602 | REM # It produces a .exp file. |
---|
603 | @IF %obuild_verbose% == yes @ECHO ON |
---|
604 | lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def 1> lib_exe_error |
---|
605 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
606 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
607 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
608 | |
---|
609 | REM # Building the DLL : |
---|
610 | IF EXIST .\snovis.dll DEL .\snovis.dll |
---|
611 | @IF %obuild_verbose% == yes @ECHO ON |
---|
612 | link.exe /nologo /dll /out:.\snovis.dll .\dll_snovis\snovis.exp .\dll_snovis\snovis.arc %obuild_linked_libraries% |
---|
613 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
614 | |
---|
615 | cd "%obuild_pwd_snovis_0%" |
---|
616 | SET obuild_pwd_snovis_0= |
---|
617 | REM # Some cleanup : |
---|
618 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs" |
---|
619 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp" |
---|
620 | |
---|
621 | :obuild_return |
---|
622 | ENDLOCAL |
---|
623 | @ECHO ON |
---|