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

Last change on this file since 134 was 134, checked in by barrand, 16 years ago
  • Property svn:executable set to *
File size: 39.9 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% Darwin`) 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 snova_platform=Darwin
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% UNIX`) 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_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
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% UNIX`) 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 CLHEP_home=/usr/local/CLHEP/2.0.3.1
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 Geant4_home=/usr/local/geant4/8.2
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% Darwin`) 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_10
151SET obuild_cxx_command=c++
152:end_if_platform_10
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% Linux`) 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_11
161SET obuild_cxx_command=c++
162:end_if_platform_11
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% OSF1`) 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_12
171SET obuild_cxx_command=cxx
172:end_if_platform_12
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% Windows_NT`) 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_13
181SET obuild_cxx_command=cl.exe
182:end_if_platform_13
183SET obuild_platform_result=
184IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
185
186FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
187cd "%obuild_snovis_path%\%obuild_dir_bin%"
188IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
189FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
190cd "%obuild_pwd_snovis_0%"
191SET obuild_pwd_snovis_0=
192IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
193SET obuild_cxx_optimize=-O
194:end_if_platform_14
195SET obuild_platform_result=
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% Linux`) 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_15
203SET obuild_cxx_optimize=-O
204:end_if_platform_15
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% OSF1`) 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_16
213SET obuild_cxx_optimize=-O
214:end_if_platform_16
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% Windows_NT`) 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_17
223SET obuild_cxx_optimize=/O2
224:end_if_platform_17
225SET obuild_platform_result=
226
227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
228cd "%obuild_snovis_path%\%obuild_dir_bin%"
229IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
230FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
231cd "%obuild_pwd_snovis_0%"
232SET obuild_pwd_snovis_0=
233IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
234SET obuild_cxx_debug=-g
235:end_if_platform_18
236SET obuild_platform_result=
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% Linux`) 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_19
244SET obuild_cxx_debug=-g
245:end_if_platform_19
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% OSF1`) 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_20
254SET obuild_cxx_debug=-g
255:end_if_platform_20
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% Windows_NT`) 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_21
264SET obuild_cxx_debug=/ZI /Od
265:end_if_platform_21
266SET obuild_platform_result=
267
268FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
269cd "%obuild_snovis_path%\%obuild_dir_bin%"
270IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
271FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
272cd "%obuild_pwd_snovis_0%"
273SET obuild_pwd_snovis_0=
274IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
275SET obuild_cxx_options=-fPIC
276:end_if_platform_22
277SET obuild_platform_result=
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% Windows_NT`) 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_23
285SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
286:end_if_platform_23
287SET obuild_platform_result=
288
289IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_24
290  SET obuild_cxx_debug_local=%obuild_cxx_debug%
291  GOTO end_if_db_build_app_snovis_session_sh_24
292:else_if_db_build_app_snovis_session_sh_24
293  SET obuild_cxx_debug_local=
294:end_if_db_build_app_snovis_session_sh_24
295
296IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_25
297  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
298  GOTO end_if_opt_build_app_snovis_session_sh_25
299:else_if_opt_build_app_snovis_session_sh_25
300  SET obuild_cxx_optimize_local=
301:end_if_opt_build_app_snovis_session_sh_25
302
303
304IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
305IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
306  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
307  IF EXIST obuild_find.obj DEL obuild_find.obj
308)
309FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
310cd "%obuild_snovis_path%\%obuild_dir_bin%"
311IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
312FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
313cd "%obuild_pwd_snovis_0%"
314SET obuild_pwd_snovis_0=
315IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
316FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
317cd "%obuild_snovis_path%\%obuild_dir_bin%"
318IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
319FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
320cd "%obuild_pwd_snovis_0%"
321SET obuild_pwd_snovis_0=
322IF NOT DEFINED obuild_AIDA_path  ECHO Can't find AIDA package.  && GOTO obuild_return
323FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
324cd "%obuild_snovis_path%\%obuild_dir_bin%"
325IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
326FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
327cd "%obuild_pwd_snovis_0%"
328SET obuild_pwd_snovis_0=
329IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
330FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
331cd "%obuild_snovis_path%\%obuild_dir_bin%"
332IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
333FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
334cd "%obuild_pwd_snovis_0%"
335SET obuild_pwd_snovis_0=
336IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
337FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
338cd "%obuild_snovis_path%\%obuild_dir_bin%"
339IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
340FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Slash v1r*`) DO SET obuild_Slash_path=%%j
341cd "%obuild_pwd_snovis_0%"
342SET obuild_pwd_snovis_0=
343IF NOT DEFINED obuild_Slash_path  ECHO Can't find Slash package.  && GOTO obuild_return
344FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
345cd "%obuild_snovis_path%\%obuild_dir_bin%"
346IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
347FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
348cd "%obuild_pwd_snovis_0%"
349SET obuild_pwd_snovis_0=
350IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX package.  && GOTO obuild_return
351FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
352cd "%obuild_snovis_path%\%obuild_dir_bin%"
353IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
354FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
355cd "%obuild_pwd_snovis_0%"
356SET obuild_pwd_snovis_0=
357IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
358FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
359cd "%obuild_snovis_path%\%obuild_dir_bin%"
360IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
361FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
362cd "%obuild_pwd_snovis_0%"
363SET obuild_pwd_snovis_0=
364IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
365FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
366cd "%obuild_snovis_path%\%obuild_dir_bin%"
367IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
368FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
369cd "%obuild_pwd_snovis_0%"
370SET obuild_pwd_snovis_0=
371IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
372FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
373cd "%obuild_snovis_path%\%obuild_dir_bin%"
374IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
375FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
376cd "%obuild_pwd_snovis_0%"
377SET obuild_pwd_snovis_0=
378IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
379FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
380cd "%obuild_snovis_path%\%obuild_dir_bin%"
381IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
382FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  expat v1r*`) DO SET obuild_expat_path=%%j
383cd "%obuild_pwd_snovis_0%"
384SET obuild_pwd_snovis_0=
385IF NOT DEFINED obuild_expat_path  ECHO Can't find expat package.  && GOTO obuild_return
386FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
387cd "%obuild_snovis_path%\%obuild_dir_bin%"
388IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
389FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
390cd "%obuild_pwd_snovis_0%"
391SET obuild_pwd_snovis_0=
392IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
393FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
394cd "%obuild_snovis_path%\%obuild_dir_bin%"
395IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
396FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
397cd "%obuild_pwd_snovis_0%"
398SET obuild_pwd_snovis_0=
399IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
400FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
401cd "%obuild_snovis_path%\%obuild_dir_bin%"
402IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
403FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
404cd "%obuild_pwd_snovis_0%"
405SET obuild_pwd_snovis_0=
406IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
407FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
408cd "%obuild_snovis_path%\%obuild_dir_bin%"
409IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
410FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
411cd "%obuild_pwd_snovis_0%"
412SET obuild_pwd_snovis_0=
413IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
414FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
415cd "%obuild_snovis_path%\%obuild_dir_bin%"
416IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
417FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
418cd "%obuild_pwd_snovis_0%"
419SET obuild_pwd_snovis_0=
420IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
421FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
422cd "%obuild_snovis_path%\%obuild_dir_bin%"
423IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
424FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  jpeg v1r*`) DO SET obuild_jpeg_path=%%j
425cd "%obuild_pwd_snovis_0%"
426SET obuild_pwd_snovis_0=
427IF NOT DEFINED obuild_jpeg_path  ECHO Can't find jpeg package.  && GOTO obuild_return
428FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
429cd "%obuild_snovis_path%\%obuild_dir_bin%"
430IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
431FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
432cd "%obuild_pwd_snovis_0%"
433SET obuild_pwd_snovis_0=
434IF NOT DEFINED obuild_dvi2bitmap_path  ECHO Can't find dvi2bitmap package.  && GOTO obuild_return
435FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
436cd "%obuild_snovis_path%\%obuild_dir_bin%"
437IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
438FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
439cd "%obuild_pwd_snovis_0%"
440SET obuild_pwd_snovis_0=
441IF NOT DEFINED obuild_freetype2_path  ECHO Can't find freetype2 package.  && GOTO obuild_return
442FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
443cd "%obuild_snovis_path%\%obuild_dir_bin%"
444IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
445FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
446cd "%obuild_pwd_snovis_0%"
447SET obuild_pwd_snovis_0=
448IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
449
450FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
451cd "%obuild_snovis_path%\%obuild_dir_bin%"
452IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
453FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
454cd "%obuild_pwd_snovis_0%"
455SET obuild_pwd_snovis_0=
456IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
457SET obuild_cxx_includes=-I${snova_home}
458:end_if_platform_26
459SET obuild_platform_result=
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_27
467SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
468:end_if_platform_27
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_28
477SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
478:end_if_platform_28
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_29
487SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
488:end_if_platform_29
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_30
497SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
498:end_if_platform_30
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_31
507SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
508:end_if_platform_31
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_32
517SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
518:end_if_platform_32
519SET obuild_platform_result=
520SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
521SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
522SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
523SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
524SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
525
526IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
527IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
528
529@IF %obuild_verbose% == yes @ECHO ON
530cd "%obuild_snovis_path%\%obuild_dir_bin%"
531%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
532@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
533@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
534cd "%obuild_snovis_path%\obuild"
535
536@IF %obuild_verbose% == yes @ECHO OFF
537
538FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
539cd "%obuild_snovis_path%\%obuild_dir_bin%"
540IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
541FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
542cd "%obuild_pwd_snovis_0%"
543SET obuild_pwd_snovis_0=
544IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
545SET obuild_cxx_linker_command=c++
546:end_if_platform_39
547SET obuild_platform_result=
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% Linux`) 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_40
555SET obuild_cxx_linker_command=c++
556:end_if_platform_40
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% OSF1`) 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_41
565SET obuild_cxx_linker_command=cxx
566:end_if_platform_41
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% Windows_NT`) 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_42
575SET obuild_cxx_linker_command=link.exe
576:end_if_platform_42
577SET obuild_platform_result=
578IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
579
580FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
581cd "%obuild_snovis_path%\%obuild_dir_bin%"
582IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
583FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
584cd "%obuild_pwd_snovis_0%"
585SET obuild_pwd_snovis_0=
586IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
587SET obuild_cxx_linker_debug=-g
588:end_if_platform_43
589SET obuild_platform_result=
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% Linux`) 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_44
597SET obuild_cxx_linker_debug=-g
598:end_if_platform_44
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% OSF1`) 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_45
607SET obuild_cxx_linker_debug=-g
608:end_if_platform_45
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% Windows_NT`) 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_46
617SET obuild_cxx_linker_debug=/DEBUG
618:end_if_platform_46
619SET obuild_platform_result=
620
621FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
622cd "%obuild_snovis_path%\%obuild_dir_bin%"
623IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
624FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
625cd "%obuild_pwd_snovis_0%"
626SET obuild_pwd_snovis_0=
627IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
628SET obuild_cxx_linker_options=/nologo
629:end_if_platform_47
630SET obuild_platform_result=
631
632IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_48
633  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
634  GOTO end_if_db_build_app_snovis_session_sh_48
635:else_if_db_build_app_snovis_session_sh_48
636  SET obuild_cxx_linker_debug_local=
637:end_if_db_build_app_snovis_session_sh_48
638
639IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_49
640  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
641  GOTO end_if_opt_build_app_snovis_session_sh_49
642:else_if_opt_build_app_snovis_session_sh_49
643  SET obuild_cxx_linker_optimize_local=
644:end_if_opt_build_app_snovis_session_sh_49
645
646SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
647SET obuild_linked_libraries=%obuild_linked_libraries% -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
648SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep
649SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
650SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
651SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabCore.lib"
652FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
653cd "%obuild_snovis_path%\%obuild_dir_bin%"
654IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
655FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
656cd "%obuild_pwd_snovis_0%"
657SET obuild_pwd_snovis_0=
658IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
659SET 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
660:end_if_platform_56
661SET obuild_platform_result=
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_57
669SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
670:end_if_platform_57
671SET obuild_platform_result=
672SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
673SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
674SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
675SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
676SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
677SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
678SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
679SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
680SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
681SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
682SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
683FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
684cd "%obuild_snovis_path%\%obuild_dir_bin%"
685IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
686FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
687cd "%obuild_pwd_snovis_0%"
688SET obuild_pwd_snovis_0=
689IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69
690SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
691:end_if_platform_69
692SET obuild_platform_result=
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_70
700SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
701:end_if_platform_70
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% Linux`) 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_71
710SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
711:end_if_platform_71
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% Windows_NT`) 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_72
720SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
721:end_if_platform_72
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% OSF1`) 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_73
730SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
731:end_if_platform_73
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% UNIX`) 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_74
740SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
741:end_if_platform_74
742SET obuild_platform_result=
743
744FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
745cd "%obuild_snovis_path%\%obuild_dir_bin%"
746IF EXIST .\app_snovis_session\tmp_objs DEL .\app_snovis_session\tmp_objs
747FOR %%f IN (.\app_snovis_session\*.obj) DO ECHO %%f >> .\app_snovis_session\tmp_objs
748REM # Link snovis_session :
749IF EXIST .\snovis_session.exe DEL .\snovis_session.exe
750@IF %obuild_verbose% == yes @ECHO ON
751%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%
752@IF ERRORLEVEL 1 @GOTO obuild_return
753@IF %obuild_verbose% == yes @ECHO OFF
754
755cd "%obuild_pwd_snovis_0%"
756SET obuild_pwd_snovis_0=
757REM # Some cleanup :
758IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
759IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk"
760IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb"
761IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
762IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp"
763
764:obuild_return
765ENDLOCAL
766@ECHO ON
Note: See TracBrowser for help on using the repository browser.