source: snovis/trunk/obuild/DOS/build_lib_G4LabCore.bat @ 246

Last change on this file since 246 was 246, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 32.4 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_G4LabCore
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% 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 HDF5_home=/usr/local/HDF5/1.6.5
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 OSC_home=/usr/local/OpenScientist/v16r0
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% Darwin`) 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_8
141SET obuild_cxx_command=c++
142:end_if_platform_8
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% Linux`) 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_9
151SET obuild_cxx_command=c++
152:end_if_platform_9
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% OSF1`) 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_10
161SET obuild_cxx_command=cxx
162:end_if_platform_10
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% Windows_NT`) 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_11
171SET obuild_cxx_command=cl.exe
172:end_if_platform_11
173SET obuild_platform_result=
174IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
175
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% Darwin`) 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_12
183SET obuild_cxx_optimize=-O
184:end_if_platform_12
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% Linux`) 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_13
193SET obuild_cxx_optimize=-O
194:end_if_platform_13
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% OSF1`) 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_14
203SET obuild_cxx_optimize=-O
204:end_if_platform_14
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% Windows_NT`) 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_15
213SET obuild_cxx_optimize=/O2
214:end_if_platform_15
215SET obuild_platform_result=
216
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% Darwin`) 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_16
224SET obuild_cxx_debug=-g
225:end_if_platform_16
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% Linux`) 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_17
234SET obuild_cxx_debug=-g
235:end_if_platform_17
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% OSF1`) 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_18
244SET obuild_cxx_debug=-g
245:end_if_platform_18
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% Windows_NT`) 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_19
254SET obuild_cxx_debug=/ZI /Od
255:end_if_platform_19
256SET obuild_platform_result=
257
258FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
259cd "%obuild_snovis_path%\%obuild_dir_bin%"
260IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
261FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
262cd "%obuild_pwd_snovis_0%"
263SET obuild_pwd_snovis_0=
264IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
265SET obuild_cxx_options=-fPIC
266:end_if_platform_20
267SET obuild_platform_result=
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% Windows_NT`) 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_21
275SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
276:end_if_platform_21
277SET obuild_platform_result=
278
279IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_22
280  SET obuild_cxx_debug_local=%obuild_cxx_debug%
281  GOTO end_if_db_build_lib_G4LabCore_sh_22
282:else_if_db_build_lib_G4LabCore_sh_22
283  SET obuild_cxx_debug_local=
284:end_if_db_build_lib_G4LabCore_sh_22
285
286IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_23
287  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
288  GOTO end_if_opt_build_lib_G4LabCore_sh_23
289:else_if_opt_build_lib_G4LabCore_sh_23
290  SET obuild_cxx_optimize_local=
291:end_if_opt_build_lib_G4LabCore_sh_23
292
293
294FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
295cd "%obuild_snovis_path%\%obuild_dir_bin%"
296IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
297FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
298cd "%obuild_pwd_snovis_0%"
299SET obuild_pwd_snovis_0=
300IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
301SET obuild_cxx_macros=%obuild_cxx_macros% /DAPPLE_GL
302:end_if_platform_24
303SET obuild_platform_result=
304
305
306SET obuild_cxx_includes=/I"%obuild_snovis_path%\source"
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_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
310FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
311cd "%obuild_pwd_snovis_0%"
312SET obuild_pwd_snovis_0=
313IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
314SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
315:end_if_platform_26
316SET obuild_platform_result=
317FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
318cd "%obuild_snovis_path%\%obuild_dir_bin%"
319IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
320FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
321cd "%obuild_pwd_snovis_0%"
322SET obuild_pwd_snovis_0=
323IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
324SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
325:end_if_platform_27
326SET obuild_platform_result=
327FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
328cd "%obuild_snovis_path%\%obuild_dir_bin%"
329IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
330FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
331cd "%obuild_pwd_snovis_0%"
332SET obuild_pwd_snovis_0=
333IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
334SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp
335:end_if_platform_28
336SET obuild_platform_result=
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_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
340FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
341cd "%obuild_pwd_snovis_0%"
342SET obuild_pwd_snovis_0=
343IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
344SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include
345:end_if_platform_29
346SET obuild_platform_result=
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_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
350FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
351cd "%obuild_pwd_snovis_0%"
352SET obuild_pwd_snovis_0=
353IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
354SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab
355:end_if_platform_30
356SET obuild_platform_result=
357FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
358cd "%obuild_snovis_path%\%obuild_dir_bin%"
359IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
360FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
361cd "%obuild_pwd_snovis_0%"
362SET obuild_pwd_snovis_0=
363IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
364SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include
365:end_if_platform_31
366SET obuild_platform_result=
367FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
368cd "%obuild_snovis_path%\%obuild_dir_bin%"
369IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
370FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
371cd "%obuild_pwd_snovis_0%"
372SET obuild_pwd_snovis_0=
373IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
374SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
375:end_if_platform_32
376SET obuild_platform_result=
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_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
380FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
381cd "%obuild_pwd_snovis_0%"
382SET obuild_pwd_snovis_0=
383IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
384SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
385:end_if_platform_33
386SET obuild_platform_result=
387
388IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore"
389IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore"
390
391@IF %obuild_verbose% == yes @ECHO ON
392cd "%obuild_snovis_path%\%obuild_dir_bin%"
393%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Transform3D.obj  /Tp"..\source\G4Lab\cxx\Transform3D.cxx" 1> cl_exe_error
394@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
395@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
396cd "%obuild_snovis_path%\obuild"
397
398cd "%obuild_snovis_path%\%obuild_dir_bin%"
399%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Polyhedron.obj  /Tp"..\source\G4Lab\cxx\Polyhedron.cxx" 1> cl_exe_error
400@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
401@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
402cd "%obuild_snovis_path%\obuild"
403
404cd "%obuild_snovis_path%\%obuild_dir_bin%"
405%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\GeometryVisitor.obj  /Tp"..\source\G4Lab\cxx\GeometryVisitor.cxx" 1> cl_exe_error
406@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
407@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
408cd "%obuild_snovis_path%\obuild"
409
410cd "%obuild_snovis_path%\%obuild_dir_bin%"
411%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Tree.obj  /Tp"..\source\G4Lab\cxx\Tree.cxx" 1> cl_exe_error
412@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
413@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
414cd "%obuild_snovis_path%\obuild"
415
416cd "%obuild_snovis_path%\%obuild_dir_bin%"
417%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Trajectory.obj  /Tp"..\source\G4Lab\cxx\Trajectory.cxx" 1> cl_exe_error
418@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
419@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
420cd "%obuild_snovis_path%\obuild"
421
422cd "%obuild_snovis_path%\%obuild_dir_bin%"
423%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\State.obj  /Tp"..\source\G4Lab\cxx\State.cxx" 1> cl_exe_error
424@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
425@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
426cd "%obuild_snovis_path%\obuild"
427
428cd "%obuild_snovis_path%\%obuild_dir_bin%"
429%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\SteppingAction.obj  /Tp"..\source\G4Lab\cxx\SteppingAction.cxx" 1> cl_exe_error
430@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
431@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
432cd "%obuild_snovis_path%\obuild"
433
434cd "%obuild_snovis_path%\%obuild_dir_bin%"
435%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\TrackingAction.obj  /Tp"..\source\G4Lab\cxx\TrackingAction.cxx" 1> cl_exe_error
436@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
437@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
438cd "%obuild_snovis_path%\obuild"
439
440cd "%obuild_snovis_path%\%obuild_dir_bin%"
441%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\SoG4RunManager.obj  /Tp"..\source\G4Lab\cxx\SoG4RunManager.cxx" 1> cl_exe_error
442@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
443@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
444cd "%obuild_snovis_path%\obuild"
445
446cd "%obuild_snovis_path%\%obuild_dir_bin%"
447%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\SoVisitedVolume.obj  /Tp"..\source\G4Lab\cxx\SoVisitedVolume.cxx" 1> cl_exe_error
448@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
449@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
450cd "%obuild_snovis_path%\obuild"
451
452cd "%obuild_snovis_path%\%obuild_dir_bin%"
453%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\SoG4Trajectories.obj  /Tp"..\source\G4Lab\cxx\SoG4Trajectories.cxx" 1> cl_exe_error
454@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
455@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
456cd "%obuild_snovis_path%\obuild"
457
458cd "%obuild_snovis_path%\%obuild_dir_bin%"
459%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\PhysicalVolumeAccessor.obj  /Tp"..\source\G4Lab\cxx\PhysicalVolumeAccessor.cxx" 1> cl_exe_error
460@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
461@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
462cd "%obuild_snovis_path%\obuild"
463
464cd "%obuild_snovis_path%\%obuild_dir_bin%"
465%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\TrajectoryContainerAccessor.obj  /Tp"..\source\G4Lab\cxx\TrajectoryContainerAccessor.cxx" 1> cl_exe_error
466@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
467@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
468cd "%obuild_snovis_path%\obuild"
469
470cd "%obuild_snovis_path%\%obuild_dir_bin%"
471%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\TrajectoryAccessor.obj  /Tp"..\source\G4Lab\cxx\TrajectoryAccessor.cxx" 1> cl_exe_error
472@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
473@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
474cd "%obuild_snovis_path%\obuild"
475
476cd "%obuild_snovis_path%\%obuild_dir_bin%"
477%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\PhysicsTableAccessor.obj  /Tp"..\source\G4Lab\cxx\PhysicsTableAccessor.cxx" 1> cl_exe_error
478@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
479@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
480cd "%obuild_snovis_path%\obuild"
481
482cd "%obuild_snovis_path%\%obuild_dir_bin%"
483%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\HitsCollectionAccessor.obj  /Tp"..\source\G4Lab\cxx\HitsCollectionAccessor.cxx" 1> cl_exe_error
484@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
485@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
486cd "%obuild_snovis_path%\obuild"
487
488cd "%obuild_snovis_path%\%obuild_dir_bin%"
489%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\DigitsCollectionAccessor.obj  /Tp"..\source\G4Lab\cxx\DigitsCollectionAccessor.cxx" 1> cl_exe_error
490@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
491@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
492cd "%obuild_snovis_path%\obuild"
493
494cd "%obuild_snovis_path%\%obuild_dir_bin%"
495%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_G4LabCore\Manager.obj  /Tp"..\source\G4Lab\cxx\Manager.cxx" 1> cl_exe_error
496@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
497@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
498cd "%obuild_snovis_path%\obuild"
499
500@IF %obuild_verbose% == yes @ECHO OFF
501
502FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
503cd "%obuild_snovis_path%\%obuild_dir_bin%"
504IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
505FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
506cd "%obuild_pwd_snovis_0%"
507SET obuild_pwd_snovis_0=
508IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
509SET obuild_cxx_linker_command=c++
510:end_if_platform_52
511SET obuild_platform_result=
512FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
513cd "%obuild_snovis_path%\%obuild_dir_bin%"
514IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
515FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
516cd "%obuild_pwd_snovis_0%"
517SET obuild_pwd_snovis_0=
518IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
519SET obuild_cxx_linker_command=c++
520:end_if_platform_53
521SET obuild_platform_result=
522FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
523cd "%obuild_snovis_path%\%obuild_dir_bin%"
524IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
525FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
526cd "%obuild_pwd_snovis_0%"
527SET obuild_pwd_snovis_0=
528IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
529SET obuild_cxx_linker_command=cxx
530:end_if_platform_54
531SET obuild_platform_result=
532FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
533cd "%obuild_snovis_path%\%obuild_dir_bin%"
534IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
535FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
536cd "%obuild_pwd_snovis_0%"
537SET obuild_pwd_snovis_0=
538IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
539SET obuild_cxx_linker_command=link.exe
540:end_if_platform_55
541SET obuild_platform_result=
542IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
543
544FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
545cd "%obuild_snovis_path%\%obuild_dir_bin%"
546IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
547FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
548cd "%obuild_pwd_snovis_0%"
549SET obuild_pwd_snovis_0=
550IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
551SET obuild_cxx_linker_debug=-g
552:end_if_platform_56
553SET obuild_platform_result=
554FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
555cd "%obuild_snovis_path%\%obuild_dir_bin%"
556IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
557FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
558cd "%obuild_pwd_snovis_0%"
559SET obuild_pwd_snovis_0=
560IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
561SET obuild_cxx_linker_debug=-g
562:end_if_platform_57
563SET obuild_platform_result=
564FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
565cd "%obuild_snovis_path%\%obuild_dir_bin%"
566IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
567FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
568cd "%obuild_pwd_snovis_0%"
569SET obuild_pwd_snovis_0=
570IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
571SET obuild_cxx_linker_debug=-g
572:end_if_platform_58
573SET obuild_platform_result=
574FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
575cd "%obuild_snovis_path%\%obuild_dir_bin%"
576IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
577FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
578cd "%obuild_pwd_snovis_0%"
579SET obuild_pwd_snovis_0=
580IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
581SET obuild_cxx_linker_debug=/DEBUG
582:end_if_platform_59
583SET obuild_platform_result=
584
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% Windows_NT`) 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_60
592SET obuild_cxx_linker_options=/nologo
593:end_if_platform_60
594SET obuild_platform_result=
595
596IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_61
597  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
598  GOTO end_if_db_build_lib_G4LabCore_sh_61
599:else_if_db_build_lib_G4LabCore_sh_61
600  SET obuild_cxx_linker_debug_local=
601:end_if_db_build_lib_G4LabCore_sh_61
602
603IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_62
604  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
605  GOTO end_if_opt_build_lib_G4LabCore_sh_62
606:else_if_opt_build_lib_G4LabCore_sh_62
607  SET obuild_cxx_linker_optimize_local=
608:end_if_opt_build_lib_G4LabCore_sh_62
609
610FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
611cd "%obuild_snovis_path%\%obuild_dir_bin%"
612IF EXIST .\lib_G4LabCore\tmp_objs DEL .\lib_G4LabCore\tmp_objs
613FOR %%f IN (.\lib_G4LabCore\*.obj) DO ECHO %%f >> .\lib_G4LabCore\tmp_objs
614
615REM # Create the archive library G4LabCore :
616@IF %obuild_verbose% == yes @ECHO ON
617lib.exe /nologo /machine:ix86 /out:.\lib_G4LabCore\G4LabCore.arc @.\lib_G4LabCore\tmp_objs
618@IF ERRORLEVEL 1 @GOTO obuild_return
619@IF %obuild_verbose% == yes @ECHO OFF
620
621REM # Build the obuild_windef.exe utility program :
622cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL
623IF EXIST obuild_windef.obj DEL obuild_windef.obj
624
625REM # Building the .def file :
626@IF %obuild_verbose% == yes @ECHO ON
627dumpbin.exe /symbols /out:.\lib_G4LabCore\tmp .\lib_G4LabCore\G4LabCore.arc 1> dumpbin_exe_error .\lib_G4LabCore\G4LabCore.arc
628@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
629@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
630@IF %obuild_verbose% == yes @ECHO OFF
631.\obuild_windef.exe G4LabCore < .\lib_G4LabCore\tmp > .\lib_G4LabCore\G4LabCore.def
632REM # Building the linking library :
633REM # It produces a .exp file.
634@IF %obuild_verbose% == yes @ECHO ON
635lib.exe /nologo /machine:ix86 /out:.\G4LabCore.lib /def:.\lib_G4LabCore\G4LabCore.def 1> lib_exe_error
636@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
637@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
638@IF %obuild_verbose% == yes @ECHO OFF
639
640REM # Building the DLL :
641IF EXIST .\G4LabCore.dll DEL .\G4LabCore.dll
642@IF %obuild_verbose% == yes @ECHO ON
643link.exe /nologo /dll /out:.\G4LabCore.dll .\G4LabCore.exp .\lib_G4LabCore\G4LabCore.arc %obuild_linked_libraries%
644@IF %obuild_verbose% == yes @ECHO OFF
645
646cd "%obuild_pwd_snovis_0%"
647SET obuild_pwd_snovis_0=
648REM # Some cleanup :
649IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore\tmp_objs"
650IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.exp"
651
652:obuild_return
653ENDLOCAL
654@ECHO ON
Note: See TracBrowser for help on using the repository browser.