source: snovis/trunk/obuild/DOS/build_dll_snovis.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: 31.1 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
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_dll_snovis_sh_24
290  SET obuild_cxx_debug_local=%obuild_cxx_debug%
291  GOTO end_if_db_build_dll_snovis_sh_24
292:else_if_db_build_dll_snovis_sh_24
293  SET obuild_cxx_debug_local=
294:end_if_db_build_dll_snovis_sh_24
295
296IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_25
297  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
298  GOTO end_if_opt_build_dll_snovis_sh_25
299:else_if_opt_build_dll_snovis_sh_25
300  SET obuild_cxx_optimize_local=
301:end_if_opt_build_dll_snovis_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  Lib v8r*`) DO SET obuild_Lib_path=%%j
313cd "%obuild_pwd_snovis_0%"
314SET obuild_pwd_snovis_0=
315IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib 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  Slash v1r*`) DO SET obuild_Slash_path=%%j
320cd "%obuild_pwd_snovis_0%"
321SET obuild_pwd_snovis_0=
322IF NOT DEFINED obuild_Slash_path  ECHO Can't find Slash 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  AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
327cd "%obuild_pwd_snovis_0%"
328SET obuild_pwd_snovis_0=
329IF NOT DEFINED obuild_AIDA_path  ECHO Can't find AIDA 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  OnX v17r*`) DO SET obuild_OnX_path=%%j
334cd "%obuild_pwd_snovis_0%"
335SET obuild_pwd_snovis_0=
336IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX 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  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
341cd "%obuild_pwd_snovis_0%"
342SET obuild_pwd_snovis_0=
343IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab 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  BatchLab v1r*`) DO SET obuild_BatchLab_path=%%j
348cd "%obuild_pwd_snovis_0%"
349SET obuild_pwd_snovis_0=
350IF NOT DEFINED obuild_BatchLab_path  ECHO Can't find BatchLab 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  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
355cd "%obuild_pwd_snovis_0%"
356SET obuild_pwd_snovis_0=
357IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis 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  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
362cd "%obuild_pwd_snovis_0%"
363SET obuild_pwd_snovis_0=
364IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL 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  Lib v8r*`) DO SET obuild_Lib_path=%%j
369cd "%obuild_pwd_snovis_0%"
370SET obuild_pwd_snovis_0=
371IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib 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  expat v1r*`) DO SET obuild_expat_path=%%j
376cd "%obuild_pwd_snovis_0%"
377SET obuild_pwd_snovis_0=
378IF NOT DEFINED obuild_expat_path  ECHO Can't find expat 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  Lib v8r*`) DO SET obuild_Lib_path=%%j
383cd "%obuild_pwd_snovis_0%"
384SET obuild_pwd_snovis_0=
385IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib 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  zlib v1r*`) DO SET obuild_zlib_path=%%j
390cd "%obuild_pwd_snovis_0%"
391SET obuild_pwd_snovis_0=
392IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib 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  Lib v8r*`) DO SET obuild_Lib_path=%%j
397cd "%obuild_pwd_snovis_0%"
398SET obuild_pwd_snovis_0=
399IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib 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  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
404cd "%obuild_pwd_snovis_0%"
405SET obuild_pwd_snovis_0=
406IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis 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  jpeg v1r*`) DO SET obuild_jpeg_path=%%j
418cd "%obuild_pwd_snovis_0%"
419SET obuild_pwd_snovis_0=
420IF NOT DEFINED obuild_jpeg_path  ECHO Can't find jpeg 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  dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
425cd "%obuild_pwd_snovis_0%"
426SET obuild_pwd_snovis_0=
427IF NOT DEFINED obuild_dvi2bitmap_path  ECHO Can't find dvi2bitmap 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  freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
432cd "%obuild_pwd_snovis_0%"
433SET obuild_pwd_snovis_0=
434IF NOT DEFINED obuild_freetype2_path  ECHO Can't find freetype2 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  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
439cd "%obuild_pwd_snovis_0%"
440SET obuild_pwd_snovis_0=
441IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
442
443SET obuild_cxx_includes=/I"%obuild_snovis_path%"
444SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
445SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
446SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
447SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_OnX_path%\include"
448SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
449SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_BatchLab_path%"
450SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HEPVis_path%\include"
451SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_CoinGL_path%\include"
452FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
453cd "%obuild_snovis_path%\%obuild_dir_bin%"
454IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
455FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
456cd "%obuild_pwd_snovis_0%"
457SET obuild_pwd_snovis_0=
458IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
459SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
460:end_if_platform_35
461SET obuild_platform_result=
462FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
463cd "%obuild_snovis_path%\%obuild_dir_bin%"
464IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
465FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
466cd "%obuild_pwd_snovis_0%"
467SET obuild_pwd_snovis_0=
468IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
469SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
470:end_if_platform_36
471SET obuild_platform_result=
472
473IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis"
474IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis"
475
476@IF %obuild_verbose% == yes @ECHO ON
477cd "%obuild_snovis_path%\%obuild_dir_bin%"
478%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Callbacks.obj  /Tp"..\source\Callbacks.cxx" 1> cl_exe_error
479@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
480@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
481cd "%obuild_snovis_path%\obuild"
482
483cd "%obuild_snovis_path%\%obuild_dir_bin%"
484%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\InventorCallbacks.obj  /Tp"..\source\InventorCallbacks.cxx" 1> cl_exe_error
485@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
486@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
487cd "%obuild_snovis_path%\obuild"
488
489cd "%obuild_snovis_path%\%obuild_dir_bin%"
490%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Layouts.obj  /Tp"..\source\Layouts.cxx" 1> cl_exe_error
491@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
492@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
493cd "%obuild_snovis_path%\obuild"
494
495@IF %obuild_verbose% == yes @ECHO OFF
496
497SET obuild_linked_libraries="%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
498SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
499SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
500SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
501SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
502SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
503SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
504SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
505SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
506SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
507SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
508FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
509cd "%obuild_snovis_path%\%obuild_dir_bin%"
510IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
511FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
512cd "%obuild_pwd_snovis_0%"
513SET obuild_pwd_snovis_0=
514IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
515SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
516:end_if_platform_51
517SET obuild_platform_result=
518FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
519cd "%obuild_snovis_path%\%obuild_dir_bin%"
520IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
521FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
522cd "%obuild_pwd_snovis_0%"
523SET obuild_pwd_snovis_0=
524IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
525SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
526:end_if_platform_52
527SET obuild_platform_result=
528FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
529cd "%obuild_snovis_path%\%obuild_dir_bin%"
530IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
531FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
532cd "%obuild_pwd_snovis_0%"
533SET obuild_pwd_snovis_0=
534IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
535SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
536:end_if_platform_53
537SET obuild_platform_result=
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% Windows_NT`) 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_54
545SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
546:end_if_platform_54
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% OSF1`) 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_55
555SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
556:end_if_platform_55
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% UNIX`) 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_56
565SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
566:end_if_platform_56
567SET obuild_platform_result=
568
569FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
570cd "%obuild_snovis_path%\%obuild_dir_bin%"
571IF EXIST .\dll_snovis\tmp_objs DEL .\dll_snovis\tmp_objs
572FOR %%f IN (.\dll_snovis\*.obj) DO ECHO %%f >> .\dll_snovis\tmp_objs
573
574REM # Create the archive library snovis :
575@IF %obuild_verbose% == yes @ECHO ON
576lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.arc @.\dll_snovis\tmp_objs
577@IF ERRORLEVEL 1 @GOTO obuild_return
578@IF %obuild_verbose% == yes @ECHO OFF
579
580REM # Build the obuild_windef.exe utility program :
581cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL
582IF EXIST obuild_windef.obj DEL obuild_windef.obj
583
584REM # Building the .def file :
585@IF %obuild_verbose% == yes @ECHO ON
586dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc 1> dumpbin_exe_error .\dll_snovis\snovis.arc
587@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
588@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
589@IF %obuild_verbose% == yes @ECHO OFF
590.\obuild_windef.exe snovis < .\dll_snovis\tmp > .\dll_snovis\snovis.def
591REM # Building the linking library :
592REM # It produces a .exp file.
593@IF %obuild_verbose% == yes @ECHO ON
594lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def 1> lib_exe_error
595@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
596@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
597@IF %obuild_verbose% == yes @ECHO OFF
598
599REM # Building the DLL :
600IF EXIST .\snovis.dll DEL .\snovis.dll
601@IF %obuild_verbose% == yes @ECHO ON
602link.exe /nologo /dll /out:.\snovis.dll .\dll_snovis\snovis.exp .\dll_snovis\snovis.arc %obuild_linked_libraries%
603@IF %obuild_verbose% == yes @ECHO OFF
604
605cd "%obuild_pwd_snovis_0%"
606SET obuild_pwd_snovis_0=
607REM # Some cleanup :
608IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs"
609IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp"
610
611:obuild_return
612ENDLOCAL
613@ECHO ON
Note: See TracBrowser for help on using the repository browser.