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

Last change on this file since 153 was 153, checked in by barrand, 15 years ago
  • Property svn:executable set to *
File size: 40.7 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 CLHEP_home=/usr/local/CLHEP/2.0.3.1
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 Geant4_home=/usr/local/geant4/8.2
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% Darwin`) 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_4
121SET obuild_cxx_command=c++
122:end_if_platform_4
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% Linux`) 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_5
131SET obuild_cxx_command=c++
132:end_if_platform_5
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% OSF1`) 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_6
141SET obuild_cxx_command=cxx
142:end_if_platform_6
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% Windows_NT`) 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_7
151SET obuild_cxx_command=cl.exe
152:end_if_platform_7
153SET obuild_platform_result=
154IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
155
156FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
157cd "%obuild_snovis_path%\%obuild_dir_bin%"
158IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
159FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
160cd "%obuild_pwd_snovis_0%"
161SET obuild_pwd_snovis_0=
162IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
163SET obuild_cxx_optimize=-O
164:end_if_platform_8
165SET obuild_platform_result=
166FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
167cd "%obuild_snovis_path%\%obuild_dir_bin%"
168IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
169FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
170cd "%obuild_pwd_snovis_0%"
171SET obuild_pwd_snovis_0=
172IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
173SET obuild_cxx_optimize=-O
174:end_if_platform_9
175SET obuild_platform_result=
176FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
177cd "%obuild_snovis_path%\%obuild_dir_bin%"
178IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
179FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
180cd "%obuild_pwd_snovis_0%"
181SET obuild_pwd_snovis_0=
182IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
183SET obuild_cxx_optimize=-O
184:end_if_platform_10
185SET obuild_platform_result=
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% Windows_NT`) 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_11
193SET obuild_cxx_optimize=/O2
194:end_if_platform_11
195SET obuild_platform_result=
196
197FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
198cd "%obuild_snovis_path%\%obuild_dir_bin%"
199IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
200FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
201cd "%obuild_pwd_snovis_0%"
202SET obuild_pwd_snovis_0=
203IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
204SET obuild_cxx_debug=-g
205:end_if_platform_12
206SET obuild_platform_result=
207FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
208cd "%obuild_snovis_path%\%obuild_dir_bin%"
209IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
210FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
211cd "%obuild_pwd_snovis_0%"
212SET obuild_pwd_snovis_0=
213IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
214SET obuild_cxx_debug=-g
215:end_if_platform_13
216SET obuild_platform_result=
217FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
218cd "%obuild_snovis_path%\%obuild_dir_bin%"
219IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
220FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
221cd "%obuild_pwd_snovis_0%"
222SET obuild_pwd_snovis_0=
223IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
224SET obuild_cxx_debug=-g
225:end_if_platform_14
226SET obuild_platform_result=
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% Windows_NT`) 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_15
234SET obuild_cxx_debug=/ZI /Od
235:end_if_platform_15
236SET obuild_platform_result=
237
238FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
239cd "%obuild_snovis_path%\%obuild_dir_bin%"
240IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
241FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
242cd "%obuild_pwd_snovis_0%"
243SET obuild_pwd_snovis_0=
244IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
245SET obuild_cxx_options=-fPIC
246:end_if_platform_16
247SET obuild_platform_result=
248FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
249cd "%obuild_snovis_path%\%obuild_dir_bin%"
250IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
251FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
252cd "%obuild_pwd_snovis_0%"
253SET obuild_pwd_snovis_0=
254IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
255SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
256:end_if_platform_17
257SET obuild_platform_result=
258
259IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_18
260  SET obuild_cxx_debug_local=%obuild_cxx_debug%
261  GOTO end_if_db_build_app_snovis_session_sh_18
262:else_if_db_build_app_snovis_session_sh_18
263  SET obuild_cxx_debug_local=
264:end_if_db_build_app_snovis_session_sh_18
265
266IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_19
267  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
268  GOTO end_if_opt_build_app_snovis_session_sh_19
269:else_if_opt_build_app_snovis_session_sh_19
270  SET obuild_cxx_optimize_local=
271:end_if_opt_build_app_snovis_session_sh_19
272
273
274IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
275IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
276  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
277  IF EXIST obuild_find.obj DEL obuild_find.obj
278)
279FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
280cd "%obuild_snovis_path%\%obuild_dir_bin%"
281IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
282FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
283cd "%obuild_pwd_snovis_0%"
284SET obuild_pwd_snovis_0=
285IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
286FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
287cd "%obuild_snovis_path%\%obuild_dir_bin%"
288IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
289FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
290cd "%obuild_pwd_snovis_0%"
291SET obuild_pwd_snovis_0=
292IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
293FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
294cd "%obuild_snovis_path%\%obuild_dir_bin%"
295IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
296FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
297cd "%obuild_pwd_snovis_0%"
298SET obuild_pwd_snovis_0=
299IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
300FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
301cd "%obuild_snovis_path%\%obuild_dir_bin%"
302IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
303FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
304cd "%obuild_pwd_snovis_0%"
305SET obuild_pwd_snovis_0=
306IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
307FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
308cd "%obuild_snovis_path%\%obuild_dir_bin%"
309IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
310FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
311cd "%obuild_pwd_snovis_0%"
312SET obuild_pwd_snovis_0=
313IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
314FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
315cd "%obuild_snovis_path%\%obuild_dir_bin%"
316IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
317FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
318cd "%obuild_pwd_snovis_0%"
319SET obuild_pwd_snovis_0=
320IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
321FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
322cd "%obuild_snovis_path%\%obuild_dir_bin%"
323IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
324FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
325cd "%obuild_pwd_snovis_0%"
326SET obuild_pwd_snovis_0=
327IF NOT DEFINED obuild_AIDA_path  ECHO Can't find AIDA package.  && GOTO obuild_return
328FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
329cd "%obuild_snovis_path%\%obuild_dir_bin%"
330IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
331FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
332cd "%obuild_pwd_snovis_0%"
333SET obuild_pwd_snovis_0=
334IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
335FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
336cd "%obuild_snovis_path%\%obuild_dir_bin%"
337IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
338FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
339cd "%obuild_pwd_snovis_0%"
340SET obuild_pwd_snovis_0=
341IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
342FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
343cd "%obuild_snovis_path%\%obuild_dir_bin%"
344IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
345FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Slash v1r*`) DO SET obuild_Slash_path=%%j
346cd "%obuild_pwd_snovis_0%"
347SET obuild_pwd_snovis_0=
348IF NOT DEFINED obuild_Slash_path  ECHO Can't find Slash package.  && GOTO obuild_return
349FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
350cd "%obuild_snovis_path%\%obuild_dir_bin%"
351IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
352FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
353cd "%obuild_pwd_snovis_0%"
354SET obuild_pwd_snovis_0=
355IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX package.  && GOTO obuild_return
356FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
357cd "%obuild_snovis_path%\%obuild_dir_bin%"
358IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
359FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
360cd "%obuild_pwd_snovis_0%"
361SET obuild_pwd_snovis_0=
362IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
363FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
364cd "%obuild_snovis_path%\%obuild_dir_bin%"
365IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
366FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
367cd "%obuild_pwd_snovis_0%"
368SET obuild_pwd_snovis_0=
369IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
370FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
371cd "%obuild_snovis_path%\%obuild_dir_bin%"
372IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
373FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
374cd "%obuild_pwd_snovis_0%"
375SET obuild_pwd_snovis_0=
376IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
377FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
378cd "%obuild_snovis_path%\%obuild_dir_bin%"
379IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
380FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
381cd "%obuild_pwd_snovis_0%"
382SET obuild_pwd_snovis_0=
383IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
384FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
385cd "%obuild_snovis_path%\%obuild_dir_bin%"
386IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
387FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
388cd "%obuild_pwd_snovis_0%"
389SET obuild_pwd_snovis_0=
390IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
391FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
392cd "%obuild_snovis_path%\%obuild_dir_bin%"
393IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
394FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
395cd "%obuild_pwd_snovis_0%"
396SET obuild_pwd_snovis_0=
397IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
398FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
399cd "%obuild_snovis_path%\%obuild_dir_bin%"
400IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
401FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
402cd "%obuild_pwd_snovis_0%"
403SET obuild_pwd_snovis_0=
404IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
405FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
406cd "%obuild_snovis_path%\%obuild_dir_bin%"
407IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
408FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
409cd "%obuild_pwd_snovis_0%"
410SET obuild_pwd_snovis_0=
411IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
412FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
413cd "%obuild_snovis_path%\%obuild_dir_bin%"
414IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
415FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
416cd "%obuild_pwd_snovis_0%"
417SET obuild_pwd_snovis_0=
418IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
419FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
420cd "%obuild_snovis_path%\%obuild_dir_bin%"
421IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
422FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  expat v1r*`) DO SET obuild_expat_path=%%j
423cd "%obuild_pwd_snovis_0%"
424SET obuild_pwd_snovis_0=
425IF NOT DEFINED obuild_expat_path  ECHO Can't find expat package.  && GOTO obuild_return
426FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
427cd "%obuild_snovis_path%\%obuild_dir_bin%"
428IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
429FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
430cd "%obuild_pwd_snovis_0%"
431SET obuild_pwd_snovis_0=
432IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
433FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
434cd "%obuild_snovis_path%\%obuild_dir_bin%"
435IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
436FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
437cd "%obuild_pwd_snovis_0%"
438SET obuild_pwd_snovis_0=
439IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
440FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
441cd "%obuild_snovis_path%\%obuild_dir_bin%"
442IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
443FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
444cd "%obuild_pwd_snovis_0%"
445SET obuild_pwd_snovis_0=
446IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
447FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
448cd "%obuild_snovis_path%\%obuild_dir_bin%"
449IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
450FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
451cd "%obuild_pwd_snovis_0%"
452SET obuild_pwd_snovis_0=
453IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
454FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
455cd "%obuild_snovis_path%\%obuild_dir_bin%"
456IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
457FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
458cd "%obuild_pwd_snovis_0%"
459SET obuild_pwd_snovis_0=
460IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
461FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
462cd "%obuild_snovis_path%\%obuild_dir_bin%"
463IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
464FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  jpeg v1r*`) DO SET obuild_jpeg_path=%%j
465cd "%obuild_pwd_snovis_0%"
466SET obuild_pwd_snovis_0=
467IF NOT DEFINED obuild_jpeg_path  ECHO Can't find jpeg package.  && GOTO obuild_return
468FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
469cd "%obuild_snovis_path%\%obuild_dir_bin%"
470IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
471FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
472cd "%obuild_pwd_snovis_0%"
473SET obuild_pwd_snovis_0=
474IF NOT DEFINED obuild_dvi2bitmap_path  ECHO Can't find dvi2bitmap package.  && GOTO obuild_return
475FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
476cd "%obuild_snovis_path%\%obuild_dir_bin%"
477IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
478FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
479cd "%obuild_pwd_snovis_0%"
480SET obuild_pwd_snovis_0=
481IF NOT DEFINED obuild_freetype2_path  ECHO Can't find freetype2 package.  && GOTO obuild_return
482FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
483cd "%obuild_snovis_path%\%obuild_dir_bin%"
484IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
485FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
486cd "%obuild_pwd_snovis_0%"
487SET obuild_pwd_snovis_0=
488IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
489
490SET obuild_cxx_includes=/I"%obuild_snova_path%"
491SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
492SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
493SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
494SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
495FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
496cd "%obuild_snovis_path%\%obuild_dir_bin%"
497IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
498FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
499cd "%obuild_pwd_snovis_0%"
500SET obuild_pwd_snovis_0=
501IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
502SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
503:end_if_platform_25
504SET obuild_platform_result=
505FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
506cd "%obuild_snovis_path%\%obuild_dir_bin%"
507IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
508FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
509cd "%obuild_pwd_snovis_0%"
510SET obuild_pwd_snovis_0=
511IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
512SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
513:end_if_platform_26
514SET obuild_platform_result=
515SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
516SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
517SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
518SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
519SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
520
521IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
522IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
523
524@IF %obuild_verbose% == yes @ECHO ON
525cd "%obuild_snovis_path%\%obuild_dir_bin%"
526%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
527@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
528@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
529cd "%obuild_snovis_path%\obuild"
530
531@IF %obuild_verbose% == yes @ECHO OFF
532
533FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
534cd "%obuild_snovis_path%\%obuild_dir_bin%"
535IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
536FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
537cd "%obuild_pwd_snovis_0%"
538SET obuild_pwd_snovis_0=
539IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
540SET obuild_cxx_linker_command=c++
541:end_if_platform_33
542SET obuild_platform_result=
543FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
544cd "%obuild_snovis_path%\%obuild_dir_bin%"
545IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
546FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
547cd "%obuild_pwd_snovis_0%"
548SET obuild_pwd_snovis_0=
549IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
550SET obuild_cxx_linker_command=c++
551:end_if_platform_34
552SET obuild_platform_result=
553FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
554cd "%obuild_snovis_path%\%obuild_dir_bin%"
555IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
556FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
557cd "%obuild_pwd_snovis_0%"
558SET obuild_pwd_snovis_0=
559IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
560SET obuild_cxx_linker_command=cxx
561:end_if_platform_35
562SET obuild_platform_result=
563FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
564cd "%obuild_snovis_path%\%obuild_dir_bin%"
565IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
566FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
567cd "%obuild_pwd_snovis_0%"
568SET obuild_pwd_snovis_0=
569IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
570SET obuild_cxx_linker_command=link.exe
571:end_if_platform_36
572SET obuild_platform_result=
573IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
574
575FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
576cd "%obuild_snovis_path%\%obuild_dir_bin%"
577IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
578FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
579cd "%obuild_pwd_snovis_0%"
580SET obuild_pwd_snovis_0=
581IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
582SET obuild_cxx_linker_debug=-g
583:end_if_platform_37
584SET obuild_platform_result=
585FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
586cd "%obuild_snovis_path%\%obuild_dir_bin%"
587IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
588FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
589cd "%obuild_pwd_snovis_0%"
590SET obuild_pwd_snovis_0=
591IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
592SET obuild_cxx_linker_debug=-g
593:end_if_platform_38
594SET obuild_platform_result=
595FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
596cd "%obuild_snovis_path%\%obuild_dir_bin%"
597IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
598FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
599cd "%obuild_pwd_snovis_0%"
600SET obuild_pwd_snovis_0=
601IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
602SET obuild_cxx_linker_debug=-g
603:end_if_platform_39
604SET obuild_platform_result=
605FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
606cd "%obuild_snovis_path%\%obuild_dir_bin%"
607IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
608FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
609cd "%obuild_pwd_snovis_0%"
610SET obuild_pwd_snovis_0=
611IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
612SET obuild_cxx_linker_debug=/DEBUG
613:end_if_platform_40
614SET obuild_platform_result=
615
616FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
617cd "%obuild_snovis_path%\%obuild_dir_bin%"
618IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
619FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
620cd "%obuild_pwd_snovis_0%"
621SET obuild_pwd_snovis_0=
622IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
623SET obuild_cxx_linker_options=/nologo
624:end_if_platform_41
625SET obuild_platform_result=
626
627IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_42
628  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
629  GOTO end_if_db_build_app_snovis_session_sh_42
630:else_if_db_build_app_snovis_session_sh_42
631  SET obuild_cxx_linker_debug_local=
632:end_if_db_build_app_snovis_session_sh_42
633
634IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_43
635  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
636  GOTO end_if_opt_build_app_snovis_session_sh_43
637:else_if_opt_build_app_snovis_session_sh_43
638  SET obuild_cxx_linker_optimize_local=
639:end_if_opt_build_app_snovis_session_sh_43
640
641SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
642SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snova.lib"
643SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snvertex.lib"
644SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\sngeom.lib"
645SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib"
646SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib"
647SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
648SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
649SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabCore.lib"
650FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
651cd "%obuild_snovis_path%\%obuild_dir_bin%"
652IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
653FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
654cd "%obuild_pwd_snovis_0%"
655SET obuild_pwd_snovis_0=
656IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
657SET 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
658:end_if_platform_53
659SET obuild_platform_result=
660FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
661cd "%obuild_snovis_path%\%obuild_dir_bin%"
662IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
663FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
664cd "%obuild_pwd_snovis_0%"
665SET obuild_pwd_snovis_0=
666IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
667SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
668:end_if_platform_54
669SET obuild_platform_result=
670SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
671SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
672SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
673SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
674SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
675SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
676SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
677SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
678SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
679SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
680SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
681FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
682cd "%obuild_snovis_path%\%obuild_dir_bin%"
683IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
684FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
685cd "%obuild_pwd_snovis_0%"
686SET obuild_pwd_snovis_0=
687IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66
688SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
689:end_if_platform_66
690SET obuild_platform_result=
691FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
692cd "%obuild_snovis_path%\%obuild_dir_bin%"
693IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
694FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
695cd "%obuild_pwd_snovis_0%"
696SET obuild_pwd_snovis_0=
697IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67
698SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
699:end_if_platform_67
700SET obuild_platform_result=
701FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
702cd "%obuild_snovis_path%\%obuild_dir_bin%"
703IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
704FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
705cd "%obuild_pwd_snovis_0%"
706SET obuild_pwd_snovis_0=
707IF NOT %obuild_platform_result% == yes GOTO end_if_platform_68
708SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
709:end_if_platform_68
710SET obuild_platform_result=
711FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
712cd "%obuild_snovis_path%\%obuild_dir_bin%"
713IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
714FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
715cd "%obuild_pwd_snovis_0%"
716SET obuild_pwd_snovis_0=
717IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69
718SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
719:end_if_platform_69
720SET obuild_platform_result=
721FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
722cd "%obuild_snovis_path%\%obuild_dir_bin%"
723IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
724FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
725cd "%obuild_pwd_snovis_0%"
726SET obuild_pwd_snovis_0=
727IF NOT %obuild_platform_result% == yes GOTO end_if_platform_70
728SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
729:end_if_platform_70
730SET obuild_platform_result=
731FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
732cd "%obuild_snovis_path%\%obuild_dir_bin%"
733IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
734FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
735cd "%obuild_pwd_snovis_0%"
736SET obuild_pwd_snovis_0=
737IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
738SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
739:end_if_platform_71
740SET obuild_platform_result=
741
742FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
743cd "%obuild_snovis_path%\%obuild_dir_bin%"
744IF EXIST .\app_snovis_session\tmp_objs DEL .\app_snovis_session\tmp_objs
745FOR %%f IN (.\app_snovis_session\*.obj) DO ECHO %%f >> .\app_snovis_session\tmp_objs
746REM # Link snovis_session :
747IF EXIST .\snovis_session.exe DEL .\snovis_session.exe
748@IF %obuild_verbose% == yes @ECHO ON
749%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%
750@IF ERRORLEVEL 1 @GOTO obuild_return
751@IF %obuild_verbose% == yes @ECHO OFF
752
753cd "%obuild_pwd_snovis_0%"
754SET obuild_pwd_snovis_0=
755REM # Some cleanup :
756IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
757IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk"
758IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb"
759IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
760IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp"
761
762:obuild_return
763ENDLOCAL
764@ECHO ON
Note: See TracBrowser for help on using the repository browser.