source: build/bhep/trunk/obuild/DOS/build_lib_bhep.bat @ 274

Last change on this file since 274 was 274, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 22.9 KB
Line 
1@ECHO OFF
2SETLOCAL
3
4REM #
5REM # File produced by the obuild tool version 1.0
6REM # for the package bhep with version v1r4p2.
7REM #
8
9REM #////////////////////////////////////////////////
10REM # Usage :
11REM #   DOS> CD some_path\pack\version\obuild
12REM #   DOS> DOS\build_bhep
13REM #
14REM #////////////////////////////////////////////////
15
16REM #////////////////////////////////////////////////
17REM #/// Get path of this file :
18REM #////////////////////////////////////////////////
19SET obuild_bhep_path=%~dp0
20REM # Remove ending \obuild\DOS\
21SET obuild_bhep_path=%obuild_bhep_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_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%"
87
88IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%"
89IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\obuild_platform.exe" (
90  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_bhep_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_bhep_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_bhep_0=%%d
95cd "%obuild_bhep_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_bhep_0%"
99SET obuild_pwd_bhep_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_bhep_0=%%d
107cd "%obuild_bhep_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_bhep_0%"
111SET obuild_pwd_bhep_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_bhep_0=%%d
118cd "%obuild_bhep_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_bhep_0%"
122SET obuild_pwd_bhep_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_bhep_0=%%d
129cd "%obuild_bhep_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_bhep_0%"
133SET obuild_pwd_bhep_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_bhep_sh_4
140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
141  GOTO end_if_db_build_lib_bhep_sh_4
142:else_if_db_build_lib_bhep_sh_4
143  SET obuild_cxx_debug_local=
144:end_if_db_build_lib_bhep_sh_4
145
146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_5
147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
148  GOTO end_if_opt_build_lib_bhep_sh_5
149:else_if_opt_build_lib_bhep_sh_5
150  SET obuild_cxx_optimize_local=
151:end_if_opt_build_lib_bhep_sh_5
152
153
154
155SET obuild_cxx_includes=/I"%obuild_bhep_path%"
156SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%\bhep"
157
158IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
159IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
160
161REM # pre_build scripts :
162
163@IF %obuild_verbose% == yes @ECHO ON
164cd "%obuild_bhep_path%\%obuild_dir_bin%"
165%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\version.obj  /Tp"..\source\version.cpp" 1> cl_exe_error
166@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
167@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
168cd "%obuild_bhep_path%\obuild"
169
170cd "%obuild_bhep_path%\%obuild_dir_bin%"
171%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\event.obj  /Tp"..\source\base\event.cpp" 1> cl_exe_error
172@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
173@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
174cd "%obuild_bhep_path%\obuild"
175
176cd "%obuild_bhep_path%\%obuild_dir_bin%"
177%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\hit.obj  /Tp"..\source\base\hit.cpp" 1> cl_exe_error
178@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
179@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
180cd "%obuild_bhep_path%\obuild"
181
182cd "%obuild_bhep_path%\%obuild_dir_bin%"
183%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\mparticle.obj  /Tp"..\source\base\mparticle.cpp" 1> cl_exe_error
184@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
185@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
186cd "%obuild_bhep_path%\obuild"
187
188cd "%obuild_bhep_path%\%obuild_dir_bin%"
189%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle.obj  /Tp"..\source\base\particle.cpp" 1> cl_exe_error
190@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
191@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
192cd "%obuild_bhep_path%\obuild"
193
194cd "%obuild_bhep_path%\%obuild_dir_bin%"
195%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sparticle.obj  /Tp"..\source\base\sparticle.cpp" 1> cl_exe_error
196@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
197@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
198cd "%obuild_bhep_path%\obuild"
199
200cd "%obuild_bhep_path%\%obuild_dir_bin%"
201%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\track.obj  /Tp"..\source\base\track.cpp" 1> cl_exe_error
202@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
203@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
204cd "%obuild_bhep_path%\obuild"
205
206cd "%obuild_bhep_path%\%obuild_dir_bin%"
207%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\material.obj  /Tp"..\source\util\material.cpp" 1> cl_exe_error
208@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
209@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
210cd "%obuild_bhep_path%\obuild"
211
212cd "%obuild_bhep_path%\%obuild_dir_bin%"
213%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle_definition.obj  /Tp"..\source\util\particle_definition.cpp" 1> cl_exe_error
214@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
215@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
216cd "%obuild_bhep_path%\obuild"
217
218cd "%obuild_bhep_path%\%obuild_dir_bin%"
219%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\ray.obj  /Tp"..\source\util\ray.cpp" 1> cl_exe_error
220@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
221@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
222cd "%obuild_bhep_path%\obuild"
223
224cd "%obuild_bhep_path%\%obuild_dir_bin%"
225%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\event_cvt.obj  /Tp"..\source\converters\event_cvt.cpp" 1> cl_exe_error
226@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
227@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
228cd "%obuild_bhep_path%\obuild"
229
230cd "%obuild_bhep_path%\%obuild_dir_bin%"
231%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\hit_cvt.obj  /Tp"..\source\converters\hit_cvt.cpp" 1> cl_exe_error
232@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
233@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
234cd "%obuild_bhep_path%\obuild"
235
236cd "%obuild_bhep_path%\%obuild_dir_bin%"
237%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\mparticle_cvt.obj  /Tp"..\source\converters\mparticle_cvt.cpp" 1> cl_exe_error
238@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
239@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
240cd "%obuild_bhep_path%\obuild"
241
242cd "%obuild_bhep_path%\%obuild_dir_bin%"
243%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle_cvt.obj  /Tp"..\source\converters\particle_cvt.cpp" 1> cl_exe_error
244@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
245@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
246cd "%obuild_bhep_path%\obuild"
247
248cd "%obuild_bhep_path%\%obuild_dir_bin%"
249%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sparticle_cvt.obj  /Tp"..\source\converters\sparticle_cvt.cpp" 1> cl_exe_error
250@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
251@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
252cd "%obuild_bhep_path%\obuild"
253
254cd "%obuild_bhep_path%\%obuild_dir_bin%"
255%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\track_cvt.obj  /Tp"..\source\converters\track_cvt.cpp" 1> cl_exe_error
256@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
257@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
258cd "%obuild_bhep_path%\obuild"
259
260cd "%obuild_bhep_path%\%obuild_dir_bin%"
261%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\base_reader.obj  /Tp"..\source\manager\base_reader.cpp" 1> cl_exe_error
262@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
263@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
264cd "%obuild_bhep_path%\obuild"
265
266cd "%obuild_bhep_path%\%obuild_dir_bin%"
267%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\bhep_svc.obj  /Tp"..\source\manager\bhep_svc.cpp" 1> cl_exe_error
268@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
269@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
270cd "%obuild_bhep_path%\obuild"
271
272cd "%obuild_bhep_path%\%obuild_dir_bin%"
273%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\brw.obj  /Tp"..\source\manager\brw.cpp" 1> cl_exe_error
274@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
275@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
276cd "%obuild_bhep_path%\obuild"
277
278cd "%obuild_bhep_path%\%obuild_dir_bin%"
279%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\converter_svc.obj  /Tp"..\source\manager\converter_svc.cpp" 1> cl_exe_error
280@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
281@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
282cd "%obuild_bhep_path%\obuild"
283
284cd "%obuild_bhep_path%\%obuild_dir_bin%"
285%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\random_reader.obj  /Tp"..\source\manager\random_reader.cpp" 1> cl_exe_error
286@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
287@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
288cd "%obuild_bhep_path%\obuild"
289
290cd "%obuild_bhep_path%\%obuild_dir_bin%"
291%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\random_writer.obj  /Tp"..\source\manager\random_writer.cpp" 1> cl_exe_error
292@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
293@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
294cd "%obuild_bhep_path%\obuild"
295
296cd "%obuild_bhep_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_bhep\reader_gz.obj  /Tp"..\source\manager\reader_gz.cpp" 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_bhep_path%\obuild"
301
302cd "%obuild_bhep_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_bhep\reader_hdf5.obj  /Tp"..\source\manager\reader_hdf5.cpp" 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_bhep_path%\obuild"
307
308cd "%obuild_bhep_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_bhep\reader_txt.obj  /Tp"..\source\manager\reader_txt.cpp" 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_bhep_path%\obuild"
313
314cd "%obuild_bhep_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_bhep\sequential_reader.obj  /Tp"..\source\manager\sequential_reader.cpp" 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_bhep_path%\obuild"
319
320cd "%obuild_bhep_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_bhep\sequential_writer.obj  /Tp"..\source\manager\sequential_writer.cpp" 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_bhep_path%\obuild"
325
326cd "%obuild_bhep_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_bhep\writer_gz.obj  /Tp"..\source\manager\writer_gz.cpp" 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_bhep_path%\obuild"
331
332cd "%obuild_bhep_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_bhep\writer_hdf5.obj  /Tp"..\source\manager\writer_hdf5.cpp" 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_bhep_path%\obuild"
337
338cd "%obuild_bhep_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_bhep\writer_txt.obj  /Tp"..\source\manager\writer_txt.cpp" 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_bhep_path%\obuild"
343
344cd "%obuild_bhep_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_bhep\generate_event.obj  /Tp"..\source\examples\generate_event.cpp" 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_bhep_path%\obuild"
349
350cd "%obuild_bhep_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_bhep\gevent.obj  /Tp"..\source\tutorials\gevent.cpp" 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_bhep_path%\obuild"
355
356cd "%obuild_bhep_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_bhep\axis.obj  /Tp"..\source\histos\axis.cpp" 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_bhep_path%\obuild"
361
362cd "%obuild_bhep_path%\%obuild_dir_bin%"
363%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\histogram.obj  /Tp"..\source\histos\histogram.cpp" 1> cl_exe_error
364@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
365@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
366cd "%obuild_bhep_path%\obuild"
367
368cd "%obuild_bhep_path%\%obuild_dir_bin%"
369%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\EventManager.obj  /Tp"..\source\tools\EventManager.cpp" 1> cl_exe_error
370@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
371@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
372cd "%obuild_bhep_path%\obuild"
373
374@IF %obuild_verbose% == yes @ECHO OFF
375
376FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
377cd "%obuild_bhep_path%\%obuild_dir_bin%"
378IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
379FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
380cd "%obuild_pwd_bhep_0%"
381SET obuild_pwd_bhep_0=
382IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
383SET obuild_cxx_linker_command=link.exe
384:end_if_platform_43
385SET obuild_platform_result=
386IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
387
388FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
389cd "%obuild_bhep_path%\%obuild_dir_bin%"
390IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
391FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
392cd "%obuild_pwd_bhep_0%"
393SET obuild_pwd_bhep_0=
394IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
395SET obuild_cxx_linker_debug=/DEBUG
396:end_if_platform_44
397SET obuild_platform_result=
398
399FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
400cd "%obuild_bhep_path%\%obuild_dir_bin%"
401IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
402FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
403cd "%obuild_pwd_bhep_0%"
404SET obuild_pwd_bhep_0=
405IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
406SET obuild_cxx_linker_options=/nologo
407:end_if_platform_45
408SET obuild_platform_result=
409
410IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_46
411  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
412  GOTO end_if_db_build_lib_bhep_sh_46
413:else_if_db_build_lib_bhep_sh_46
414  SET obuild_cxx_linker_debug_local=
415:end_if_db_build_lib_bhep_sh_46
416
417IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_47
418  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
419  GOTO end_if_opt_build_lib_bhep_sh_47
420:else_if_opt_build_lib_bhep_sh_47
421  SET obuild_cxx_linker_optimize_local=
422:end_if_opt_build_lib_bhep_sh_47
423
424FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
425cd "%obuild_bhep_path%\%obuild_dir_bin%"
426IF EXIST .\lib_bhep\tmp_objs DEL .\lib_bhep\tmp_objs
427FOR %%f IN (.\lib_bhep\*.obj) DO ECHO %%f >> .\lib_bhep\tmp_objs
428
429REM # Create the archive library bhep :
430@IF %obuild_verbose% == yes @ECHO ON
431lib.exe /nologo /machine:ix86 /out:.\lib_bhep\bhep.arc @.\lib_bhep\tmp_objs
432@IF ERRORLEVEL 1 @GOTO obuild_return
433@IF %obuild_verbose% == yes @ECHO OFF
434
435REM # Build the obuild_windef.exe utility program :
436cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_bhep_path%\obuild\cpp\obuild_windef.c" 1> NUL
437IF EXIST obuild_windef.obj DEL obuild_windef.obj
438
439REM # Building the .def file :
440@IF %obuild_verbose% == yes @ECHO ON
441dumpbin.exe /symbols /out:.\lib_bhep\tmp .\lib_bhep\bhep.arc 1> dumpbin_exe_error .\lib_bhep\bhep.arc
442@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
443@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
444@IF %obuild_verbose% == yes @ECHO OFF
445.\obuild_windef.exe bhep < .\lib_bhep\tmp > .\lib_bhep\bhep.def
446REM # Building the linking library :
447REM # It produces a .exp file.
448@IF %obuild_verbose% == yes @ECHO ON
449lib.exe /nologo /machine:ix86 /out:.\bhep.lib /def:.\lib_bhep\bhep.def 1> lib_exe_error
450@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
451@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
452@IF %obuild_verbose% == yes @ECHO OFF
453
454REM # Building the DLL :
455IF EXIST .\bhep.dll DEL .\bhep.dll
456@IF %obuild_verbose% == yes @ECHO ON
457link.exe /nologo /dll /out:.\bhep.dll .\bhep.exp .\lib_bhep\bhep.arc %obuild_linked_libraries%
458@IF %obuild_verbose% == yes @ECHO OFF
459
460cd "%obuild_pwd_bhep_0%"
461SET obuild_pwd_bhep_0=
462REM # Some cleanup :
463IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" DEL "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs"
464IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" DEL "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp"
465
466:obuild_return
467ENDLOCAL
468@ECHO ON
Note: See TracBrowser for help on using the repository browser.