[6] | 1 | @ECHO OFF |
---|
| 2 | SETLOCAL |
---|
| 3 | |
---|
| 4 | REM # |
---|
| 5 | REM # File produced by the obuild tool version 1.0 |
---|
[101] | 6 | REM # for the package snovis with version v1r1. |
---|
[6] | 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" ( |
---|
[92] | 90 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL |
---|
[6] | 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= |
---|
[92] | 100 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 |
---|
| 101 | SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2 |
---|
| 102 | :end_if_platform_1 |
---|
[6] | 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= |
---|
[92] | 110 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 |
---|
[6] | 111 | SET bhep_platform=Darwin |
---|
[92] | 112 | :end_if_platform_3 |
---|
[6] | 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= |
---|
[92] | 120 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 |
---|
| 121 | SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0 |
---|
| 122 | :end_if_platform_5 |
---|
[6] | 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= |
---|
[92] | 130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 |
---|
| 131 | SET snova_platform=Darwin |
---|
| 132 | :end_if_platform_7 |
---|
[6] | 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= |
---|
[92] | 140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 |
---|
[6] | 141 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 |
---|
[92] | 142 | :end_if_platform_9 |
---|
[6] | 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= |
---|
[92] | 150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 |
---|
| 151 | SET Geant4_home=/usr/local/geant4/8.2 |
---|
| 152 | :end_if_platform_11 |
---|
[6] | 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% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 158 | cd "%obuild_pwd_snovis_0%" |
---|
| 159 | SET obuild_pwd_snovis_0= |
---|
[92] | 160 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 |
---|
[6] | 161 | SET obuild_cxx_command=c++ |
---|
[92] | 162 | :end_if_platform_12 |
---|
[6] | 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% Linux`) DO SET obuild_platform_result=%%j |
---|
| 168 | cd "%obuild_pwd_snovis_0%" |
---|
| 169 | SET obuild_pwd_snovis_0= |
---|
[92] | 170 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 |
---|
[6] | 171 | SET obuild_cxx_command=c++ |
---|
[92] | 172 | :end_if_platform_13 |
---|
[6] | 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% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 178 | cd "%obuild_pwd_snovis_0%" |
---|
| 179 | SET obuild_pwd_snovis_0= |
---|
[92] | 180 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
[6] | 181 | SET obuild_cxx_command=cxx |
---|
[92] | 182 | :end_if_platform_14 |
---|
[6] | 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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 188 | cd "%obuild_pwd_snovis_0%" |
---|
| 189 | SET obuild_pwd_snovis_0= |
---|
[92] | 190 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 |
---|
[6] | 191 | SET obuild_cxx_command=cl.exe |
---|
[92] | 192 | :end_if_platform_15 |
---|
[6] | 193 | SET obuild_platform_result= |
---|
| 194 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
| 195 | |
---|
| 196 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 197 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 198 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 199 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 200 | cd "%obuild_pwd_snovis_0%" |
---|
| 201 | SET obuild_pwd_snovis_0= |
---|
[92] | 202 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 |
---|
[6] | 203 | SET obuild_cxx_optimize=-O |
---|
[92] | 204 | :end_if_platform_16 |
---|
[6] | 205 | SET obuild_platform_result= |
---|
| 206 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 207 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 208 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 209 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 210 | cd "%obuild_pwd_snovis_0%" |
---|
| 211 | SET obuild_pwd_snovis_0= |
---|
[92] | 212 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 |
---|
[6] | 213 | SET obuild_cxx_optimize=-O |
---|
[92] | 214 | :end_if_platform_17 |
---|
[6] | 215 | SET obuild_platform_result= |
---|
| 216 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 217 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 218 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 219 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 220 | cd "%obuild_pwd_snovis_0%" |
---|
| 221 | SET obuild_pwd_snovis_0= |
---|
[92] | 222 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 |
---|
[6] | 223 | SET obuild_cxx_optimize=-O |
---|
[92] | 224 | :end_if_platform_18 |
---|
[6] | 225 | SET obuild_platform_result= |
---|
| 226 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 227 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 228 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 229 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 230 | cd "%obuild_pwd_snovis_0%" |
---|
| 231 | SET obuild_pwd_snovis_0= |
---|
[92] | 232 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 |
---|
[6] | 233 | SET obuild_cxx_optimize=/O2 |
---|
[92] | 234 | :end_if_platform_19 |
---|
[6] | 235 | SET obuild_platform_result= |
---|
| 236 | |
---|
| 237 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 238 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 239 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 240 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 241 | cd "%obuild_pwd_snovis_0%" |
---|
| 242 | SET obuild_pwd_snovis_0= |
---|
[92] | 243 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 |
---|
[6] | 244 | SET obuild_cxx_debug=-g |
---|
[92] | 245 | :end_if_platform_20 |
---|
[6] | 246 | SET obuild_platform_result= |
---|
| 247 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 248 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 249 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 250 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 251 | cd "%obuild_pwd_snovis_0%" |
---|
| 252 | SET obuild_pwd_snovis_0= |
---|
[92] | 253 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 |
---|
[6] | 254 | SET obuild_cxx_debug=-g |
---|
[92] | 255 | :end_if_platform_21 |
---|
[6] | 256 | SET obuild_platform_result= |
---|
| 257 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 258 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 259 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 260 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 261 | cd "%obuild_pwd_snovis_0%" |
---|
| 262 | SET obuild_pwd_snovis_0= |
---|
[92] | 263 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 |
---|
[6] | 264 | SET obuild_cxx_debug=-g |
---|
[92] | 265 | :end_if_platform_22 |
---|
[6] | 266 | SET obuild_platform_result= |
---|
| 267 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 268 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 269 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 270 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 271 | cd "%obuild_pwd_snovis_0%" |
---|
| 272 | SET obuild_pwd_snovis_0= |
---|
[92] | 273 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23 |
---|
[6] | 274 | SET obuild_cxx_debug=/ZI /Od |
---|
[92] | 275 | :end_if_platform_23 |
---|
[6] | 276 | SET obuild_platform_result= |
---|
| 277 | |
---|
| 278 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 279 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 280 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 281 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 282 | cd "%obuild_pwd_snovis_0%" |
---|
| 283 | SET obuild_pwd_snovis_0= |
---|
[92] | 284 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 |
---|
[6] | 285 | SET obuild_cxx_options=-fPIC |
---|
[92] | 286 | :end_if_platform_24 |
---|
[6] | 287 | SET obuild_platform_result= |
---|
| 288 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 289 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 290 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 291 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 292 | cd "%obuild_pwd_snovis_0%" |
---|
| 293 | SET obuild_pwd_snovis_0= |
---|
[92] | 294 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 |
---|
[6] | 295 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
[92] | 296 | :end_if_platform_25 |
---|
[6] | 297 | SET obuild_platform_result= |
---|
| 298 | |
---|
[92] | 299 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_26 |
---|
[6] | 300 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
[92] | 301 | GOTO end_if_db_build_app_prog_snova_sh_26 |
---|
| 302 | :else_if_db_build_app_prog_snova_sh_26 |
---|
[6] | 303 | SET obuild_cxx_debug_local= |
---|
[92] | 304 | :end_if_db_build_app_prog_snova_sh_26 |
---|
| 305 | |
---|
| 306 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_27 |
---|
[6] | 307 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
[92] | 308 | GOTO end_if_opt_build_app_prog_snova_sh_27 |
---|
| 309 | :else_if_opt_build_app_prog_snova_sh_27 |
---|
[6] | 310 | SET obuild_cxx_optimize_local= |
---|
[92] | 311 | :end_if_opt_build_app_prog_snova_sh_27 |
---|
[6] | 312 | |
---|
[92] | 313 | |
---|
[6] | 314 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 315 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
[92] | 316 | 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" 1> NUL |
---|
[6] | 317 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
| 318 | ) |
---|
| 319 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 320 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 321 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 322 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j |
---|
| 323 | cd "%obuild_pwd_snovis_0%" |
---|
| 324 | SET obuild_pwd_snovis_0= |
---|
| 325 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return |
---|
| 326 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 327 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 328 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 329 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j |
---|
| 330 | cd "%obuild_pwd_snovis_0%" |
---|
| 331 | SET obuild_pwd_snovis_0= |
---|
| 332 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return |
---|
| 333 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 334 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 335 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 336 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j |
---|
| 337 | cd "%obuild_pwd_snovis_0%" |
---|
| 338 | SET obuild_pwd_snovis_0= |
---|
| 339 | IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return |
---|
| 340 | |
---|
| 341 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 342 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 343 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 344 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 345 | cd "%obuild_pwd_snovis_0%" |
---|
| 346 | SET obuild_pwd_snovis_0= |
---|
[92] | 347 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28 |
---|
| 348 | SET obuild_cxx_includes=-I${snova_home} |
---|
| 349 | :end_if_platform_28 |
---|
[6] | 350 | SET obuild_platform_result= |
---|
| 351 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 352 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 353 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 354 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 355 | cd "%obuild_pwd_snovis_0%" |
---|
| 356 | SET obuild_pwd_snovis_0= |
---|
[92] | 357 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29 |
---|
| 358 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include |
---|
| 359 | :end_if_platform_29 |
---|
[6] | 360 | SET obuild_platform_result= |
---|
| 361 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 362 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 363 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 364 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 365 | cd "%obuild_pwd_snovis_0%" |
---|
| 366 | SET obuild_pwd_snovis_0= |
---|
[92] | 367 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 |
---|
| 368 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include |
---|
| 369 | :end_if_platform_30 |
---|
[6] | 370 | SET obuild_platform_result= |
---|
| 371 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 372 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 373 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
[92] | 374 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
[6] | 375 | cd "%obuild_pwd_snovis_0%" |
---|
| 376 | SET obuild_pwd_snovis_0= |
---|
[92] | 377 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31 |
---|
| 378 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include |
---|
| 379 | :end_if_platform_31 |
---|
[6] | 380 | SET obuild_platform_result= |
---|
| 381 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 382 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 383 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 384 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 385 | cd "%obuild_pwd_snovis_0%" |
---|
| 386 | SET obuild_pwd_snovis_0= |
---|
[92] | 387 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32 |
---|
| 388 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home} |
---|
| 389 | :end_if_platform_32 |
---|
| 390 | SET obuild_platform_result= |
---|
| 391 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 392 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 393 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 394 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 395 | cd "%obuild_pwd_snovis_0%" |
---|
| 396 | SET obuild_pwd_snovis_0= |
---|
| 397 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33 |
---|
[6] | 398 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
[92] | 399 | :end_if_platform_33 |
---|
[6] | 400 | SET obuild_platform_result= |
---|
| 401 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 402 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 403 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 404 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 405 | cd "%obuild_pwd_snovis_0%" |
---|
| 406 | SET obuild_pwd_snovis_0= |
---|
[92] | 407 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34 |
---|
[6] | 408 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include |
---|
[92] | 409 | :end_if_platform_34 |
---|
[6] | 410 | SET obuild_platform_result= |
---|
| 411 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include" |
---|
| 412 | |
---|
| 413 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" |
---|
| 414 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" |
---|
| 415 | |
---|
| 416 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 417 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
[92] | 418 | %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_snova2.obj /Tp"..\applications\prog_snova2.cxx" 1> cl_exe_error |
---|
| 419 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 420 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
[6] | 421 | cd "%obuild_snovis_path%\obuild" |
---|
| 422 | |
---|
| 423 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 424 | |
---|
| 425 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 426 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 427 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 428 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 429 | cd "%obuild_pwd_snovis_0%" |
---|
| 430 | SET obuild_pwd_snovis_0= |
---|
[92] | 431 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 |
---|
[6] | 432 | SET obuild_cxx_linker_command=c++ |
---|
[92] | 433 | :end_if_platform_37 |
---|
[6] | 434 | SET obuild_platform_result= |
---|
| 435 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 436 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 437 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 438 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 439 | cd "%obuild_pwd_snovis_0%" |
---|
| 440 | SET obuild_pwd_snovis_0= |
---|
[92] | 441 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 |
---|
[6] | 442 | SET obuild_cxx_linker_command=c++ |
---|
[92] | 443 | :end_if_platform_38 |
---|
[6] | 444 | SET obuild_platform_result= |
---|
| 445 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 446 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 447 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 448 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 449 | cd "%obuild_pwd_snovis_0%" |
---|
| 450 | SET obuild_pwd_snovis_0= |
---|
[92] | 451 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39 |
---|
[6] | 452 | SET obuild_cxx_linker_command=cxx |
---|
[92] | 453 | :end_if_platform_39 |
---|
[6] | 454 | SET obuild_platform_result= |
---|
| 455 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 456 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 457 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 458 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 459 | cd "%obuild_pwd_snovis_0%" |
---|
| 460 | SET obuild_pwd_snovis_0= |
---|
[92] | 461 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 |
---|
[6] | 462 | SET obuild_cxx_linker_command=link.exe |
---|
[92] | 463 | :end_if_platform_40 |
---|
[6] | 464 | SET obuild_platform_result= |
---|
| 465 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
| 466 | |
---|
| 467 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 468 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 469 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 470 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 471 | cd "%obuild_pwd_snovis_0%" |
---|
| 472 | SET obuild_pwd_snovis_0= |
---|
[92] | 473 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 |
---|
[6] | 474 | SET obuild_cxx_linker_debug=-g |
---|
[92] | 475 | :end_if_platform_41 |
---|
[6] | 476 | SET obuild_platform_result= |
---|
| 477 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 478 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 479 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 480 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 481 | cd "%obuild_pwd_snovis_0%" |
---|
| 482 | SET obuild_pwd_snovis_0= |
---|
[92] | 483 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 |
---|
[6] | 484 | SET obuild_cxx_linker_debug=-g |
---|
[92] | 485 | :end_if_platform_42 |
---|
[6] | 486 | SET obuild_platform_result= |
---|
| 487 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 488 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 489 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 490 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 491 | cd "%obuild_pwd_snovis_0%" |
---|
| 492 | SET obuild_pwd_snovis_0= |
---|
[92] | 493 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 |
---|
[6] | 494 | SET obuild_cxx_linker_debug=-g |
---|
[92] | 495 | :end_if_platform_43 |
---|
[6] | 496 | SET obuild_platform_result= |
---|
| 497 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 498 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 499 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 500 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 501 | cd "%obuild_pwd_snovis_0%" |
---|
| 502 | SET obuild_pwd_snovis_0= |
---|
[92] | 503 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44 |
---|
[6] | 504 | SET obuild_cxx_linker_debug=/DEBUG |
---|
[92] | 505 | :end_if_platform_44 |
---|
[6] | 506 | SET obuild_platform_result= |
---|
| 507 | |
---|
| 508 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 509 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 510 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 511 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 512 | cd "%obuild_pwd_snovis_0%" |
---|
| 513 | SET obuild_pwd_snovis_0= |
---|
[92] | 514 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45 |
---|
[6] | 515 | SET obuild_cxx_linker_options=/nologo |
---|
[92] | 516 | :end_if_platform_45 |
---|
[6] | 517 | SET obuild_platform_result= |
---|
| 518 | |
---|
[92] | 519 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_46 |
---|
[6] | 520 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
[92] | 521 | GOTO end_if_db_build_app_prog_snova_sh_46 |
---|
| 522 | :else_if_db_build_app_prog_snova_sh_46 |
---|
[6] | 523 | SET obuild_cxx_linker_debug_local= |
---|
[92] | 524 | :end_if_db_build_app_prog_snova_sh_46 |
---|
| 525 | |
---|
| 526 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_47 |
---|
[6] | 527 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
[92] | 528 | GOTO end_if_opt_build_app_prog_snova_sh_47 |
---|
| 529 | :else_if_opt_build_app_prog_snova_sh_47 |
---|
[6] | 530 | SET obuild_cxx_linker_optimize_local= |
---|
[92] | 531 | :end_if_opt_build_app_prog_snova_sh_47 |
---|
| 532 | |
---|
| 533 | SET obuild_linked_libraries=-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils |
---|
| 534 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep |
---|
| 535 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces |
---|
[6] | 536 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 537 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 538 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 539 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 540 | cd "%obuild_pwd_snovis_0%" |
---|
| 541 | SET obuild_pwd_snovis_0= |
---|
[92] | 542 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51 |
---|
| 543 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global |
---|
| 544 | :end_if_platform_51 |
---|
[6] | 545 | SET obuild_platform_result= |
---|
| 546 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 547 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 548 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 549 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 550 | cd "%obuild_pwd_snovis_0%" |
---|
| 551 | SET obuild_pwd_snovis_0= |
---|
[92] | 552 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52 |
---|
[6] | 553 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP |
---|
[92] | 554 | :end_if_platform_52 |
---|
[6] | 555 | SET obuild_platform_result= |
---|
| 556 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib" |
---|
| 557 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib" |
---|
| 558 | |
---|
| 559 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 560 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 561 | IF EXIST .\app_prog_snova\tmp_objs DEL .\app_prog_snova\tmp_objs |
---|
| 562 | FOR %%f IN (.\app_prog_snova\*.obj) DO ECHO %%f >> .\app_prog_snova\tmp_objs |
---|
| 563 | REM # Link prog_snova : |
---|
| 564 | IF EXIST .\prog_snova.exe DEL .\prog_snova.exe |
---|
| 565 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 566 | %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% |
---|
| 567 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
| 568 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 569 | |
---|
| 570 | cd "%obuild_pwd_snovis_0%" |
---|
| 571 | SET obuild_pwd_snovis_0= |
---|
| 572 | REM # Some cleanup : |
---|
| 573 | 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" |
---|
| 574 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk" |
---|
| 575 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb" |
---|
| 576 | 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" |
---|
| 577 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp" |
---|
| 578 | |
---|
| 579 | :obuild_return |
---|
| 580 | ENDLOCAL |
---|
| 581 | @ECHO ON |
---|