source: snovis/trunk/obuild/DOS/build_app_snovis_session.bat @ 101

Last change on this file since 101 was 101, checked in by barrand, 16 years ago
  • Property svn:executable set to *
File size: 40.5 KB
Line 
1@ECHO OFF
2SETLOCAL
3
4REM #
5REM # File produced by the obuild tool version 1.0
6REM # for the package snovis with version v1r1.
7REM #
8
9REM #////////////////////////////////////////////////
10REM # Usage :
11REM #   DOS> CD some_path\pack\version\obuild
12REM #   DOS> DOS\build_snovis_session
13REM #
14REM #////////////////////////////////////////////////
15
16REM #////////////////////////////////////////////////
17REM #/// Get path of this file :
18REM #////////////////////////////////////////////////
19SET obuild_snovis_path=%~dp0
20REM # Remove ending \obuild\DOS\
21SET obuild_snovis_path=%obuild_snovis_path:~0,-12%
22
23REM #////////////////////////////////////////////////
24REM #/// Treat arguments :
25REM #////////////////////////////////////////////////
26
27SET obuild_verbose=no
28SET obuild_debug=no
29SET obuild_optimize=yes
30SET obuild_set_x=no
31
32:next_arg
33IF "%1%" == "" GOTO end_args
34
35IF NOT "%1%" == "-v" GOTO end_if_v
36  SET obuild_verbose=yes
37  SHIFT
38  GOTO next_arg
39:end_if_v
40
41IF NOT "%1%" == "-g" GOTO end_if_g
42  SET obuild_debug=yes
43  SHIFT
44  GOTO next_arg
45:end_if_g
46
47IF 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
55REM #////////////////////////////////////////////////
56REM #/// End arguments.
57REM #////////////////////////////////////////////////
58
59IF %obuild_set_x% == yes ECHO ON
60
61IF %obuild_debug% == yes SET obuild_optimize=no
62
63IF "%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
70IF "%obuild_platform%" == "" (
71  ECHO obuild_platform variable not defined.
72  GOTO obuild_return
73)
74
75IF "%OBUILD_DIR_BIN%" == "" (
76  SET obuild_dir_bin=%obuild_platform%_obuild
77) ELSE (
78  SET obuild_dir_bin=%OBUILD_DIR_BIN%
79)
80
81IF "%obuild_dir_bin%" == "" (
82  ECHO obuild_dir_bin variable not defined.
83  GOTO obuild_return
84)
85
86IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
87
88IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
89IF 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
94FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
95cd "%obuild_snovis_path%\%obuild_dir_bin%"
96IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
98cd "%obuild_pwd_snovis_0%"
99SET obuild_pwd_snovis_0=
100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
101SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
102:end_if_platform_1
103SET obuild_platform_result=
104FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
105cd "%obuild_snovis_path%\%obuild_dir_bin%"
106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
108cd "%obuild_pwd_snovis_0%"
109SET obuild_pwd_snovis_0=
110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
111SET bhep_platform=Darwin
112:end_if_platform_3
113SET obuild_platform_result=
114FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
115cd "%obuild_snovis_path%\%obuild_dir_bin%"
116IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
117FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
118cd "%obuild_pwd_snovis_0%"
119SET obuild_pwd_snovis_0=
120IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
121SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
122:end_if_platform_5
123SET obuild_platform_result=
124FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
125cd "%obuild_snovis_path%\%obuild_dir_bin%"
126IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
127FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
128cd "%obuild_pwd_snovis_0%"
129SET obuild_pwd_snovis_0=
130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
131SET snova_platform=Darwin
132:end_if_platform_7
133SET obuild_platform_result=
134FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
135cd "%obuild_snovis_path%\%obuild_dir_bin%"
136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
138cd "%obuild_pwd_snovis_0%"
139SET obuild_pwd_snovis_0=
140IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
141SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
142:end_if_platform_9
143SET obuild_platform_result=
144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
145cd "%obuild_snovis_path%\%obuild_dir_bin%"
146IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
147FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
148cd "%obuild_pwd_snovis_0%"
149SET obuild_pwd_snovis_0=
150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
151SET Geant4_home=/usr/local/geant4/8.2
152:end_if_platform_11
153SET obuild_platform_result=
154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
155cd "%obuild_snovis_path%\%obuild_dir_bin%"
156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
158cd "%obuild_pwd_snovis_0%"
159SET obuild_pwd_snovis_0=
160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
161SET obuild_cxx_command=c++
162:end_if_platform_12
163SET obuild_platform_result=
164FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
165cd "%obuild_snovis_path%\%obuild_dir_bin%"
166IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
167FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
168cd "%obuild_pwd_snovis_0%"
169SET obuild_pwd_snovis_0=
170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
171SET obuild_cxx_command=c++
172:end_if_platform_13
173SET obuild_platform_result=
174FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
175cd "%obuild_snovis_path%\%obuild_dir_bin%"
176IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
177FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
178cd "%obuild_pwd_snovis_0%"
179SET obuild_pwd_snovis_0=
180IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
181SET obuild_cxx_command=cxx
182:end_if_platform_14
183SET obuild_platform_result=
184FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
185cd "%obuild_snovis_path%\%obuild_dir_bin%"
186IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
187FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
188cd "%obuild_pwd_snovis_0%"
189SET obuild_pwd_snovis_0=
190IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
191SET obuild_cxx_command=cl.exe
192:end_if_platform_15
193SET obuild_platform_result=
194IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
195
196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
197cd "%obuild_snovis_path%\%obuild_dir_bin%"
198IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
199FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
200cd "%obuild_pwd_snovis_0%"
201SET obuild_pwd_snovis_0=
202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
203SET obuild_cxx_optimize=-O
204:end_if_platform_16
205SET obuild_platform_result=
206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
207cd "%obuild_snovis_path%\%obuild_dir_bin%"
208IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
209FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
210cd "%obuild_pwd_snovis_0%"
211SET obuild_pwd_snovis_0=
212IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
213SET obuild_cxx_optimize=-O
214:end_if_platform_17
215SET obuild_platform_result=
216FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
217cd "%obuild_snovis_path%\%obuild_dir_bin%"
218IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
219FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
220cd "%obuild_pwd_snovis_0%"
221SET obuild_pwd_snovis_0=
222IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
223SET obuild_cxx_optimize=-O
224:end_if_platform_18
225SET obuild_platform_result=
226FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
227cd "%obuild_snovis_path%\%obuild_dir_bin%"
228IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
229FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
230cd "%obuild_pwd_snovis_0%"
231SET obuild_pwd_snovis_0=
232IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
233SET obuild_cxx_optimize=/O2
234:end_if_platform_19
235SET obuild_platform_result=
236
237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
238cd "%obuild_snovis_path%\%obuild_dir_bin%"
239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
241cd "%obuild_pwd_snovis_0%"
242SET obuild_pwd_snovis_0=
243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
244SET obuild_cxx_debug=-g
245:end_if_platform_20
246SET obuild_platform_result=
247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
248cd "%obuild_snovis_path%\%obuild_dir_bin%"
249IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
250FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
251cd "%obuild_pwd_snovis_0%"
252SET obuild_pwd_snovis_0=
253IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
254SET obuild_cxx_debug=-g
255:end_if_platform_21
256SET obuild_platform_result=
257FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
258cd "%obuild_snovis_path%\%obuild_dir_bin%"
259IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
260FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
261cd "%obuild_pwd_snovis_0%"
262SET obuild_pwd_snovis_0=
263IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
264SET obuild_cxx_debug=-g
265:end_if_platform_22
266SET obuild_platform_result=
267FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
268cd "%obuild_snovis_path%\%obuild_dir_bin%"
269IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
270FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
271cd "%obuild_pwd_snovis_0%"
272SET obuild_pwd_snovis_0=
273IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
274SET obuild_cxx_debug=/ZI /Od
275:end_if_platform_23
276SET obuild_platform_result=
277
278FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
279cd "%obuild_snovis_path%\%obuild_dir_bin%"
280IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
281FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
282cd "%obuild_pwd_snovis_0%"
283SET obuild_pwd_snovis_0=
284IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
285SET obuild_cxx_options=-fPIC
286:end_if_platform_24
287SET obuild_platform_result=
288FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
289cd "%obuild_snovis_path%\%obuild_dir_bin%"
290IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
291FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
292cd "%obuild_pwd_snovis_0%"
293SET obuild_pwd_snovis_0=
294IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
295SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
296:end_if_platform_25
297SET obuild_platform_result=
298
299IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_26
300  SET obuild_cxx_debug_local=%obuild_cxx_debug%
301  GOTO end_if_db_build_app_snovis_session_sh_26
302:else_if_db_build_app_snovis_session_sh_26
303  SET obuild_cxx_debug_local=
304:end_if_db_build_app_snovis_session_sh_26
305
306IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_27
307  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
308  GOTO end_if_opt_build_app_snovis_session_sh_27
309:else_if_opt_build_app_snovis_session_sh_27
310  SET obuild_cxx_optimize_local=
311:end_if_opt_build_app_snovis_session_sh_27
312
313
314IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
315IF 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)
319FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
320cd "%obuild_snovis_path%\%obuild_dir_bin%"
321IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
322FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
323cd "%obuild_pwd_snovis_0%"
324SET obuild_pwd_snovis_0=
325IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
326FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
327cd "%obuild_snovis_path%\%obuild_dir_bin%"
328IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
329FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
330cd "%obuild_pwd_snovis_0%"
331SET obuild_pwd_snovis_0=
332IF NOT DEFINED obuild_AIDA_path  ECHO Can't find AIDA package.  && GOTO obuild_return
333FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
334cd "%obuild_snovis_path%\%obuild_dir_bin%"
335IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
336FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
337cd "%obuild_pwd_snovis_0%"
338SET obuild_pwd_snovis_0=
339IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
340FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
341cd "%obuild_snovis_path%\%obuild_dir_bin%"
342IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
343FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
344cd "%obuild_pwd_snovis_0%"
345SET obuild_pwd_snovis_0=
346IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
347FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
348cd "%obuild_snovis_path%\%obuild_dir_bin%"
349IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
350FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Slash v1r*`) DO SET obuild_Slash_path=%%j
351cd "%obuild_pwd_snovis_0%"
352SET obuild_pwd_snovis_0=
353IF NOT DEFINED obuild_Slash_path  ECHO Can't find Slash package.  && GOTO obuild_return
354FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
355cd "%obuild_snovis_path%\%obuild_dir_bin%"
356IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
357FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
358cd "%obuild_pwd_snovis_0%"
359SET obuild_pwd_snovis_0=
360IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX package.  && GOTO obuild_return
361FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
362cd "%obuild_snovis_path%\%obuild_dir_bin%"
363IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
364FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
365cd "%obuild_pwd_snovis_0%"
366SET obuild_pwd_snovis_0=
367IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
368FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
369cd "%obuild_snovis_path%\%obuild_dir_bin%"
370IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
371FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
372cd "%obuild_pwd_snovis_0%"
373SET obuild_pwd_snovis_0=
374IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
375FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
376cd "%obuild_snovis_path%\%obuild_dir_bin%"
377IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
378FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
379cd "%obuild_pwd_snovis_0%"
380SET obuild_pwd_snovis_0=
381IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
382FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
383cd "%obuild_snovis_path%\%obuild_dir_bin%"
384IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
385FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
386cd "%obuild_pwd_snovis_0%"
387SET obuild_pwd_snovis_0=
388IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
389FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
390cd "%obuild_snovis_path%\%obuild_dir_bin%"
391IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
392FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  expat v1r*`) DO SET obuild_expat_path=%%j
393cd "%obuild_pwd_snovis_0%"
394SET obuild_pwd_snovis_0=
395IF NOT DEFINED obuild_expat_path  ECHO Can't find expat package.  && GOTO obuild_return
396FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
397cd "%obuild_snovis_path%\%obuild_dir_bin%"
398IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
399FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
400cd "%obuild_pwd_snovis_0%"
401SET obuild_pwd_snovis_0=
402IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
403FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
404cd "%obuild_snovis_path%\%obuild_dir_bin%"
405IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
406FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
407cd "%obuild_pwd_snovis_0%"
408SET obuild_pwd_snovis_0=
409IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
410FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
411cd "%obuild_snovis_path%\%obuild_dir_bin%"
412IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
413FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
414cd "%obuild_pwd_snovis_0%"
415SET obuild_pwd_snovis_0=
416IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
417FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
418cd "%obuild_snovis_path%\%obuild_dir_bin%"
419IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
420FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
421cd "%obuild_pwd_snovis_0%"
422SET obuild_pwd_snovis_0=
423IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
424FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
425cd "%obuild_snovis_path%\%obuild_dir_bin%"
426IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
427FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
428cd "%obuild_pwd_snovis_0%"
429SET obuild_pwd_snovis_0=
430IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
431FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
432cd "%obuild_snovis_path%\%obuild_dir_bin%"
433IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
434FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  jpeg v1r*`) DO SET obuild_jpeg_path=%%j
435cd "%obuild_pwd_snovis_0%"
436SET obuild_pwd_snovis_0=
437IF NOT DEFINED obuild_jpeg_path  ECHO Can't find jpeg package.  && GOTO obuild_return
438FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
439cd "%obuild_snovis_path%\%obuild_dir_bin%"
440IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
441FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
442cd "%obuild_pwd_snovis_0%"
443SET obuild_pwd_snovis_0=
444IF NOT DEFINED obuild_dvi2bitmap_path  ECHO Can't find dvi2bitmap package.  && GOTO obuild_return
445FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
446cd "%obuild_snovis_path%\%obuild_dir_bin%"
447IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
448FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
449cd "%obuild_pwd_snovis_0%"
450SET obuild_pwd_snovis_0=
451IF NOT DEFINED obuild_freetype2_path  ECHO Can't find freetype2 package.  && GOTO obuild_return
452FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
453cd "%obuild_snovis_path%\%obuild_dir_bin%"
454IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
455FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
456cd "%obuild_pwd_snovis_0%"
457SET obuild_pwd_snovis_0=
458IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
459
460FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
461cd "%obuild_snovis_path%\%obuild_dir_bin%"
462IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
463FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
464cd "%obuild_pwd_snovis_0%"
465SET obuild_pwd_snovis_0=
466IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
467SET obuild_cxx_includes=-I${snova_home}
468:end_if_platform_28
469SET obuild_platform_result=
470FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
471cd "%obuild_snovis_path%\%obuild_dir_bin%"
472IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
473FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
474cd "%obuild_pwd_snovis_0%"
475SET obuild_pwd_snovis_0=
476IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
477SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
478:end_if_platform_29
479SET obuild_platform_result=
480FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
481cd "%obuild_snovis_path%\%obuild_dir_bin%"
482IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
483FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
484cd "%obuild_pwd_snovis_0%"
485SET obuild_pwd_snovis_0=
486IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
487SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
488:end_if_platform_30
489SET obuild_platform_result=
490FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
491cd "%obuild_snovis_path%\%obuild_dir_bin%"
492IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
493FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
494cd "%obuild_pwd_snovis_0%"
495SET obuild_pwd_snovis_0=
496IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
497SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
498:end_if_platform_31
499SET obuild_platform_result=
500FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
501cd "%obuild_snovis_path%\%obuild_dir_bin%"
502IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
503FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
504cd "%obuild_pwd_snovis_0%"
505SET obuild_pwd_snovis_0=
506IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
507SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
508:end_if_platform_32
509SET obuild_platform_result=
510FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
511cd "%obuild_snovis_path%\%obuild_dir_bin%"
512IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
513FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
514cd "%obuild_pwd_snovis_0%"
515SET obuild_pwd_snovis_0=
516IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
517SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
518:end_if_platform_33
519SET obuild_platform_result=
520FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
521cd "%obuild_snovis_path%\%obuild_dir_bin%"
522IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
523FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
524cd "%obuild_pwd_snovis_0%"
525SET obuild_pwd_snovis_0=
526IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
527SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
528:end_if_platform_34
529SET obuild_platform_result=
530SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
531SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
532SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
533SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
534SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
535
536IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
537IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
538
539@IF %obuild_verbose% == yes @ECHO ON
540cd "%obuild_snovis_path%\%obuild_dir_bin%"
541%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_snovis_session\snovis_session.obj  /Tp"..\applications\snovis_session.cc" 1> cl_exe_error
542@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
543@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
544cd "%obuild_snovis_path%\obuild"
545
546@IF %obuild_verbose% == yes @ECHO OFF
547
548FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
549cd "%obuild_snovis_path%\%obuild_dir_bin%"
550IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
551FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
552cd "%obuild_pwd_snovis_0%"
553SET obuild_pwd_snovis_0=
554IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
555SET obuild_cxx_linker_command=c++
556:end_if_platform_41
557SET obuild_platform_result=
558FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
559cd "%obuild_snovis_path%\%obuild_dir_bin%"
560IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
561FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
562cd "%obuild_pwd_snovis_0%"
563SET obuild_pwd_snovis_0=
564IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
565SET obuild_cxx_linker_command=c++
566:end_if_platform_42
567SET obuild_platform_result=
568FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
569cd "%obuild_snovis_path%\%obuild_dir_bin%"
570IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
571FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
572cd "%obuild_pwd_snovis_0%"
573SET obuild_pwd_snovis_0=
574IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
575SET obuild_cxx_linker_command=cxx
576:end_if_platform_43
577SET obuild_platform_result=
578FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
579cd "%obuild_snovis_path%\%obuild_dir_bin%"
580IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
581FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
582cd "%obuild_pwd_snovis_0%"
583SET obuild_pwd_snovis_0=
584IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
585SET obuild_cxx_linker_command=link.exe
586:end_if_platform_44
587SET obuild_platform_result=
588IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
589
590FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
591cd "%obuild_snovis_path%\%obuild_dir_bin%"
592IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
593FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
594cd "%obuild_pwd_snovis_0%"
595SET obuild_pwd_snovis_0=
596IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
597SET obuild_cxx_linker_debug=-g
598:end_if_platform_45
599SET obuild_platform_result=
600FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
601cd "%obuild_snovis_path%\%obuild_dir_bin%"
602IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
603FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
604cd "%obuild_pwd_snovis_0%"
605SET obuild_pwd_snovis_0=
606IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
607SET obuild_cxx_linker_debug=-g
608:end_if_platform_46
609SET obuild_platform_result=
610FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
611cd "%obuild_snovis_path%\%obuild_dir_bin%"
612IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
613FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
614cd "%obuild_pwd_snovis_0%"
615SET obuild_pwd_snovis_0=
616IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
617SET obuild_cxx_linker_debug=-g
618:end_if_platform_47
619SET obuild_platform_result=
620FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
621cd "%obuild_snovis_path%\%obuild_dir_bin%"
622IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
623FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
624cd "%obuild_pwd_snovis_0%"
625SET obuild_pwd_snovis_0=
626IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
627SET obuild_cxx_linker_debug=/DEBUG
628:end_if_platform_48
629SET obuild_platform_result=
630
631FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
632cd "%obuild_snovis_path%\%obuild_dir_bin%"
633IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
634FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
635cd "%obuild_pwd_snovis_0%"
636SET obuild_pwd_snovis_0=
637IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
638SET obuild_cxx_linker_options=/nologo
639:end_if_platform_49
640SET obuild_platform_result=
641
642IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_50
643  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
644  GOTO end_if_db_build_app_snovis_session_sh_50
645:else_if_db_build_app_snovis_session_sh_50
646  SET obuild_cxx_linker_debug_local=
647:end_if_db_build_app_snovis_session_sh_50
648
649IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_51
650  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
651  GOTO end_if_opt_build_app_snovis_session_sh_51
652:else_if_opt_build_app_snovis_session_sh_51
653  SET obuild_cxx_linker_optimize_local=
654:end_if_opt_build_app_snovis_session_sh_51
655
656SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
657SET obuild_linked_libraries=%obuild_linked_libraries% -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
658SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep
659SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
660SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
661SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabCore.lib"
662FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
663cd "%obuild_snovis_path%\%obuild_dir_bin%"
664IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
665FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
666cd "%obuild_pwd_snovis_0%"
667SET obuild_pwd_snovis_0=
668IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
669SET 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
670:end_if_platform_58
671SET obuild_platform_result=
672FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
673cd "%obuild_snovis_path%\%obuild_dir_bin%"
674IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
675FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
676cd "%obuild_pwd_snovis_0%"
677SET obuild_pwd_snovis_0=
678IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
679SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
680:end_if_platform_59
681SET obuild_platform_result=
682SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
683SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
684SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
685SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
686SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
687SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
688SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
689SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
690SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
691SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
692SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
693FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
694cd "%obuild_snovis_path%\%obuild_dir_bin%"
695IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
696FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
697cd "%obuild_pwd_snovis_0%"
698SET obuild_pwd_snovis_0=
699IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
700SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
701:end_if_platform_71
702SET obuild_platform_result=
703FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
704cd "%obuild_snovis_path%\%obuild_dir_bin%"
705IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
706FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
707cd "%obuild_pwd_snovis_0%"
708SET obuild_pwd_snovis_0=
709IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72
710SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
711:end_if_platform_72
712SET obuild_platform_result=
713FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
714cd "%obuild_snovis_path%\%obuild_dir_bin%"
715IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
716FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
717cd "%obuild_pwd_snovis_0%"
718SET obuild_pwd_snovis_0=
719IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73
720SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
721:end_if_platform_73
722SET obuild_platform_result=
723FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
724cd "%obuild_snovis_path%\%obuild_dir_bin%"
725IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
726FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
727cd "%obuild_pwd_snovis_0%"
728SET obuild_pwd_snovis_0=
729IF NOT %obuild_platform_result% == yes GOTO end_if_platform_74
730SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
731:end_if_platform_74
732SET obuild_platform_result=
733FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
734cd "%obuild_snovis_path%\%obuild_dir_bin%"
735IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
736FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
737cd "%obuild_pwd_snovis_0%"
738SET obuild_pwd_snovis_0=
739IF NOT %obuild_platform_result% == yes GOTO end_if_platform_75
740SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
741:end_if_platform_75
742SET obuild_platform_result=
743FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
744cd "%obuild_snovis_path%\%obuild_dir_bin%"
745IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
746FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
747cd "%obuild_pwd_snovis_0%"
748SET obuild_pwd_snovis_0=
749IF NOT %obuild_platform_result% == yes GOTO end_if_platform_76
750SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
751:end_if_platform_76
752SET obuild_platform_result=
753
754FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
755cd "%obuild_snovis_path%\%obuild_dir_bin%"
756IF EXIST .\app_snovis_session\tmp_objs DEL .\app_snovis_session\tmp_objs
757FOR %%f IN (.\app_snovis_session\*.obj) DO ECHO %%f >> .\app_snovis_session\tmp_objs
758REM # Link snovis_session :
759IF EXIST .\snovis_session.exe DEL .\snovis_session.exe
760@IF %obuild_verbose% == yes @ECHO ON
761%obuild_cxx_linker_command% %obuild_cxx_linker_debug_local% %obuild_cxx_linker_optimize_local% %obuild_cxx_linker_options% /out:.\snovis_session.exe @.\app_snovis_session\tmp_objs %obuild_linked_libraries%
762@IF ERRORLEVEL 1 @GOTO obuild_return
763@IF %obuild_verbose% == yes @ECHO OFF
764
765cd "%obuild_pwd_snovis_0%"
766SET obuild_pwd_snovis_0=
767REM # Some cleanup :
768IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
769IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk"
770IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb"
771IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
772IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp"
773
774:obuild_return
775ENDLOCAL
776@ECHO ON
Note: See TracBrowser for help on using the repository browser.