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

Last change on this file since 276 was 276, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 17.0 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=bin_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% Windows_NT`) 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_0
101SET obuild_cxx_command=cl.exe
102:end_if_platform_0
103SET obuild_platform_result=
104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
105
106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
107cd "%obuild_snovis_path%\%obuild_dir_bin%"
108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
110cd "%obuild_pwd_snovis_0%"
111SET obuild_pwd_snovis_0=
112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
113SET obuild_cxx_optimize=/O2
114:end_if_platform_1
115SET obuild_platform_result=
116
117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
118cd "%obuild_snovis_path%\%obuild_dir_bin%"
119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
121cd "%obuild_pwd_snovis_0%"
122SET obuild_pwd_snovis_0=
123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
124SET obuild_cxx_debug=/ZI /Od
125:end_if_platform_2
126SET obuild_platform_result=
127
128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
129cd "%obuild_snovis_path%\%obuild_dir_bin%"
130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
132cd "%obuild_pwd_snovis_0%"
133SET obuild_pwd_snovis_0=
134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
136:end_if_platform_3
137SET obuild_platform_result=
138
139IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_4
140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
141  GOTO end_if_db_build_lib_G4LabCore_sh_4
142:else_if_db_build_lib_G4LabCore_sh_4
143  SET obuild_cxx_debug_local=
144:end_if_db_build_lib_G4LabCore_sh_4
145
146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_5
147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
148  GOTO end_if_opt_build_lib_G4LabCore_sh_5
149:else_if_opt_build_lib_G4LabCore_sh_5
150  SET obuild_cxx_optimize_local=
151:end_if_opt_build_lib_G4LabCore_sh_5
152
153
154
155SET obuild_cxx_includes=/I"%obuild_snovis_path%\source"
156
157IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore"
158IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore"
159
160@IF %obuild_verbose% == yes @ECHO ON
161cd "%obuild_snovis_path%\%obuild_dir_bin%"
162%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
163@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
164@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
165cd "%obuild_snovis_path%\obuild"
166
167cd "%obuild_snovis_path%\%obuild_dir_bin%"
168%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
169@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
170@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
171cd "%obuild_snovis_path%\obuild"
172
173cd "%obuild_snovis_path%\%obuild_dir_bin%"
174%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
175@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
176@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
177cd "%obuild_snovis_path%\obuild"
178
179cd "%obuild_snovis_path%\%obuild_dir_bin%"
180%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
181@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
182@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
183cd "%obuild_snovis_path%\obuild"
184
185cd "%obuild_snovis_path%\%obuild_dir_bin%"
186%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
187@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
188@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
189cd "%obuild_snovis_path%\obuild"
190
191cd "%obuild_snovis_path%\%obuild_dir_bin%"
192%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
193@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
194@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
195cd "%obuild_snovis_path%\obuild"
196
197cd "%obuild_snovis_path%\%obuild_dir_bin%"
198%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
199@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
200@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
201cd "%obuild_snovis_path%\obuild"
202
203cd "%obuild_snovis_path%\%obuild_dir_bin%"
204%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
205@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
206@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
207cd "%obuild_snovis_path%\obuild"
208
209cd "%obuild_snovis_path%\%obuild_dir_bin%"
210%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
211@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
212@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
213cd "%obuild_snovis_path%\obuild"
214
215cd "%obuild_snovis_path%\%obuild_dir_bin%"
216%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
217@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
218@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
219cd "%obuild_snovis_path%\obuild"
220
221cd "%obuild_snovis_path%\%obuild_dir_bin%"
222%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
223@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
224@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
225cd "%obuild_snovis_path%\obuild"
226
227cd "%obuild_snovis_path%\%obuild_dir_bin%"
228%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
229@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
230@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
231cd "%obuild_snovis_path%\obuild"
232
233cd "%obuild_snovis_path%\%obuild_dir_bin%"
234%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
235@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
236@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
237cd "%obuild_snovis_path%\obuild"
238
239cd "%obuild_snovis_path%\%obuild_dir_bin%"
240%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
241@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
242@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
243cd "%obuild_snovis_path%\obuild"
244
245cd "%obuild_snovis_path%\%obuild_dir_bin%"
246%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
247@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
248@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
249cd "%obuild_snovis_path%\obuild"
250
251cd "%obuild_snovis_path%\%obuild_dir_bin%"
252%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
253@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
254@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
255cd "%obuild_snovis_path%\obuild"
256
257cd "%obuild_snovis_path%\%obuild_dir_bin%"
258%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
259@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
260@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
261cd "%obuild_snovis_path%\obuild"
262
263cd "%obuild_snovis_path%\%obuild_dir_bin%"
264%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
265@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
266@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
267cd "%obuild_snovis_path%\obuild"
268
269@IF %obuild_verbose% == yes @ECHO OFF
270
271FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
272cd "%obuild_snovis_path%\%obuild_dir_bin%"
273IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
274FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
275cd "%obuild_pwd_snovis_0%"
276SET obuild_pwd_snovis_0=
277IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
278SET obuild_cxx_linker_command=link.exe
279:end_if_platform_25
280SET obuild_platform_result=
281IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
282
283FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
284cd "%obuild_snovis_path%\%obuild_dir_bin%"
285IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
286FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
287cd "%obuild_pwd_snovis_0%"
288SET obuild_pwd_snovis_0=
289IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
290SET obuild_cxx_linker_debug=/DEBUG
291:end_if_platform_26
292SET obuild_platform_result=
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% Windows_NT`) 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_27
301SET obuild_cxx_linker_options=/nologo
302:end_if_platform_27
303SET obuild_platform_result=
304
305IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_28
306  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
307  GOTO end_if_db_build_lib_G4LabCore_sh_28
308:else_if_db_build_lib_G4LabCore_sh_28
309  SET obuild_cxx_linker_debug_local=
310:end_if_db_build_lib_G4LabCore_sh_28
311
312IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_29
313  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
314  GOTO end_if_opt_build_lib_G4LabCore_sh_29
315:else_if_opt_build_lib_G4LabCore_sh_29
316  SET obuild_cxx_linker_optimize_local=
317:end_if_opt_build_lib_G4LabCore_sh_29
318
319FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
320cd "%obuild_snovis_path%\%obuild_dir_bin%"
321IF EXIST .\lib_G4LabCore\tmp_objs DEL .\lib_G4LabCore\tmp_objs
322FOR %%f IN (.\lib_G4LabCore\*.obj) DO ECHO %%f >> .\lib_G4LabCore\tmp_objs
323
324REM # Create the archive library G4LabCore :
325@IF %obuild_verbose% == yes @ECHO ON
326lib.exe /nologo /machine:ix86 /out:.\lib_G4LabCore\G4LabCore.arc @.\lib_G4LabCore\tmp_objs
327@IF ERRORLEVEL 1 @GOTO obuild_return
328@IF %obuild_verbose% == yes @ECHO OFF
329
330REM # Build the obuild_windef.exe utility program :
331cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL
332IF EXIST obuild_windef.obj DEL obuild_windef.obj
333
334REM # Building the .def file :
335@IF %obuild_verbose% == yes @ECHO ON
336dumpbin.exe /symbols /out:.\lib_G4LabCore\tmp .\lib_G4LabCore\G4LabCore.arc 1> dumpbin_exe_error .\lib_G4LabCore\G4LabCore.arc
337@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
338@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
339@IF %obuild_verbose% == yes @ECHO OFF
340.\obuild_windef.exe G4LabCore < .\lib_G4LabCore\tmp > .\lib_G4LabCore\G4LabCore.def
341REM # Building the linking library :
342REM # It produces a .exp file.
343@IF %obuild_verbose% == yes @ECHO ON
344lib.exe /nologo /machine:ix86 /out:.\G4LabCore.lib /def:.\lib_G4LabCore\G4LabCore.def 1> lib_exe_error
345@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
346@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
347@IF %obuild_verbose% == yes @ECHO OFF
348
349REM # Building the DLL :
350IF EXIST .\G4LabCore.dll DEL .\G4LabCore.dll
351@IF %obuild_verbose% == yes @ECHO ON
352link.exe /nologo /dll /out:.\G4LabCore.dll .\G4LabCore.exp .\lib_G4LabCore\G4LabCore.arc %obuild_linked_libraries%
353@IF %obuild_verbose% == yes @ECHO OFF
354
355cd "%obuild_pwd_snovis_0%"
356SET obuild_pwd_snovis_0=
357REM # Some cleanup :
358IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore\tmp_objs"
359IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\G4LabCore.exp"
360
361:obuild_return
362ENDLOCAL
363@ECHO ON
Note: See TracBrowser for help on using the repository browser.