[6] | 1 | @ECHO OFF |
---|
| 2 | SETLOCAL |
---|
| 3 | |
---|
| 4 | REM # |
---|
| 5 | REM # File produced by the obuild tool version 1.0 |
---|
| 6 | REM # for the package snovis with version v1r0. |
---|
| 7 | REM # |
---|
| 8 | |
---|
| 9 | REM #//////////////////////////////////////////////// |
---|
| 10 | REM # Usage : |
---|
| 11 | REM # DOS> CD some_path\pack\version\obuild |
---|
| 12 | REM # DOS> DOS\build_prog_snova |
---|
| 13 | REM # |
---|
| 14 | REM #//////////////////////////////////////////////// |
---|
| 15 | |
---|
| 16 | REM #//////////////////////////////////////////////// |
---|
| 17 | REM #/// Get path of this file : |
---|
| 18 | REM #//////////////////////////////////////////////// |
---|
| 19 | SET obuild_snovis_path=%~dp0 |
---|
| 20 | REM # Remove ending \obuild\DOS\ |
---|
| 21 | SET obuild_snovis_path=%obuild_snovis_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=%obuild_platform%_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_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 87 | |
---|
| 88 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 89 | IF 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" |
---|
| 91 | IF EXIST obuild_platform.obj DEL obuild_platform.obj |
---|
| 92 | ) |
---|
| 93 | |
---|
| 94 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 95 | cd "%obuild_snovis_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% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 98 | cd "%obuild_pwd_snovis_0%" |
---|
| 99 | SET obuild_pwd_snovis_0= |
---|
| 100 | IF %obuild_platform_result% == yes ( |
---|
| 101 | SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1 |
---|
| 102 | ) |
---|
| 103 | SET obuild_platform_result= |
---|
| 104 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 105 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 106 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 107 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 108 | cd "%obuild_pwd_snovis_0%" |
---|
| 109 | SET obuild_pwd_snovis_0= |
---|
| 110 | IF %obuild_platform_result% == yes ( |
---|
| 111 | SET bhep_platform=Darwin |
---|
| 112 | ) |
---|
| 113 | SET obuild_platform_result= |
---|
| 114 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 115 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 116 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 117 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 118 | cd "%obuild_pwd_snovis_0%" |
---|
| 119 | SET obuild_pwd_snovis_0= |
---|
| 120 | IF %obuild_platform_result% == yes ( |
---|
| 121 | SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils |
---|
| 122 | ) |
---|
| 123 | SET obuild_platform_result= |
---|
| 124 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 125 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 126 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 127 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 128 | cd "%obuild_pwd_snovis_0%" |
---|
| 129 | SET obuild_pwd_snovis_0= |
---|
| 130 | IF %obuild_platform_result% == yes ( |
---|
| 131 | SET GeomUtils_platform=Darwin-i386 |
---|
| 132 | ) |
---|
| 133 | SET obuild_platform_result= |
---|
| 134 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 135 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 136 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 137 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 138 | cd "%obuild_pwd_snovis_0%" |
---|
| 139 | SET obuild_pwd_snovis_0= |
---|
| 140 | IF %obuild_platform_result% == yes ( |
---|
| 141 | SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2 |
---|
| 142 | ) |
---|
| 143 | SET obuild_platform_result= |
---|
| 144 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 145 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 146 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 147 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 148 | cd "%obuild_pwd_snovis_0%" |
---|
| 149 | SET obuild_pwd_snovis_0= |
---|
| 150 | IF %obuild_platform_result% == yes ( |
---|
| 151 | SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova |
---|
| 152 | ) |
---|
| 153 | SET obuild_platform_result= |
---|
| 154 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 155 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 156 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 157 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 158 | cd "%obuild_pwd_snovis_0%" |
---|
| 159 | SET obuild_pwd_snovis_0= |
---|
| 160 | IF %obuild_platform_result% == yes ( |
---|
| 161 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 |
---|
| 162 | ) |
---|
| 163 | SET obuild_platform_result= |
---|
| 164 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 165 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 166 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 167 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 168 | cd "%obuild_pwd_snovis_0%" |
---|
| 169 | SET obuild_pwd_snovis_0= |
---|
| 170 | IF %obuild_platform_result% == yes ( |
---|
| 171 | SET Geant4_home=/geant4/geant4.8.2 |
---|
| 172 | ) |
---|
| 173 | SET obuild_platform_result= |
---|
| 174 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 175 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 176 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 177 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 178 | cd "%obuild_pwd_snovis_0%" |
---|
| 179 | SET obuild_pwd_snovis_0= |
---|
| 180 | IF %obuild_platform_result% == yes ( |
---|
| 181 | SET Geant4_work=${Geant4_home}/Darwin |
---|
| 182 | ) |
---|
| 183 | SET obuild_platform_result= |
---|
| 184 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 185 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 186 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 187 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 188 | cd "%obuild_pwd_snovis_0%" |
---|
| 189 | SET obuild_pwd_snovis_0= |
---|
| 190 | IF %obuild_platform_result% == yes ( |
---|
| 191 | SET Geant4_work=${Geant4_home}/slc3_gcc323 |
---|
| 192 | ) |
---|
| 193 | SET obuild_platform_result= |
---|
| 194 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 195 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 196 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 197 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 198 | cd "%obuild_pwd_snovis_0%" |
---|
| 199 | SET obuild_pwd_snovis_0= |
---|
| 200 | IF %obuild_platform_result% == yes ( |
---|
| 201 | SET Geant4_system=Darwin-g++ |
---|
| 202 | ) |
---|
| 203 | SET obuild_platform_result= |
---|
| 204 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 205 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 206 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 207 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 208 | cd "%obuild_pwd_snovis_0%" |
---|
| 209 | SET obuild_pwd_snovis_0= |
---|
| 210 | IF %obuild_platform_result% == yes ( |
---|
| 211 | SET Geant4_system=Linux-g++ |
---|
| 212 | ) |
---|
| 213 | SET obuild_platform_result= |
---|
| 214 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 215 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 216 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 217 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 218 | cd "%obuild_pwd_snovis_0%" |
---|
| 219 | SET obuild_pwd_snovis_0= |
---|
| 220 | IF %obuild_platform_result% == yes ( |
---|
| 221 | SET Geant4_system=WIN32-VC |
---|
| 222 | ) |
---|
| 223 | SET obuild_platform_result= |
---|
| 224 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 225 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 226 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 227 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 228 | cd "%obuild_pwd_snovis_0%" |
---|
| 229 | SET obuild_pwd_snovis_0= |
---|
| 230 | IF %obuild_platform_result% == yes ( |
---|
| 231 | SET obuild_cxx_command=c++ |
---|
| 232 | ) |
---|
| 233 | SET obuild_platform_result= |
---|
| 234 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 235 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 236 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 237 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 238 | cd "%obuild_pwd_snovis_0%" |
---|
| 239 | SET obuild_pwd_snovis_0= |
---|
| 240 | IF %obuild_platform_result% == yes ( |
---|
| 241 | SET obuild_cxx_command=c++ |
---|
| 242 | ) |
---|
| 243 | SET obuild_platform_result= |
---|
| 244 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 245 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 246 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 247 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 248 | cd "%obuild_pwd_snovis_0%" |
---|
| 249 | SET obuild_pwd_snovis_0= |
---|
| 250 | IF %obuild_platform_result% == yes ( |
---|
| 251 | SET obuild_cxx_command=cxx |
---|
| 252 | ) |
---|
| 253 | SET obuild_platform_result= |
---|
| 254 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 255 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 256 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 257 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 258 | cd "%obuild_pwd_snovis_0%" |
---|
| 259 | SET obuild_pwd_snovis_0= |
---|
| 260 | IF %obuild_platform_result% == yes ( |
---|
| 261 | SET obuild_cxx_command=cl.exe |
---|
| 262 | ) |
---|
| 263 | SET obuild_platform_result= |
---|
| 264 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
| 265 | |
---|
| 266 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 267 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 268 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 269 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 270 | cd "%obuild_pwd_snovis_0%" |
---|
| 271 | SET obuild_pwd_snovis_0= |
---|
| 272 | IF %obuild_platform_result% == yes ( |
---|
| 273 | SET obuild_cxx_optimize=-O |
---|
| 274 | ) |
---|
| 275 | SET obuild_platform_result= |
---|
| 276 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 277 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 278 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 279 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 280 | cd "%obuild_pwd_snovis_0%" |
---|
| 281 | SET obuild_pwd_snovis_0= |
---|
| 282 | IF %obuild_platform_result% == yes ( |
---|
| 283 | SET obuild_cxx_optimize=-O |
---|
| 284 | ) |
---|
| 285 | SET obuild_platform_result= |
---|
| 286 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 287 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 288 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 289 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 290 | cd "%obuild_pwd_snovis_0%" |
---|
| 291 | SET obuild_pwd_snovis_0= |
---|
| 292 | IF %obuild_platform_result% == yes ( |
---|
| 293 | SET obuild_cxx_optimize=-O |
---|
| 294 | ) |
---|
| 295 | SET obuild_platform_result= |
---|
| 296 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 297 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 298 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 299 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 300 | cd "%obuild_pwd_snovis_0%" |
---|
| 301 | SET obuild_pwd_snovis_0= |
---|
| 302 | IF %obuild_platform_result% == yes ( |
---|
| 303 | SET obuild_cxx_optimize=/O2 |
---|
| 304 | ) |
---|
| 305 | SET obuild_platform_result= |
---|
| 306 | |
---|
| 307 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 308 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 309 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 310 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 311 | cd "%obuild_pwd_snovis_0%" |
---|
| 312 | SET obuild_pwd_snovis_0= |
---|
| 313 | IF %obuild_platform_result% == yes ( |
---|
| 314 | SET obuild_cxx_debug=-g |
---|
| 315 | ) |
---|
| 316 | SET obuild_platform_result= |
---|
| 317 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 318 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 319 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 320 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 321 | cd "%obuild_pwd_snovis_0%" |
---|
| 322 | SET obuild_pwd_snovis_0= |
---|
| 323 | IF %obuild_platform_result% == yes ( |
---|
| 324 | SET obuild_cxx_debug=-g |
---|
| 325 | ) |
---|
| 326 | SET obuild_platform_result= |
---|
| 327 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 328 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 329 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 330 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 331 | cd "%obuild_pwd_snovis_0%" |
---|
| 332 | SET obuild_pwd_snovis_0= |
---|
| 333 | IF %obuild_platform_result% == yes ( |
---|
| 334 | SET obuild_cxx_debug=-g |
---|
| 335 | ) |
---|
| 336 | SET obuild_platform_result= |
---|
| 337 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 338 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 339 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 340 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 341 | cd "%obuild_pwd_snovis_0%" |
---|
| 342 | SET obuild_pwd_snovis_0= |
---|
| 343 | IF %obuild_platform_result% == yes ( |
---|
| 344 | SET obuild_cxx_debug=/ZI /Od |
---|
| 345 | ) |
---|
| 346 | SET obuild_platform_result= |
---|
| 347 | |
---|
| 348 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 349 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 350 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 351 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 352 | cd "%obuild_pwd_snovis_0%" |
---|
| 353 | SET obuild_pwd_snovis_0= |
---|
| 354 | IF %obuild_platform_result% == yes ( |
---|
| 355 | SET obuild_cxx_options=-fPIC |
---|
| 356 | ) |
---|
| 357 | SET obuild_platform_result= |
---|
| 358 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 359 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 360 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 361 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 362 | cd "%obuild_pwd_snovis_0%" |
---|
| 363 | SET obuild_pwd_snovis_0= |
---|
| 364 | IF %obuild_platform_result% == yes ( |
---|
| 365 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
| 366 | ) |
---|
| 367 | SET obuild_platform_result= |
---|
| 368 | |
---|
| 369 | IF %obuild_debug% == yes ( |
---|
| 370 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
| 371 | ) ELSE ( |
---|
| 372 | SET obuild_cxx_debug_local= |
---|
| 373 | ) |
---|
| 374 | IF %obuild_optimize% == yes ( |
---|
| 375 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
| 376 | ) ELSE ( |
---|
| 377 | SET obuild_cxx_optimize_local= |
---|
| 378 | ) |
---|
| 379 | |
---|
| 380 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 381 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
| 382 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" |
---|
| 383 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
| 384 | ) |
---|
| 385 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 386 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 387 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 388 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j |
---|
| 389 | cd "%obuild_pwd_snovis_0%" |
---|
| 390 | SET obuild_pwd_snovis_0= |
---|
| 391 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return |
---|
| 392 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 393 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 394 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 395 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j |
---|
| 396 | cd "%obuild_pwd_snovis_0%" |
---|
| 397 | SET obuild_pwd_snovis_0= |
---|
| 398 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return |
---|
| 399 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 400 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 401 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 402 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j |
---|
| 403 | cd "%obuild_pwd_snovis_0%" |
---|
| 404 | SET obuild_pwd_snovis_0= |
---|
| 405 | IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return |
---|
| 406 | |
---|
| 407 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 408 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 409 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 410 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 411 | cd "%obuild_pwd_snovis_0%" |
---|
| 412 | SET obuild_pwd_snovis_0= |
---|
| 413 | IF %obuild_platform_result% == yes ( |
---|
| 414 | SET obuild_cxx_includes=-I${SNOVA_ROOT} |
---|
| 415 | ) |
---|
| 416 | SET obuild_platform_result= |
---|
| 417 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 418 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 419 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 420 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 421 | cd "%obuild_pwd_snovis_0%" |
---|
| 422 | SET obuild_pwd_snovis_0= |
---|
| 423 | IF %obuild_platform_result% == yes ( |
---|
| 424 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include |
---|
| 425 | ) |
---|
| 426 | SET obuild_platform_result= |
---|
| 427 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 428 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 429 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 430 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 431 | cd "%obuild_pwd_snovis_0%" |
---|
| 432 | SET obuild_pwd_snovis_0= |
---|
| 433 | IF %obuild_platform_result% == yes ( |
---|
| 434 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include |
---|
| 435 | ) |
---|
| 436 | SET obuild_platform_result= |
---|
| 437 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 438 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 439 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 440 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 441 | cd "%obuild_pwd_snovis_0%" |
---|
| 442 | SET obuild_pwd_snovis_0= |
---|
| 443 | IF %obuild_platform_result% == yes ( |
---|
| 444 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include |
---|
| 445 | ) |
---|
| 446 | SET obuild_platform_result= |
---|
| 447 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 448 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 449 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 450 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 451 | cd "%obuild_pwd_snovis_0%" |
---|
| 452 | SET obuild_pwd_snovis_0= |
---|
| 453 | IF %obuild_platform_result% == yes ( |
---|
| 454 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
| 455 | ) |
---|
| 456 | SET obuild_platform_result= |
---|
| 457 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 458 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 459 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 460 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 461 | cd "%obuild_pwd_snovis_0%" |
---|
| 462 | SET obuild_pwd_snovis_0= |
---|
| 463 | IF %obuild_platform_result% == yes ( |
---|
| 464 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include |
---|
| 465 | ) |
---|
| 466 | SET obuild_platform_result= |
---|
| 467 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include" |
---|
| 468 | |
---|
| 469 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" |
---|
| 470 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" |
---|
| 471 | |
---|
| 472 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 473 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 474 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_prog_snova\prog_snova.obj /Tp..\applications\prog_snova.cc |
---|
| 475 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
| 476 | cd "%obuild_snovis_path%\obuild" |
---|
| 477 | |
---|
| 478 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 479 | |
---|
| 480 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 481 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 482 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 483 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 484 | cd "%obuild_pwd_snovis_0%" |
---|
| 485 | SET obuild_pwd_snovis_0= |
---|
| 486 | IF %obuild_platform_result% == yes ( |
---|
| 487 | SET obuild_cxx_linker_command=c++ |
---|
| 488 | ) |
---|
| 489 | SET obuild_platform_result= |
---|
| 490 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 491 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 492 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 493 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 494 | cd "%obuild_pwd_snovis_0%" |
---|
| 495 | SET obuild_pwd_snovis_0= |
---|
| 496 | IF %obuild_platform_result% == yes ( |
---|
| 497 | SET obuild_cxx_linker_command=c++ |
---|
| 498 | ) |
---|
| 499 | SET obuild_platform_result= |
---|
| 500 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 501 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 502 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 503 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 504 | cd "%obuild_pwd_snovis_0%" |
---|
| 505 | SET obuild_pwd_snovis_0= |
---|
| 506 | IF %obuild_platform_result% == yes ( |
---|
| 507 | SET obuild_cxx_linker_command=cxx |
---|
| 508 | ) |
---|
| 509 | SET obuild_platform_result= |
---|
| 510 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 511 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 512 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 513 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 514 | cd "%obuild_pwd_snovis_0%" |
---|
| 515 | SET obuild_pwd_snovis_0= |
---|
| 516 | IF %obuild_platform_result% == yes ( |
---|
| 517 | SET obuild_cxx_linker_command=link.exe |
---|
| 518 | ) |
---|
| 519 | SET obuild_platform_result= |
---|
| 520 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
| 521 | |
---|
| 522 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 523 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 524 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 525 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 526 | cd "%obuild_pwd_snovis_0%" |
---|
| 527 | SET obuild_pwd_snovis_0= |
---|
| 528 | IF %obuild_platform_result% == yes ( |
---|
| 529 | SET obuild_cxx_linker_debug=-g |
---|
| 530 | ) |
---|
| 531 | SET obuild_platform_result= |
---|
| 532 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 533 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 534 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 535 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 536 | cd "%obuild_pwd_snovis_0%" |
---|
| 537 | SET obuild_pwd_snovis_0= |
---|
| 538 | IF %obuild_platform_result% == yes ( |
---|
| 539 | SET obuild_cxx_linker_debug=-g |
---|
| 540 | ) |
---|
| 541 | SET obuild_platform_result= |
---|
| 542 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 543 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 544 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 545 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 546 | cd "%obuild_pwd_snovis_0%" |
---|
| 547 | SET obuild_pwd_snovis_0= |
---|
| 548 | IF %obuild_platform_result% == yes ( |
---|
| 549 | SET obuild_cxx_linker_debug=-g |
---|
| 550 | ) |
---|
| 551 | SET obuild_platform_result= |
---|
| 552 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 553 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 554 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 555 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 556 | cd "%obuild_pwd_snovis_0%" |
---|
| 557 | SET obuild_pwd_snovis_0= |
---|
| 558 | IF %obuild_platform_result% == yes ( |
---|
| 559 | SET obuild_cxx_linker_debug=/DEBUG |
---|
| 560 | ) |
---|
| 561 | SET obuild_platform_result= |
---|
| 562 | |
---|
| 563 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 564 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 565 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 566 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 567 | cd "%obuild_pwd_snovis_0%" |
---|
| 568 | SET obuild_pwd_snovis_0= |
---|
| 569 | IF %obuild_platform_result% == yes ( |
---|
| 570 | SET obuild_cxx_linker_options=/nologo |
---|
| 571 | ) |
---|
| 572 | SET obuild_platform_result= |
---|
| 573 | |
---|
| 574 | IF %obuild_debug% == yes ( |
---|
| 575 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
| 576 | ) ELSE ( |
---|
| 577 | SET obuild_cxx_linker_debug_local= |
---|
| 578 | ) |
---|
| 579 | IF %obuild_optimize% == yes ( |
---|
| 580 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
| 581 | ) ELSE ( |
---|
| 582 | SET obuild_cxx_linker_optimize_local= |
---|
| 583 | ) |
---|
| 584 | SET obuild_linked_libraries="%obuild_snovis_path%\%obuild_dir_bin%\snova.lib" |
---|
| 585 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom |
---|
| 586 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils |
---|
| 587 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${BHEP_ROOT}/Darwin/lib -lbhep |
---|
| 588 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_work}/lib/${Geant4_system} -lG4interfaces |
---|
| 589 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 590 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 591 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 592 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 593 | cd "%obuild_pwd_snovis_0%" |
---|
| 594 | SET obuild_pwd_snovis_0= |
---|
| 595 | IF %obuild_platform_result% == yes ( |
---|
| 596 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_work}/lib/${Geant4_system} -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global |
---|
| 597 | ) |
---|
| 598 | SET obuild_platform_result= |
---|
| 599 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 600 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 601 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 602 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 603 | cd "%obuild_pwd_snovis_0%" |
---|
| 604 | SET obuild_pwd_snovis_0= |
---|
| 605 | IF %obuild_platform_result% == yes ( |
---|
| 606 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP |
---|
| 607 | ) |
---|
| 608 | SET obuild_platform_result= |
---|
| 609 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib" |
---|
| 610 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib" |
---|
| 611 | |
---|
| 612 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 613 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 614 | IF EXIST .\app_prog_snova\tmp_objs DEL .\app_prog_snova\tmp_objs |
---|
| 615 | FOR %%f IN (.\app_prog_snova\*.obj) DO ECHO %%f >> .\app_prog_snova\tmp_objs |
---|
| 616 | REM # Link prog_snova : |
---|
| 617 | IF EXIST .\prog_snova.exe DEL .\prog_snova.exe |
---|
| 618 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 619 | %obuild_cxx_linker_command% %obuild_cxx_linker_debug_local% %obuild_cxx_linker_optimize_local% %obuild_cxx_linker_options% /out:.\prog_snova.exe @.\app_prog_snova\tmp_objs %obuild_linked_libraries% |
---|
| 620 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
| 621 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 622 | |
---|
| 623 | cd "%obuild_pwd_snovis_0%" |
---|
| 624 | SET obuild_pwd_snovis_0= |
---|
| 625 | REM # Some cleanup : |
---|
| 626 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs" |
---|
| 627 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk" |
---|
| 628 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb" |
---|
| 629 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs" |
---|
| 630 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp" |
---|
| 631 | |
---|
| 632 | :obuild_return |
---|
| 633 | ENDLOCAL |
---|
| 634 | @ECHO ON |
---|