source: build/snova/trunk/obuild/DOS/build_lib_snvertex.bat @ 130

Last change on this file since 130 was 130, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 24.2 KB
Line 
1@ECHO OFF
2SETLOCAL
3
4REM #
5REM # File produced by the obuild tool version 1.0
6REM # for the package snova with version v2r0p0.
7REM #
8
9REM #////////////////////////////////////////////////
10REM # Usage :
11REM #   DOS> CD some_path\pack\version\obuild
12REM #   DOS> DOS\build_snvertex
13REM #
14REM #////////////////////////////////////////////////
15
16REM #////////////////////////////////////////////////
17REM #/// Get path of this file :
18REM #////////////////////////////////////////////////
19SET obuild_snova_path=%~dp0
20REM # Remove ending \obuild\DOS\
21SET obuild_snova_path=%obuild_snova_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_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
87
88IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
89IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" (
90  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snova_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_snova_0=%%d
95cd "%obuild_snova_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_snova_0%"
99SET obuild_pwd_snova_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_snova_0=%%d
105cd "%obuild_snova_path%\%obuild_dir_bin%"
106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
108cd "%obuild_pwd_snova_0%"
109SET obuild_pwd_snova_0=
110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
111SET obuild_cxx_command=c++
112:end_if_platform_2
113SET obuild_platform_result=
114FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
115cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
118cd "%obuild_pwd_snova_0%"
119SET obuild_pwd_snova_0=
120IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
121SET obuild_cxx_command=c++
122:end_if_platform_3
123SET obuild_platform_result=
124FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
125cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
128cd "%obuild_pwd_snova_0%"
129SET obuild_pwd_snova_0=
130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4
131SET obuild_cxx_command=cxx
132:end_if_platform_4
133SET obuild_platform_result=
134FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
135cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
138cd "%obuild_pwd_snova_0%"
139SET obuild_pwd_snova_0=
140IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
141SET obuild_cxx_command=cl.exe
142:end_if_platform_5
143SET obuild_platform_result=
144IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
145
146FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
147cd "%obuild_snova_path%\%obuild_dir_bin%"
148IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
149FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
150cd "%obuild_pwd_snova_0%"
151SET obuild_pwd_snova_0=
152IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6
153SET obuild_cxx_optimize=-O
154:end_if_platform_6
155SET obuild_platform_result=
156FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
157cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
160cd "%obuild_pwd_snova_0%"
161SET obuild_pwd_snova_0=
162IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
163SET obuild_cxx_optimize=-O
164:end_if_platform_7
165SET obuild_platform_result=
166FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
167cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
170cd "%obuild_pwd_snova_0%"
171SET obuild_pwd_snova_0=
172IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
173SET obuild_cxx_optimize=-O
174:end_if_platform_8
175SET obuild_platform_result=
176FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
177cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
180cd "%obuild_pwd_snova_0%"
181SET obuild_pwd_snova_0=
182IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
183SET obuild_cxx_optimize=/O2
184:end_if_platform_9
185SET obuild_platform_result=
186
187FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
188cd "%obuild_snova_path%\%obuild_dir_bin%"
189IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
190FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
191cd "%obuild_pwd_snova_0%"
192SET obuild_pwd_snova_0=
193IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
194SET obuild_cxx_debug=-g
195:end_if_platform_10
196SET obuild_platform_result=
197FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
198cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
201cd "%obuild_pwd_snova_0%"
202SET obuild_pwd_snova_0=
203IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
204SET obuild_cxx_debug=-g
205:end_if_platform_11
206SET obuild_platform_result=
207FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
208cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
211cd "%obuild_pwd_snova_0%"
212SET obuild_pwd_snova_0=
213IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
214SET obuild_cxx_debug=-g
215:end_if_platform_12
216SET obuild_platform_result=
217FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
218cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
221cd "%obuild_pwd_snova_0%"
222SET obuild_pwd_snova_0=
223IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
224SET obuild_cxx_debug=/ZI /Od
225:end_if_platform_13
226SET obuild_platform_result=
227
228FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
229cd "%obuild_snova_path%\%obuild_dir_bin%"
230IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
231FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
232cd "%obuild_pwd_snova_0%"
233SET obuild_pwd_snova_0=
234IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
235SET obuild_cxx_options=-fPIC
236:end_if_platform_14
237SET obuild_platform_result=
238FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
239cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
242cd "%obuild_pwd_snova_0%"
243SET obuild_pwd_snova_0=
244IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
245SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
246:end_if_platform_15
247SET obuild_platform_result=
248
249IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_16
250  SET obuild_cxx_debug_local=%obuild_cxx_debug%
251  GOTO end_if_db_build_lib_snvertex_sh_16
252:else_if_db_build_lib_snvertex_sh_16
253  SET obuild_cxx_debug_local=
254:end_if_db_build_lib_snvertex_sh_16
255
256IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_17
257  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
258  GOTO end_if_opt_build_lib_snvertex_sh_17
259:else_if_opt_build_lib_snvertex_sh_17
260  SET obuild_cxx_optimize_local=
261:end_if_opt_build_lib_snvertex_sh_17
262
263
264IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
265IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" (
266  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snova_path%\obuild\cpp\obuild_find.cpp" 1> NUL
267  IF EXIST obuild_find.obj DEL obuild_find.obj
268)
269FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
270cd "%obuild_snova_path%\%obuild_dir_bin%"
271IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
272FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
273cd "%obuild_pwd_snova_0%"
274SET obuild_pwd_snova_0=
275IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
276
277SET obuild_cxx_includes=/I"%obuild_snova_path%\source\SNvertex\include"
278SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
279SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
280FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
281cd "%obuild_snova_path%\%obuild_dir_bin%"
282IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
283FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
284cd "%obuild_pwd_snova_0%"
285SET obuild_pwd_snova_0=
286IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
287SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
288:end_if_platform_21
289SET obuild_platform_result=
290SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
291
292IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex"
293IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex"
294
295@IF %obuild_verbose% == yes @ECHO ON
296cd "%obuild_snova_path%\%obuild_dir_bin%"
297%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\CALO_basic_VG.obj  /Tp"..\source\SNvertex\src\CALO_basic_VG.cc" 1> cl_exe_error
298@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
299@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
300cd "%obuild_snova_path%\obuild"
301
302cd "%obuild_snova_path%\%obuild_dir_bin%"
303%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\base_VG.obj  /Tp"..\source\SNvertex\src\base_VG.cc" 1> cl_exe_error
304@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
305@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
306cd "%obuild_snova_path%\obuild"
307
308cd "%obuild_snova_path%\%obuild_dir_bin%"
309%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\base_VG_factory.obj  /Tp"..\source\SNvertex\src\base_VG_factory.cc" 1> cl_exe_error
310@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
311@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
312cd "%obuild_snova_path%\obuild"
313
314cd "%obuild_snova_path%\%obuild_dir_bin%"
315%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\base_geom_VG.obj  /Tp"..\source\SNvertex\src\base_geom_VG.cc" 1> cl_exe_error
316@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
317@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
318cd "%obuild_snova_path%\obuild"
319
320cd "%obuild_snova_path%\%obuild_dir_bin%"
321%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\box_VG.obj  /Tp"..\source\SNvertex\src\box_VG.cc" 1> cl_exe_error
322@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
323@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
324cd "%obuild_snova_path%\obuild"
325
326cd "%obuild_snova_path%\%obuild_dir_bin%"
327%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\cylinder_VG.obj  /Tp"..\source\SNvertex\src\cylinder_VG.cc" 1> cl_exe_error
328@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
329@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
330cd "%obuild_snova_path%\obuild"
331
332cd "%obuild_snova_path%\%obuild_dir_bin%"
333%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\dummy_snvertex.obj  /Tp"..\source\SNvertex\src\dummy_snvertex.cc" 1> cl_exe_error
334@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
335@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
336cd "%obuild_snova_path%\obuild"
337
338cd "%obuild_snova_path%\%obuild_dir_bin%"
339%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\from_file_VG.obj  /Tp"..\source\SNvertex\src\from_file_VG.cc" 1> cl_exe_error
340@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
341@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
342cd "%obuild_snova_path%\obuild"
343
344cd "%obuild_snova_path%\%obuild_dir_bin%"
345%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\snvertex_utils.obj  /Tp"..\source\SNvertex\src\snvertex_utils.cc" 1> cl_exe_error
346@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
347@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
348cd "%obuild_snova_path%\obuild"
349
350cd "%obuild_snova_path%\%obuild_dir_bin%"
351%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\source_simple_VG.obj  /Tp"..\source\SNvertex\src\source_simple_VG.cc" 1> cl_exe_error
352@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
353@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
354cd "%obuild_snova_path%\obuild"
355
356cd "%obuild_snova_path%\%obuild_dir_bin%"
357%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\spot_VG.obj  /Tp"..\source\SNvertex\src\spot_VG.cc" 1> cl_exe_error
358@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
359@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
360cd "%obuild_snova_path%\obuild"
361
362@IF %obuild_verbose% == yes @ECHO OFF
363
364FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
365cd "%obuild_snova_path%\%obuild_dir_bin%"
366IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
367FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
368cd "%obuild_pwd_snova_0%"
369SET obuild_pwd_snova_0=
370IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
371SET obuild_cxx_linker_command=c++
372:end_if_platform_34
373SET obuild_platform_result=
374FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
375cd "%obuild_snova_path%\%obuild_dir_bin%"
376IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
377FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
378cd "%obuild_pwd_snova_0%"
379SET obuild_pwd_snova_0=
380IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
381SET obuild_cxx_linker_command=c++
382:end_if_platform_35
383SET obuild_platform_result=
384FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
385cd "%obuild_snova_path%\%obuild_dir_bin%"
386IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
387FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
388cd "%obuild_pwd_snova_0%"
389SET obuild_pwd_snova_0=
390IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
391SET obuild_cxx_linker_command=cxx
392:end_if_platform_36
393SET obuild_platform_result=
394FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
395cd "%obuild_snova_path%\%obuild_dir_bin%"
396IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
397FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
398cd "%obuild_pwd_snova_0%"
399SET obuild_pwd_snova_0=
400IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
401SET obuild_cxx_linker_command=link.exe
402:end_if_platform_37
403SET obuild_platform_result=
404IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
405
406FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
407cd "%obuild_snova_path%\%obuild_dir_bin%"
408IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
409FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
410cd "%obuild_pwd_snova_0%"
411SET obuild_pwd_snova_0=
412IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
413SET obuild_cxx_linker_debug=-g
414:end_if_platform_38
415SET obuild_platform_result=
416FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
417cd "%obuild_snova_path%\%obuild_dir_bin%"
418IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
419FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
420cd "%obuild_pwd_snova_0%"
421SET obuild_pwd_snova_0=
422IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
423SET obuild_cxx_linker_debug=-g
424:end_if_platform_39
425SET obuild_platform_result=
426FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
427cd "%obuild_snova_path%\%obuild_dir_bin%"
428IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
429FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
430cd "%obuild_pwd_snova_0%"
431SET obuild_pwd_snova_0=
432IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
433SET obuild_cxx_linker_debug=-g
434:end_if_platform_40
435SET obuild_platform_result=
436FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
437cd "%obuild_snova_path%\%obuild_dir_bin%"
438IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
439FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
440cd "%obuild_pwd_snova_0%"
441SET obuild_pwd_snova_0=
442IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
443SET obuild_cxx_linker_debug=/DEBUG
444:end_if_platform_41
445SET obuild_platform_result=
446
447FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
448cd "%obuild_snova_path%\%obuild_dir_bin%"
449IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
450FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
451cd "%obuild_pwd_snova_0%"
452SET obuild_pwd_snova_0=
453IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
454SET obuild_cxx_linker_options=/nologo
455:end_if_platform_42
456SET obuild_platform_result=
457
458IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_43
459  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
460  GOTO end_if_db_build_lib_snvertex_sh_43
461:else_if_db_build_lib_snvertex_sh_43
462  SET obuild_cxx_linker_debug_local=
463:end_if_db_build_lib_snvertex_sh_43
464
465IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_44
466  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
467  GOTO end_if_opt_build_lib_snvertex_sh_44
468:else_if_opt_build_lib_snvertex_sh_44
469  SET obuild_cxx_linker_optimize_local=
470:end_if_opt_build_lib_snvertex_sh_44
471
472FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
473cd "%obuild_snova_path%\%obuild_dir_bin%"
474IF EXIST .\lib_snvertex\tmp_objs DEL .\lib_snvertex\tmp_objs
475FOR %%f IN (.\lib_snvertex\*.obj) DO ECHO %%f >> .\lib_snvertex\tmp_objs
476
477REM # Create the archive library snvertex :
478@IF %obuild_verbose% == yes @ECHO ON
479lib.exe /nologo /machine:ix86 /out:.\lib_snvertex\snvertex.arc @.\lib_snvertex\tmp_objs
480@IF ERRORLEVEL 1 @GOTO obuild_return
481@IF %obuild_verbose% == yes @ECHO OFF
482
483REM # Build the obuild_windef.exe utility program :
484cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL
485IF EXIST obuild_windef.obj DEL obuild_windef.obj
486
487REM # Building the .def file :
488@IF %obuild_verbose% == yes @ECHO ON
489dumpbin.exe /symbols /out:.\lib_snvertex\tmp .\lib_snvertex\snvertex.arc 1> dumpbin_exe_error .\lib_snvertex\snvertex.arc
490@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
491@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
492@IF %obuild_verbose% == yes @ECHO OFF
493.\obuild_windef.exe snvertex < .\lib_snvertex\tmp > .\lib_snvertex\snvertex.def
494REM # Building the linking library :
495REM # It produces a .exp file.
496@IF %obuild_verbose% == yes @ECHO ON
497lib.exe /nologo /machine:ix86 /out:.\snvertex.lib /def:.\lib_snvertex\snvertex.def 1> lib_exe_error
498@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
499@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
500@IF %obuild_verbose% == yes @ECHO OFF
501
502REM # Building the DLL :
503IF EXIST .\snvertex.dll DEL .\snvertex.dll
504@IF %obuild_verbose% == yes @ECHO ON
505link.exe /nologo /dll /out:.\snvertex.dll .\snvertex.exp .\lib_snvertex\snvertex.arc %obuild_linked_libraries%
506@IF %obuild_verbose% == yes @ECHO OFF
507
508cd "%obuild_pwd_snova_0%"
509SET obuild_pwd_snova_0=
510REM # Some cleanup :
511IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex\tmp_objs"
512IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\snvertex.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\snvertex.exp"
513
514:obuild_return
515ENDLOCAL
516@ECHO ON
Note: See TracBrowser for help on using the repository browser.