| 1 | @ECHO OFF
|
|---|
| 2 | SETLOCAL
|
|---|
| 3 |
|
|---|
| 4 | REM #
|
|---|
| 5 | REM # File produced by the obuild tool version 1.0
|
|---|
| 6 | REM # for the package bhep with version v1r4p2.
|
|---|
| 7 | REM #
|
|---|
| 8 |
|
|---|
| 9 | REM #////////////////////////////////////////////////
|
|---|
| 10 | REM # Usage :
|
|---|
| 11 | REM # DOS> CD some_path\pack\version\obuild
|
|---|
| 12 | REM # DOS> DOS\build_bhep
|
|---|
| 13 | REM #
|
|---|
| 14 | REM #////////////////////////////////////////////////
|
|---|
| 15 |
|
|---|
| 16 | REM #////////////////////////////////////////////////
|
|---|
| 17 | REM #/// Get path of this file :
|
|---|
| 18 | REM #////////////////////////////////////////////////
|
|---|
| 19 | SET obuild_bhep_path=%~dp0
|
|---|
| 20 | REM # Remove ending \obuild\DOS\
|
|---|
| 21 | SET obuild_bhep_path=%obuild_bhep_path:~0,-12%
|
|---|
| 22 |
|
|---|
| 23 | REM #////////////////////////////////////////////////
|
|---|
| 24 | REM #/// Treat arguments :
|
|---|
| 25 | REM #////////////////////////////////////////////////
|
|---|
| 26 |
|
|---|
| 27 | SET obuild_verbose=no
|
|---|
| 28 | SET obuild_debug=no
|
|---|
| 29 | SET obuild_optimize=yes
|
|---|
| 30 | SET obuild_set_x=no
|
|---|
| 31 |
|
|---|
| 32 | :next_arg
|
|---|
| 33 | IF "%1%" == "" GOTO end_args
|
|---|
| 34 |
|
|---|
| 35 | IF NOT "%1%" == "-v" GOTO end_if_v
|
|---|
| 36 | SET obuild_verbose=yes
|
|---|
| 37 | SHIFT
|
|---|
| 38 | GOTO next_arg
|
|---|
| 39 | :end_if_v
|
|---|
| 40 |
|
|---|
| 41 | IF NOT "%1%" == "-g" GOTO end_if_g
|
|---|
| 42 | SET obuild_debug=yes
|
|---|
| 43 | SHIFT
|
|---|
| 44 | GOTO next_arg
|
|---|
| 45 | :end_if_g
|
|---|
| 46 |
|
|---|
| 47 | IF 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 |
|
|---|
| 55 | REM #////////////////////////////////////////////////
|
|---|
| 56 | REM #/// End arguments.
|
|---|
| 57 | REM #////////////////////////////////////////////////
|
|---|
| 58 |
|
|---|
| 59 | IF %obuild_set_x% == yes ECHO ON
|
|---|
| 60 |
|
|---|
| 61 | IF %obuild_debug% == yes SET obuild_optimize=no
|
|---|
| 62 |
|
|---|
| 63 | IF "%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 |
|
|---|
| 70 | IF "%obuild_platform%" == "" (
|
|---|
| 71 | ECHO obuild_platform variable not defined.
|
|---|
| 72 | GOTO obuild_return
|
|---|
| 73 | )
|
|---|
| 74 |
|
|---|
| 75 | IF "%OBUILD_DIR_BIN%" == "" (
|
|---|
| 76 | SET obuild_dir_bin=bin_obuild
|
|---|
| 77 | ) ELSE (
|
|---|
| 78 | SET obuild_dir_bin=%OBUILD_DIR_BIN%
|
|---|
| 79 | )
|
|---|
| 80 |
|
|---|
| 81 | IF "%obuild_dir_bin%" == "" (
|
|---|
| 82 | ECHO obuild_dir_bin variable not defined.
|
|---|
| 83 | GOTO obuild_return
|
|---|
| 84 | )
|
|---|
| 85 |
|
|---|
| 86 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 87 |
|
|---|
| 88 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 89 | IF 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 |
|
|---|
| 94 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
|
|---|
| 95 | cd "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 96 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 97 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 98 | cd "%obuild_pwd_bhep_0%"
|
|---|
| 99 | SET obuild_pwd_bhep_0=
|
|---|
| 100 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0
|
|---|
| 101 | SET obuild_cxx_command=cl.exe
|
|---|
| 102 | :end_if_platform_0
|
|---|
| 103 | SET obuild_platform_result=
|
|---|
| 104 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return
|
|---|
| 105 |
|
|---|
| 106 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
|
|---|
| 107 | cd "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 108 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 109 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 110 | cd "%obuild_pwd_bhep_0%"
|
|---|
| 111 | SET obuild_pwd_bhep_0=
|
|---|
| 112 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
|
|---|
| 113 | SET obuild_cxx_optimize=/O2
|
|---|
| 114 | :end_if_platform_1
|
|---|
| 115 | SET obuild_platform_result=
|
|---|
| 116 |
|
|---|
| 117 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
|
|---|
| 118 | cd "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 119 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 120 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 121 | cd "%obuild_pwd_bhep_0%"
|
|---|
| 122 | SET obuild_pwd_bhep_0=
|
|---|
| 123 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
|
|---|
| 124 | SET obuild_cxx_debug=/ZI /Od
|
|---|
| 125 | :end_if_platform_2
|
|---|
| 126 | SET obuild_platform_result=
|
|---|
| 127 |
|
|---|
| 128 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
|
|---|
| 129 | cd "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 130 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 131 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 132 | cd "%obuild_pwd_bhep_0%"
|
|---|
| 133 | SET obuild_pwd_bhep_0=
|
|---|
| 134 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
|
|---|
| 135 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
|
|---|
| 136 | :end_if_platform_3
|
|---|
| 137 | SET obuild_platform_result=
|
|---|
| 138 |
|
|---|
| 139 | IF 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 |
|
|---|
| 146 | IF 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 |
|
|---|
| 155 | SET obuild_cxx_includes=/I"%obuild_bhep_path%"
|
|---|
| 156 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%\bhep"
|
|---|
| 157 |
|
|---|
| 158 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
|
|---|
| 159 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
|
|---|
| 160 |
|
|---|
| 161 | REM # pre_build scripts :
|
|---|
| 162 |
|
|---|
| 163 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 164 | cd "%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
|
|---|
| 168 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 169 |
|
|---|
| 170 | cd "%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
|
|---|
| 174 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 175 |
|
|---|
| 176 | cd "%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
|
|---|
| 180 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 181 |
|
|---|
| 182 | cd "%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
|
|---|
| 186 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 187 |
|
|---|
| 188 | cd "%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
|
|---|
| 192 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 193 |
|
|---|
| 194 | cd "%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
|
|---|
| 198 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 199 |
|
|---|
| 200 | cd "%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
|
|---|
| 204 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 205 |
|
|---|
| 206 | cd "%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
|
|---|
| 210 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 211 |
|
|---|
| 212 | cd "%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
|
|---|
| 216 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 217 |
|
|---|
| 218 | cd "%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
|
|---|
| 222 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 223 |
|
|---|
| 224 | cd "%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
|
|---|
| 228 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 229 |
|
|---|
| 230 | cd "%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
|
|---|
| 234 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 235 |
|
|---|
| 236 | cd "%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
|
|---|
| 240 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 241 |
|
|---|
| 242 | cd "%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
|
|---|
| 246 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 247 |
|
|---|
| 248 | cd "%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
|
|---|
| 252 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 253 |
|
|---|
| 254 | cd "%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
|
|---|
| 258 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 259 |
|
|---|
| 260 | cd "%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
|
|---|
| 264 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 265 |
|
|---|
| 266 | cd "%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
|
|---|
| 270 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 271 |
|
|---|
| 272 | cd "%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
|
|---|
| 276 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 277 |
|
|---|
| 278 | cd "%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
|
|---|
| 282 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 283 |
|
|---|
| 284 | cd "%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
|
|---|
| 288 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 289 |
|
|---|
| 290 | cd "%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
|
|---|
| 294 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 295 |
|
|---|
| 296 | cd "%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
|
|---|
| 300 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 301 |
|
|---|
| 302 | cd "%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
|
|---|
| 306 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 307 |
|
|---|
| 308 | cd "%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
|
|---|
| 312 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 313 |
|
|---|
| 314 | cd "%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
|
|---|
| 318 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 319 |
|
|---|
| 320 | cd "%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
|
|---|
| 324 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 325 |
|
|---|
| 326 | cd "%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
|
|---|
| 330 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 331 |
|
|---|
| 332 | cd "%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
|
|---|
| 336 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 337 |
|
|---|
| 338 | cd "%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
|
|---|
| 342 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 343 |
|
|---|
| 344 | cd "%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
|
|---|
| 348 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 349 |
|
|---|
| 350 | cd "%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
|
|---|
| 354 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 355 |
|
|---|
| 356 | cd "%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
|
|---|
| 360 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 361 |
|
|---|
| 362 | cd "%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
|
|---|
| 366 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 367 |
|
|---|
| 368 | cd "%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
|
|---|
| 372 | cd "%obuild_bhep_path%\obuild"
|
|---|
| 373 |
|
|---|
| 374 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 375 |
|
|---|
| 376 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
|
|---|
| 377 | cd "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 378 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 379 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 380 | cd "%obuild_pwd_bhep_0%"
|
|---|
| 381 | SET obuild_pwd_bhep_0=
|
|---|
| 382 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
|
|---|
| 383 | SET obuild_cxx_linker_command=link.exe
|
|---|
| 384 | :end_if_platform_43
|
|---|
| 385 | SET obuild_platform_result=
|
|---|
| 386 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return
|
|---|
| 387 |
|
|---|
| 388 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
|
|---|
| 389 | cd "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 390 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 391 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 392 | cd "%obuild_pwd_bhep_0%"
|
|---|
| 393 | SET obuild_pwd_bhep_0=
|
|---|
| 394 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
|
|---|
| 395 | SET obuild_cxx_linker_debug=/DEBUG
|
|---|
| 396 | :end_if_platform_44
|
|---|
| 397 | SET obuild_platform_result=
|
|---|
| 398 |
|
|---|
| 399 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
|
|---|
| 400 | cd "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 401 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 402 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 403 | cd "%obuild_pwd_bhep_0%"
|
|---|
| 404 | SET obuild_pwd_bhep_0=
|
|---|
| 405 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
|
|---|
| 406 | SET obuild_cxx_linker_options=/nologo
|
|---|
| 407 | :end_if_platform_45
|
|---|
| 408 | SET obuild_platform_result=
|
|---|
| 409 |
|
|---|
| 410 | IF 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 |
|
|---|
| 417 | IF 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 |
|
|---|
| 424 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
|
|---|
| 425 | cd "%obuild_bhep_path%\%obuild_dir_bin%"
|
|---|
| 426 | IF EXIST .\lib_bhep\tmp_objs DEL .\lib_bhep\tmp_objs
|
|---|
| 427 | FOR %%f IN (.\lib_bhep\*.obj) DO ECHO %%f >> .\lib_bhep\tmp_objs
|
|---|
| 428 |
|
|---|
| 429 | REM # Create the archive library bhep :
|
|---|
| 430 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 431 | lib.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 |
|
|---|
| 435 | REM # Build the obuild_windef.exe utility program :
|
|---|
| 436 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_bhep_path%\obuild\cpp\obuild_windef.c" 1> NUL
|
|---|
| 437 | IF EXIST obuild_windef.obj DEL obuild_windef.obj
|
|---|
| 438 |
|
|---|
| 439 | REM # Building the .def file :
|
|---|
| 440 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 441 | dumpbin.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
|
|---|
| 446 | REM # Building the linking library :
|
|---|
| 447 | REM # It produces a .exp file.
|
|---|
| 448 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 449 | lib.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 |
|
|---|
| 454 | REM # Building the DLL :
|
|---|
| 455 | IF EXIST .\bhep.dll DEL .\bhep.dll
|
|---|
| 456 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 457 | link.exe /nologo /dll /out:.\bhep.dll .\bhep.exp .\lib_bhep\bhep.arc %obuild_linked_libraries%
|
|---|
| 458 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 459 |
|
|---|
| 460 | cd "%obuild_pwd_bhep_0%"
|
|---|
| 461 | SET obuild_pwd_bhep_0=
|
|---|
| 462 | REM # Some cleanup :
|
|---|
| 463 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" DEL "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs"
|
|---|
| 464 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" DEL "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp"
|
|---|
| 465 |
|
|---|
| 466 | :obuild_return
|
|---|
| 467 | ENDLOCAL
|
|---|
| 468 | @ECHO ON
|
|---|