- Timestamp:
- Feb 9, 2007, 4:41:48 PM (18 years ago)
- Location:
- build/snova/trunk/obuild
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
build/snova/trunk/obuild/DOS/build.bat
r130 r132 181 181 :end_if_group_3 182 182 183 IF NOT %obuild_group% == main GOTO end_if_group_4 184 IF NOT %obuild_do_mains% == yes GOTO end_if_main_4 185 IF NOT EXIST .\DOS\build_app_prog_snova.bat GOTO end_if_build_4 186 CALL .\DOS\build_app_prog_snova.bat %obuild_args% 187 @IF ERRORLEVEL 1 @GOTO obuild_return 188 @ECHO OFF 189 :end_if_build_4 190 :end_if_main_4 191 :end_if_group_4 192 183 193 :obuild_return 184 194 ENDLOCAL -
build/snova/trunk/obuild/DOS/build_lib_geomutils.bat
r130 r132 105 105 cd "%obuild_snova_path%\%obuild_dir_bin%" 106 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% UNIX`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snova_0%" 109 SET obuild_pwd_snova_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2 112 :end_if_platform_3 113 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 115 cd "%obuild_snova_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 118 cd "%obuild_pwd_snova_0%" 109 119 SET obuild_pwd_snova_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 2120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 111 121 SET obuild_cxx_command=c++ 112 :end_if_platform_ 2122 :end_if_platform_4 113 123 SET obuild_platform_result= 114 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 118 128 cd "%obuild_pwd_snova_0%" 119 129 SET obuild_pwd_snova_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 3130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 131 SET obuild_cxx_command=c++ 122 :end_if_platform_ 3132 :end_if_platform_5 123 133 SET obuild_platform_result= 124 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 128 138 cd "%obuild_pwd_snova_0%" 129 139 SET obuild_pwd_snova_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 4140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 131 141 SET obuild_cxx_command=cxx 132 :end_if_platform_ 4133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 135 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snova_0%" 139 SET obuild_pwd_snova_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 5142 :end_if_platform_6 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 145 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snova_0%" 149 SET obuild_pwd_snova_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 141 151 SET obuild_cxx_command=cl.exe 142 :end_if_platform_ 5152 :end_if_platform_7 143 153 SET obuild_platform_result= 144 154 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return … … 148 158 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 149 159 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 150 cd "%obuild_pwd_snova_0%"151 SET obuild_pwd_snova_0=152 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6153 SET obuild_cxx_optimize=-O154 :end_if_platform_6155 SET obuild_platform_result=156 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d157 cd "%obuild_snova_path%\%obuild_dir_bin%"158 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return159 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j160 cd "%obuild_pwd_snova_0%"161 SET obuild_pwd_snova_0=162 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7163 SET obuild_cxx_optimize=-O164 :end_if_platform_7165 SET obuild_platform_result=166 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d167 cd "%obuild_snova_path%\%obuild_dir_bin%"168 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return169 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j170 160 cd "%obuild_pwd_snova_0%" 171 161 SET obuild_pwd_snova_0= … … 177 167 cd "%obuild_snova_path%\%obuild_dir_bin%" 178 168 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j169 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 180 170 cd "%obuild_pwd_snova_0%" 181 171 SET obuild_pwd_snova_0= 182 172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 173 SET obuild_cxx_optimize=-O 174 :end_if_platform_9 175 SET obuild_platform_result= 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 177 cd "%obuild_snova_path%\%obuild_dir_bin%" 178 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snova_0%" 181 SET obuild_pwd_snova_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_10 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 187 cd "%obuild_snova_path%\%obuild_dir_bin%" 188 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snova_0%" 191 SET obuild_pwd_snova_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 183 193 SET obuild_cxx_optimize=/O2 184 :end_if_platform_ 9194 :end_if_platform_11 185 195 SET obuild_platform_result= 186 196 … … 189 199 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 190 200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 191 cd "%obuild_pwd_snova_0%"192 SET obuild_pwd_snova_0=193 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10194 SET obuild_cxx_debug=-g195 :end_if_platform_10196 SET obuild_platform_result=197 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d198 cd "%obuild_snova_path%\%obuild_dir_bin%"199 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j201 cd "%obuild_pwd_snova_0%"202 SET obuild_pwd_snova_0=203 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11204 SET obuild_cxx_debug=-g205 :end_if_platform_11206 SET obuild_platform_result=207 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d208 cd "%obuild_snova_path%\%obuild_dir_bin%"209 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return210 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j211 201 cd "%obuild_pwd_snova_0%" 212 202 SET obuild_pwd_snova_0= … … 218 208 cd "%obuild_snova_path%\%obuild_dir_bin%" 219 209 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j210 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 221 211 cd "%obuild_pwd_snova_0%" 222 212 SET obuild_pwd_snova_0= 223 213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 214 SET obuild_cxx_debug=-g 215 :end_if_platform_13 216 SET obuild_platform_result= 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 218 cd "%obuild_snova_path%\%obuild_dir_bin%" 219 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snova_0%" 222 SET obuild_pwd_snova_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 224 SET obuild_cxx_debug=-g 225 :end_if_platform_14 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 228 cd "%obuild_snova_path%\%obuild_dir_bin%" 229 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snova_0%" 232 SET obuild_pwd_snova_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 224 234 SET obuild_cxx_debug=/ZI /Od 225 :end_if_platform_1 3235 :end_if_platform_15 226 236 SET obuild_platform_result= 227 237 … … 232 242 cd "%obuild_pwd_snova_0%" 233 243 SET obuild_pwd_snova_0= 234 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 4244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 235 245 SET obuild_cxx_options=-fPIC 236 :end_if_platform_1 4237 SET obuild_platform_result= 238 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 239 cd "%obuild_snova_path%\%obuild_dir_bin%" 240 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 241 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 242 cd "%obuild_pwd_snova_0%" 243 SET obuild_pwd_snova_0= 244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 5246 :end_if_platform_16 247 SET obuild_platform_result= 248 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 249 cd "%obuild_snova_path%\%obuild_dir_bin%" 250 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 251 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 252 cd "%obuild_pwd_snova_0%" 253 SET obuild_pwd_snova_0= 254 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 245 255 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 246 :end_if_platform_1 5247 SET obuild_platform_result= 248 249 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_1 6256 :end_if_platform_17 257 SET obuild_platform_result= 258 259 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_18 250 260 SET obuild_cxx_debug_local=%obuild_cxx_debug% 251 GOTO end_if_db_build_lib_geomutils_sh_1 6252 :else_if_db_build_lib_geomutils_sh_1 6261 GOTO end_if_db_build_lib_geomutils_sh_18 262 :else_if_db_build_lib_geomutils_sh_18 253 263 SET obuild_cxx_debug_local= 254 :end_if_db_build_lib_geomutils_sh_1 6255 256 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_1 7264 :end_if_db_build_lib_geomutils_sh_18 265 266 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_19 257 267 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 258 GOTO end_if_opt_build_lib_geomutils_sh_1 7259 :else_if_opt_build_lib_geomutils_sh_1 7268 GOTO end_if_opt_build_lib_geomutils_sh_19 269 :else_if_opt_build_lib_geomutils_sh_19 260 270 SET obuild_cxx_optimize_local= 261 :end_if_opt_build_lib_geomutils_sh_1 7271 :end_if_opt_build_lib_geomutils_sh_19 262 272 263 273 … … 270 280 cd "%obuild_pwd_snova_0%" 271 281 SET obuild_pwd_snova_0= 272 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 19282 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 273 283 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 274 :end_if_platform_ 19284 :end_if_platform_21 275 285 SET obuild_platform_result= 276 286 … … 365 375 cd "%obuild_pwd_snova_0%" 366 376 SET obuild_pwd_snova_0= 367 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 3377 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35 368 378 SET obuild_cxx_linker_command=c++ 369 :end_if_platform_3 3379 :end_if_platform_35 370 380 SET obuild_platform_result= 371 381 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 375 385 cd "%obuild_pwd_snova_0%" 376 386 SET obuild_pwd_snova_0= 377 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 4387 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36 378 388 SET obuild_cxx_linker_command=c++ 379 :end_if_platform_3 4389 :end_if_platform_36 380 390 SET obuild_platform_result= 381 391 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 385 395 cd "%obuild_pwd_snova_0%" 386 396 SET obuild_pwd_snova_0= 387 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 5397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 388 398 SET obuild_cxx_linker_command=cxx 389 :end_if_platform_3 5390 SET obuild_platform_result= 391 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 392 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 395 cd "%obuild_pwd_snova_0%" 396 SET obuild_pwd_snova_0= 397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 6399 :end_if_platform_37 400 SET obuild_platform_result= 401 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 402 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 405 cd "%obuild_pwd_snova_0%" 406 SET obuild_pwd_snova_0= 407 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 398 408 SET obuild_cxx_linker_command=link.exe 399 :end_if_platform_3 6409 :end_if_platform_38 400 410 SET obuild_platform_result= 401 411 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 405 415 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 406 416 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 407 cd "%obuild_pwd_snova_0%"408 SET obuild_pwd_snova_0=409 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37410 SET obuild_cxx_linker_debug=-g411 :end_if_platform_37412 SET obuild_platform_result=413 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d414 cd "%obuild_snova_path%\%obuild_dir_bin%"415 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return416 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j417 cd "%obuild_pwd_snova_0%"418 SET obuild_pwd_snova_0=419 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38420 SET obuild_cxx_linker_debug=-g421 :end_if_platform_38422 SET obuild_platform_result=423 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d424 cd "%obuild_snova_path%\%obuild_dir_bin%"425 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return426 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j427 417 cd "%obuild_pwd_snova_0%" 428 418 SET obuild_pwd_snova_0= … … 434 424 cd "%obuild_snova_path%\%obuild_dir_bin%" 435 425 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 436 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j426 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 437 427 cd "%obuild_pwd_snova_0%" 438 428 SET obuild_pwd_snova_0= 439 429 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 430 SET obuild_cxx_linker_debug=-g 431 :end_if_platform_40 432 SET obuild_platform_result= 433 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 434 cd "%obuild_snova_path%\%obuild_dir_bin%" 435 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 436 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 437 cd "%obuild_pwd_snova_0%" 438 SET obuild_pwd_snova_0= 439 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 440 SET obuild_cxx_linker_debug=-g 441 :end_if_platform_41 442 SET obuild_platform_result= 443 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 444 cd "%obuild_snova_path%\%obuild_dir_bin%" 445 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 446 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 447 cd "%obuild_pwd_snova_0%" 448 SET obuild_pwd_snova_0= 449 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 440 450 SET obuild_cxx_linker_debug=/DEBUG 441 :end_if_platform_4 0442 SET obuild_platform_result= 443 444 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 445 cd "%obuild_snova_path%\%obuild_dir_bin%" 446 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 447 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 448 cd "%obuild_pwd_snova_0%" 449 SET obuild_pwd_snova_0= 450 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 1451 :end_if_platform_42 452 SET obuild_platform_result= 453 454 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 455 cd "%obuild_snova_path%\%obuild_dir_bin%" 456 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 457 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 458 cd "%obuild_pwd_snova_0%" 459 SET obuild_pwd_snova_0= 460 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 451 461 SET obuild_cxx_linker_options=/nologo 452 :end_if_platform_4 1453 SET obuild_platform_result= 454 455 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_4 2462 :end_if_platform_43 463 SET obuild_platform_result= 464 465 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_44 456 466 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 457 GOTO end_if_db_build_lib_geomutils_sh_4 2458 :else_if_db_build_lib_geomutils_sh_4 2467 GOTO end_if_db_build_lib_geomutils_sh_44 468 :else_if_db_build_lib_geomutils_sh_44 459 469 SET obuild_cxx_linker_debug_local= 460 :end_if_db_build_lib_geomutils_sh_4 2461 462 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_4 3470 :end_if_db_build_lib_geomutils_sh_44 471 472 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_45 463 473 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 464 GOTO end_if_opt_build_lib_geomutils_sh_4 3465 :else_if_opt_build_lib_geomutils_sh_4 3474 GOTO end_if_opt_build_lib_geomutils_sh_45 475 :else_if_opt_build_lib_geomutils_sh_45 466 476 SET obuild_cxx_linker_optimize_local= 467 :end_if_opt_build_lib_geomutils_sh_4 3477 :end_if_opt_build_lib_geomutils_sh_45 468 478 469 479 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/DOS/build_lib_sngeom.bat
r130 r132 105 105 cd "%obuild_snova_path%\%obuild_dir_bin%" 106 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% UNIX`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snova_0%" 109 SET obuild_pwd_snova_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2 112 :end_if_platform_3 113 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 115 cd "%obuild_snova_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 118 cd "%obuild_pwd_snova_0%" 109 119 SET obuild_pwd_snova_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 2120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 111 121 SET obuild_cxx_command=c++ 112 :end_if_platform_ 2122 :end_if_platform_4 113 123 SET obuild_platform_result= 114 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 118 128 cd "%obuild_pwd_snova_0%" 119 129 SET obuild_pwd_snova_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 3130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 131 SET obuild_cxx_command=c++ 122 :end_if_platform_ 3132 :end_if_platform_5 123 133 SET obuild_platform_result= 124 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 128 138 cd "%obuild_pwd_snova_0%" 129 139 SET obuild_pwd_snova_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 4140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 131 141 SET obuild_cxx_command=cxx 132 :end_if_platform_ 4133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 135 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snova_0%" 139 SET obuild_pwd_snova_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 5142 :end_if_platform_6 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 145 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snova_0%" 149 SET obuild_pwd_snova_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 141 151 SET obuild_cxx_command=cl.exe 142 :end_if_platform_ 5152 :end_if_platform_7 143 153 SET obuild_platform_result= 144 154 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return … … 148 158 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 149 159 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 150 cd "%obuild_pwd_snova_0%"151 SET obuild_pwd_snova_0=152 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6153 SET obuild_cxx_optimize=-O154 :end_if_platform_6155 SET obuild_platform_result=156 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d157 cd "%obuild_snova_path%\%obuild_dir_bin%"158 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return159 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j160 cd "%obuild_pwd_snova_0%"161 SET obuild_pwd_snova_0=162 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7163 SET obuild_cxx_optimize=-O164 :end_if_platform_7165 SET obuild_platform_result=166 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d167 cd "%obuild_snova_path%\%obuild_dir_bin%"168 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return169 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j170 160 cd "%obuild_pwd_snova_0%" 171 161 SET obuild_pwd_snova_0= … … 177 167 cd "%obuild_snova_path%\%obuild_dir_bin%" 178 168 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j169 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 180 170 cd "%obuild_pwd_snova_0%" 181 171 SET obuild_pwd_snova_0= 182 172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 173 SET obuild_cxx_optimize=-O 174 :end_if_platform_9 175 SET obuild_platform_result= 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 177 cd "%obuild_snova_path%\%obuild_dir_bin%" 178 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snova_0%" 181 SET obuild_pwd_snova_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_10 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 187 cd "%obuild_snova_path%\%obuild_dir_bin%" 188 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snova_0%" 191 SET obuild_pwd_snova_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 183 193 SET obuild_cxx_optimize=/O2 184 :end_if_platform_ 9194 :end_if_platform_11 185 195 SET obuild_platform_result= 186 196 … … 189 199 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 190 200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 191 cd "%obuild_pwd_snova_0%"192 SET obuild_pwd_snova_0=193 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10194 SET obuild_cxx_debug=-g195 :end_if_platform_10196 SET obuild_platform_result=197 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d198 cd "%obuild_snova_path%\%obuild_dir_bin%"199 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j201 cd "%obuild_pwd_snova_0%"202 SET obuild_pwd_snova_0=203 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11204 SET obuild_cxx_debug=-g205 :end_if_platform_11206 SET obuild_platform_result=207 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d208 cd "%obuild_snova_path%\%obuild_dir_bin%"209 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return210 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j211 201 cd "%obuild_pwd_snova_0%" 212 202 SET obuild_pwd_snova_0= … … 218 208 cd "%obuild_snova_path%\%obuild_dir_bin%" 219 209 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j210 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 221 211 cd "%obuild_pwd_snova_0%" 222 212 SET obuild_pwd_snova_0= 223 213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 214 SET obuild_cxx_debug=-g 215 :end_if_platform_13 216 SET obuild_platform_result= 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 218 cd "%obuild_snova_path%\%obuild_dir_bin%" 219 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snova_0%" 222 SET obuild_pwd_snova_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 224 SET obuild_cxx_debug=-g 225 :end_if_platform_14 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 228 cd "%obuild_snova_path%\%obuild_dir_bin%" 229 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snova_0%" 232 SET obuild_pwd_snova_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 224 234 SET obuild_cxx_debug=/ZI /Od 225 :end_if_platform_1 3235 :end_if_platform_15 226 236 SET obuild_platform_result= 227 237 … … 232 242 cd "%obuild_pwd_snova_0%" 233 243 SET obuild_pwd_snova_0= 234 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 4244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 235 245 SET obuild_cxx_options=-fPIC 236 :end_if_platform_1 4237 SET obuild_platform_result= 238 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 239 cd "%obuild_snova_path%\%obuild_dir_bin%" 240 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 241 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 242 cd "%obuild_pwd_snova_0%" 243 SET obuild_pwd_snova_0= 244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 5246 :end_if_platform_16 247 SET obuild_platform_result= 248 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 249 cd "%obuild_snova_path%\%obuild_dir_bin%" 250 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 251 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 252 cd "%obuild_pwd_snova_0%" 253 SET obuild_pwd_snova_0= 254 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 245 255 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 246 :end_if_platform_1 5247 SET obuild_platform_result= 248 249 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_1 6256 :end_if_platform_17 257 SET obuild_platform_result= 258 259 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_18 250 260 SET obuild_cxx_debug_local=%obuild_cxx_debug% 251 GOTO end_if_db_build_lib_sngeom_sh_1 6252 :else_if_db_build_lib_sngeom_sh_1 6261 GOTO end_if_db_build_lib_sngeom_sh_18 262 :else_if_db_build_lib_sngeom_sh_18 253 263 SET obuild_cxx_debug_local= 254 :end_if_db_build_lib_sngeom_sh_1 6255 256 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_1 7264 :end_if_db_build_lib_sngeom_sh_18 265 266 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_19 257 267 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 258 GOTO end_if_opt_build_lib_sngeom_sh_1 7259 :else_if_opt_build_lib_sngeom_sh_1 7268 GOTO end_if_opt_build_lib_sngeom_sh_19 269 :else_if_opt_build_lib_sngeom_sh_19 260 270 SET obuild_cxx_optimize_local= 261 :end_if_opt_build_lib_sngeom_sh_1 7271 :end_if_opt_build_lib_sngeom_sh_19 262 272 263 273 … … 275 285 IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return 276 286 277 SET obuild_cxx_includes=/I"%obuild_snova_path%\source\ GeomUtils\include"278 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\ SNgeom2\include"287 SET obuild_cxx_includes=/I"%obuild_snova_path%\source\SNgeom2\include" 288 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include" 279 289 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 280 290 cd "%obuild_snova_path%\%obuild_dir_bin%" … … 283 293 cd "%obuild_pwd_snova_0%" 284 294 SET obuild_pwd_snova_0= 285 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 0295 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 286 296 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 287 :end_if_platform_2 0297 :end_if_platform_22 288 298 SET obuild_platform_result= 289 299 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" … … 355 365 cd "%obuild_pwd_snova_0%" 356 366 SET obuild_pwd_snova_0= 357 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 1367 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33 358 368 SET obuild_cxx_linker_command=c++ 359 :end_if_platform_3 1369 :end_if_platform_33 360 370 SET obuild_platform_result= 361 371 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 365 375 cd "%obuild_pwd_snova_0%" 366 376 SET obuild_pwd_snova_0= 367 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 2377 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34 368 378 SET obuild_cxx_linker_command=c++ 369 :end_if_platform_3 2379 :end_if_platform_34 370 380 SET obuild_platform_result= 371 381 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 375 385 cd "%obuild_pwd_snova_0%" 376 386 SET obuild_pwd_snova_0= 377 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 3387 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35 378 388 SET obuild_cxx_linker_command=cxx 379 :end_if_platform_3 3380 SET obuild_platform_result= 381 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 382 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 385 cd "%obuild_pwd_snova_0%" 386 SET obuild_pwd_snova_0= 387 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 4389 :end_if_platform_35 390 SET obuild_platform_result= 391 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 392 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 395 cd "%obuild_pwd_snova_0%" 396 SET obuild_pwd_snova_0= 397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36 388 398 SET obuild_cxx_linker_command=link.exe 389 :end_if_platform_3 4399 :end_if_platform_36 390 400 SET obuild_platform_result= 391 401 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 395 405 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 396 406 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 397 cd "%obuild_pwd_snova_0%"398 SET obuild_pwd_snova_0=399 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35400 SET obuild_cxx_linker_debug=-g401 :end_if_platform_35402 SET obuild_platform_result=403 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d404 cd "%obuild_snova_path%\%obuild_dir_bin%"405 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return406 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j407 cd "%obuild_pwd_snova_0%"408 SET obuild_pwd_snova_0=409 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36410 SET obuild_cxx_linker_debug=-g411 :end_if_platform_36412 SET obuild_platform_result=413 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d414 cd "%obuild_snova_path%\%obuild_dir_bin%"415 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return416 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j417 407 cd "%obuild_pwd_snova_0%" 418 408 SET obuild_pwd_snova_0= … … 424 414 cd "%obuild_snova_path%\%obuild_dir_bin%" 425 415 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 426 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j416 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 427 417 cd "%obuild_pwd_snova_0%" 428 418 SET obuild_pwd_snova_0= 429 419 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 420 SET obuild_cxx_linker_debug=-g 421 :end_if_platform_38 422 SET obuild_platform_result= 423 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 424 cd "%obuild_snova_path%\%obuild_dir_bin%" 425 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 426 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 427 cd "%obuild_pwd_snova_0%" 428 SET obuild_pwd_snova_0= 429 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39 430 SET obuild_cxx_linker_debug=-g 431 :end_if_platform_39 432 SET obuild_platform_result= 433 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 434 cd "%obuild_snova_path%\%obuild_dir_bin%" 435 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 436 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 437 cd "%obuild_pwd_snova_0%" 438 SET obuild_pwd_snova_0= 439 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 430 440 SET obuild_cxx_linker_debug=/DEBUG 431 :end_if_platform_ 38432 SET obuild_platform_result= 433 434 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 435 cd "%obuild_snova_path%\%obuild_dir_bin%" 436 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 437 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 438 cd "%obuild_pwd_snova_0%" 439 SET obuild_pwd_snova_0= 440 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 39441 :end_if_platform_40 442 SET obuild_platform_result= 443 444 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 445 cd "%obuild_snova_path%\%obuild_dir_bin%" 446 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 447 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 448 cd "%obuild_pwd_snova_0%" 449 SET obuild_pwd_snova_0= 450 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 441 451 SET obuild_cxx_linker_options=/nologo 442 :end_if_platform_ 39443 SET obuild_platform_result= 444 445 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_4 0452 :end_if_platform_41 453 SET obuild_platform_result= 454 455 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_42 446 456 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 447 GOTO end_if_db_build_lib_sngeom_sh_4 0448 :else_if_db_build_lib_sngeom_sh_4 0457 GOTO end_if_db_build_lib_sngeom_sh_42 458 :else_if_db_build_lib_sngeom_sh_42 449 459 SET obuild_cxx_linker_debug_local= 450 :end_if_db_build_lib_sngeom_sh_4 0451 452 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_4 1460 :end_if_db_build_lib_sngeom_sh_42 461 462 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_43 453 463 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 454 GOTO end_if_opt_build_lib_sngeom_sh_4 1455 :else_if_opt_build_lib_sngeom_sh_4 1464 GOTO end_if_opt_build_lib_sngeom_sh_43 465 :else_if_opt_build_lib_sngeom_sh_43 456 466 SET obuild_cxx_linker_optimize_local= 457 :end_if_opt_build_lib_sngeom_sh_4 1467 :end_if_opt_build_lib_sngeom_sh_43 458 468 459 469 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/DOS/build_lib_snova.bat
r130 r132 105 105 cd "%obuild_snova_path%\%obuild_dir_bin%" 106 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% UNIX`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snova_0%" 109 SET obuild_pwd_snova_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2 112 :end_if_platform_3 113 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 115 cd "%obuild_snova_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 118 cd "%obuild_pwd_snova_0%" 109 119 SET obuild_pwd_snova_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 2120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 111 121 SET obuild_cxx_command=c++ 112 :end_if_platform_ 2122 :end_if_platform_4 113 123 SET obuild_platform_result= 114 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 118 128 cd "%obuild_pwd_snova_0%" 119 129 SET obuild_pwd_snova_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 3130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 131 SET obuild_cxx_command=c++ 122 :end_if_platform_ 3132 :end_if_platform_5 123 133 SET obuild_platform_result= 124 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 128 138 cd "%obuild_pwd_snova_0%" 129 139 SET obuild_pwd_snova_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 4140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 131 141 SET obuild_cxx_command=cxx 132 :end_if_platform_ 4133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 135 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snova_0%" 139 SET obuild_pwd_snova_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 5142 :end_if_platform_6 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 145 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snova_0%" 149 SET obuild_pwd_snova_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 141 151 SET obuild_cxx_command=cl.exe 142 :end_if_platform_ 5152 :end_if_platform_7 143 153 SET obuild_platform_result= 144 154 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return … … 148 158 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 149 159 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 150 cd "%obuild_pwd_snova_0%"151 SET obuild_pwd_snova_0=152 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6153 SET obuild_cxx_optimize=-O154 :end_if_platform_6155 SET obuild_platform_result=156 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d157 cd "%obuild_snova_path%\%obuild_dir_bin%"158 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return159 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j160 cd "%obuild_pwd_snova_0%"161 SET obuild_pwd_snova_0=162 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7163 SET obuild_cxx_optimize=-O164 :end_if_platform_7165 SET obuild_platform_result=166 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d167 cd "%obuild_snova_path%\%obuild_dir_bin%"168 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return169 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j170 160 cd "%obuild_pwd_snova_0%" 171 161 SET obuild_pwd_snova_0= … … 177 167 cd "%obuild_snova_path%\%obuild_dir_bin%" 178 168 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j169 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 180 170 cd "%obuild_pwd_snova_0%" 181 171 SET obuild_pwd_snova_0= 182 172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 173 SET obuild_cxx_optimize=-O 174 :end_if_platform_9 175 SET obuild_platform_result= 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 177 cd "%obuild_snova_path%\%obuild_dir_bin%" 178 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snova_0%" 181 SET obuild_pwd_snova_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_10 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 187 cd "%obuild_snova_path%\%obuild_dir_bin%" 188 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snova_0%" 191 SET obuild_pwd_snova_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 183 193 SET obuild_cxx_optimize=/O2 184 :end_if_platform_ 9194 :end_if_platform_11 185 195 SET obuild_platform_result= 186 196 … … 189 199 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 190 200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 191 cd "%obuild_pwd_snova_0%"192 SET obuild_pwd_snova_0=193 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10194 SET obuild_cxx_debug=-g195 :end_if_platform_10196 SET obuild_platform_result=197 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d198 cd "%obuild_snova_path%\%obuild_dir_bin%"199 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j201 cd "%obuild_pwd_snova_0%"202 SET obuild_pwd_snova_0=203 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11204 SET obuild_cxx_debug=-g205 :end_if_platform_11206 SET obuild_platform_result=207 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d208 cd "%obuild_snova_path%\%obuild_dir_bin%"209 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return210 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j211 201 cd "%obuild_pwd_snova_0%" 212 202 SET obuild_pwd_snova_0= … … 218 208 cd "%obuild_snova_path%\%obuild_dir_bin%" 219 209 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j210 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 221 211 cd "%obuild_pwd_snova_0%" 222 212 SET obuild_pwd_snova_0= 223 213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 214 SET obuild_cxx_debug=-g 215 :end_if_platform_13 216 SET obuild_platform_result= 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 218 cd "%obuild_snova_path%\%obuild_dir_bin%" 219 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snova_0%" 222 SET obuild_pwd_snova_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 224 SET obuild_cxx_debug=-g 225 :end_if_platform_14 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 228 cd "%obuild_snova_path%\%obuild_dir_bin%" 229 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snova_0%" 232 SET obuild_pwd_snova_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 224 234 SET obuild_cxx_debug=/ZI /Od 225 :end_if_platform_1 3235 :end_if_platform_15 226 236 SET obuild_platform_result= 227 237 … … 232 242 cd "%obuild_pwd_snova_0%" 233 243 SET obuild_pwd_snova_0= 234 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 4244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 235 245 SET obuild_cxx_options=-fPIC 236 :end_if_platform_1 4237 SET obuild_platform_result= 238 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 239 cd "%obuild_snova_path%\%obuild_dir_bin%" 240 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 241 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 242 cd "%obuild_pwd_snova_0%" 243 SET obuild_pwd_snova_0= 244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 5246 :end_if_platform_16 247 SET obuild_platform_result= 248 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 249 cd "%obuild_snova_path%\%obuild_dir_bin%" 250 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 251 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 252 cd "%obuild_pwd_snova_0%" 253 SET obuild_pwd_snova_0= 254 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 245 255 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 246 :end_if_platform_1 5247 SET obuild_platform_result= 248 249 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_1 6256 :end_if_platform_17 257 SET obuild_platform_result= 258 259 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_18 250 260 SET obuild_cxx_debug_local=%obuild_cxx_debug% 251 GOTO end_if_db_build_lib_snova_sh_1 6252 :else_if_db_build_lib_snova_sh_1 6261 GOTO end_if_db_build_lib_snova_sh_18 262 :else_if_db_build_lib_snova_sh_18 253 263 SET obuild_cxx_debug_local= 254 :end_if_db_build_lib_snova_sh_1 6255 256 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_1 7264 :end_if_db_build_lib_snova_sh_18 265 266 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_19 257 267 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 258 GOTO end_if_opt_build_lib_snova_sh_1 7259 :else_if_opt_build_lib_snova_sh_1 7268 GOTO end_if_opt_build_lib_snova_sh_19 269 :else_if_opt_build_lib_snova_sh_19 260 270 SET obuild_cxx_optimize_local= 261 :end_if_opt_build_lib_snova_sh_17 262 263 271 :end_if_opt_build_lib_snova_sh_19 272 273 274 IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%" 275 IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" ( 276 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snova_path%\obuild\cpp\obuild_find.cpp" 1> NUL 277 IF EXIST obuild_find.obj DEL obuild_find.obj 278 ) 279 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 280 cd "%obuild_snova_path%\%obuild_dir_bin%" 281 IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return 282 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j 283 cd "%obuild_pwd_snova_0%" 284 SET obuild_pwd_snova_0= 285 IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return 286 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 287 cd "%obuild_snova_path%\%obuild_dir_bin%" 288 IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return 289 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j 290 cd "%obuild_pwd_snova_0%" 291 SET obuild_pwd_snova_0= 292 IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return 264 293 265 294 SET obuild_cxx_includes=/I"%obuild_snova_path%" … … 267 296 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include" 268 297 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include" 298 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 269 299 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 270 300 cd "%obuild_snova_path%\%obuild_dir_bin%" … … 273 303 cd "%obuild_pwd_snova_0%" 274 304 SET obuild_pwd_snova_0= 275 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 2305 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 276 306 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 277 :end_if_platform_22 278 SET obuild_platform_result= 307 :end_if_platform_25 308 SET obuild_platform_result= 309 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 310 cd "%obuild_snova_path%\%obuild_dir_bin%" 311 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 312 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 313 cd "%obuild_pwd_snova_0%" 314 SET obuild_pwd_snova_0= 315 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26 316 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include 317 :end_if_platform_26 318 SET obuild_platform_result= 319 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include" 279 320 280 321 IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" … … 380 421 cd "%obuild_pwd_snova_0%" 381 422 SET obuild_pwd_snova_0= 382 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 38423 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 383 424 SET obuild_cxx_linker_command=c++ 384 :end_if_platform_ 38425 :end_if_platform_43 385 426 SET obuild_platform_result= 386 427 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 390 431 cd "%obuild_pwd_snova_0%" 391 432 SET obuild_pwd_snova_0= 392 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 39433 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44 393 434 SET obuild_cxx_linker_command=c++ 394 :end_if_platform_ 39435 :end_if_platform_44 395 436 SET obuild_platform_result= 396 437 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 400 441 cd "%obuild_pwd_snova_0%" 401 442 SET obuild_pwd_snova_0= 402 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 0443 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45 403 444 SET obuild_cxx_linker_command=cxx 404 :end_if_platform_4 0405 SET obuild_platform_result= 406 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 407 cd "%obuild_snova_path%\%obuild_dir_bin%" 408 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 409 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 410 cd "%obuild_pwd_snova_0%" 411 SET obuild_pwd_snova_0= 412 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 1445 :end_if_platform_45 446 SET obuild_platform_result= 447 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 448 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 451 cd "%obuild_pwd_snova_0%" 452 SET obuild_pwd_snova_0= 453 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46 413 454 SET obuild_cxx_linker_command=link.exe 414 :end_if_platform_4 1455 :end_if_platform_46 415 456 SET obuild_platform_result= 416 457 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 422 463 cd "%obuild_pwd_snova_0%" 423 464 SET obuild_pwd_snova_0= 424 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 2465 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 425 466 SET obuild_cxx_linker_debug=-g 426 :end_if_platform_4 2467 :end_if_platform_47 427 468 SET obuild_platform_result= 428 469 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 432 473 cd "%obuild_pwd_snova_0%" 433 474 SET obuild_pwd_snova_0= 434 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 3475 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48 435 476 SET obuild_cxx_linker_debug=-g 436 :end_if_platform_4 3477 :end_if_platform_48 437 478 SET obuild_platform_result= 438 479 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 442 483 cd "%obuild_pwd_snova_0%" 443 484 SET obuild_pwd_snova_0= 444 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 4485 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49 445 486 SET obuild_cxx_linker_debug=-g 446 :end_if_platform_4 4447 SET obuild_platform_result= 448 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 449 cd "%obuild_snova_path%\%obuild_dir_bin%" 450 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 451 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 452 cd "%obuild_pwd_snova_0%" 453 SET obuild_pwd_snova_0= 454 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 45487 :end_if_platform_49 488 SET obuild_platform_result= 489 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 490 cd "%obuild_snova_path%\%obuild_dir_bin%" 491 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 492 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 493 cd "%obuild_pwd_snova_0%" 494 SET obuild_pwd_snova_0= 495 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50 455 496 SET obuild_cxx_linker_debug=/DEBUG 456 :end_if_platform_ 45457 SET obuild_platform_result= 458 459 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 460 cd "%obuild_snova_path%\%obuild_dir_bin%" 461 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 462 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 463 cd "%obuild_pwd_snova_0%" 464 SET obuild_pwd_snova_0= 465 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 46497 :end_if_platform_50 498 SET obuild_platform_result= 499 500 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 501 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 504 cd "%obuild_pwd_snova_0%" 505 SET obuild_pwd_snova_0= 506 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51 466 507 SET obuild_cxx_linker_options=/nologo 467 :end_if_platform_ 46468 SET obuild_platform_result= 469 470 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_ 47508 :end_if_platform_51 509 SET obuild_platform_result= 510 511 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_52 471 512 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 472 GOTO end_if_db_build_lib_snova_sh_ 47473 :else_if_db_build_lib_snova_sh_ 47513 GOTO end_if_db_build_lib_snova_sh_52 514 :else_if_db_build_lib_snova_sh_52 474 515 SET obuild_cxx_linker_debug_local= 475 :end_if_db_build_lib_snova_sh_ 47476 477 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_ 48516 :end_if_db_build_lib_snova_sh_52 517 518 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_53 478 519 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 479 GOTO end_if_opt_build_lib_snova_sh_ 48480 :else_if_opt_build_lib_snova_sh_ 48520 GOTO end_if_opt_build_lib_snova_sh_53 521 :else_if_opt_build_lib_snova_sh_53 481 522 SET obuild_cxx_linker_optimize_local= 482 :end_if_opt_build_lib_snova_sh_ 48523 :end_if_opt_build_lib_snova_sh_53 483 524 484 525 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/DOS/build_lib_snvertex.bat
r130 r132 105 105 cd "%obuild_snova_path%\%obuild_dir_bin%" 106 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% UNIX`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snova_0%" 109 SET obuild_pwd_snova_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2 112 :end_if_platform_3 113 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 115 cd "%obuild_snova_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 118 cd "%obuild_pwd_snova_0%" 109 119 SET obuild_pwd_snova_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 2120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 111 121 SET obuild_cxx_command=c++ 112 :end_if_platform_ 2122 :end_if_platform_4 113 123 SET obuild_platform_result= 114 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 118 128 cd "%obuild_pwd_snova_0%" 119 129 SET obuild_pwd_snova_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 3130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 131 SET obuild_cxx_command=c++ 122 :end_if_platform_ 3132 :end_if_platform_5 123 133 SET obuild_platform_result= 124 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 128 138 cd "%obuild_pwd_snova_0%" 129 139 SET obuild_pwd_snova_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 4140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 131 141 SET obuild_cxx_command=cxx 132 :end_if_platform_ 4133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 135 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snova_0%" 139 SET obuild_pwd_snova_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 5142 :end_if_platform_6 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 145 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snova_0%" 149 SET obuild_pwd_snova_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 141 151 SET obuild_cxx_command=cl.exe 142 :end_if_platform_ 5152 :end_if_platform_7 143 153 SET obuild_platform_result= 144 154 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return … … 148 158 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 149 159 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 150 cd "%obuild_pwd_snova_0%"151 SET obuild_pwd_snova_0=152 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6153 SET obuild_cxx_optimize=-O154 :end_if_platform_6155 SET obuild_platform_result=156 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d157 cd "%obuild_snova_path%\%obuild_dir_bin%"158 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return159 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j160 cd "%obuild_pwd_snova_0%"161 SET obuild_pwd_snova_0=162 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7163 SET obuild_cxx_optimize=-O164 :end_if_platform_7165 SET obuild_platform_result=166 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d167 cd "%obuild_snova_path%\%obuild_dir_bin%"168 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return169 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j170 160 cd "%obuild_pwd_snova_0%" 171 161 SET obuild_pwd_snova_0= … … 177 167 cd "%obuild_snova_path%\%obuild_dir_bin%" 178 168 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j169 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 180 170 cd "%obuild_pwd_snova_0%" 181 171 SET obuild_pwd_snova_0= 182 172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 173 SET obuild_cxx_optimize=-O 174 :end_if_platform_9 175 SET obuild_platform_result= 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 177 cd "%obuild_snova_path%\%obuild_dir_bin%" 178 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snova_0%" 181 SET obuild_pwd_snova_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_10 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 187 cd "%obuild_snova_path%\%obuild_dir_bin%" 188 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snova_0%" 191 SET obuild_pwd_snova_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 183 193 SET obuild_cxx_optimize=/O2 184 :end_if_platform_ 9194 :end_if_platform_11 185 195 SET obuild_platform_result= 186 196 … … 189 199 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 190 200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 191 cd "%obuild_pwd_snova_0%"192 SET obuild_pwd_snova_0=193 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10194 SET obuild_cxx_debug=-g195 :end_if_platform_10196 SET obuild_platform_result=197 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d198 cd "%obuild_snova_path%\%obuild_dir_bin%"199 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j201 cd "%obuild_pwd_snova_0%"202 SET obuild_pwd_snova_0=203 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11204 SET obuild_cxx_debug=-g205 :end_if_platform_11206 SET obuild_platform_result=207 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d208 cd "%obuild_snova_path%\%obuild_dir_bin%"209 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return210 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j211 201 cd "%obuild_pwd_snova_0%" 212 202 SET obuild_pwd_snova_0= … … 218 208 cd "%obuild_snova_path%\%obuild_dir_bin%" 219 209 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j210 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 221 211 cd "%obuild_pwd_snova_0%" 222 212 SET obuild_pwd_snova_0= 223 213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 214 SET obuild_cxx_debug=-g 215 :end_if_platform_13 216 SET obuild_platform_result= 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 218 cd "%obuild_snova_path%\%obuild_dir_bin%" 219 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snova_0%" 222 SET obuild_pwd_snova_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 224 SET obuild_cxx_debug=-g 225 :end_if_platform_14 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 228 cd "%obuild_snova_path%\%obuild_dir_bin%" 229 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snova_0%" 232 SET obuild_pwd_snova_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 224 234 SET obuild_cxx_debug=/ZI /Od 225 :end_if_platform_1 3235 :end_if_platform_15 226 236 SET obuild_platform_result= 227 237 … … 232 242 cd "%obuild_pwd_snova_0%" 233 243 SET obuild_pwd_snova_0= 234 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 4244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 235 245 SET obuild_cxx_options=-fPIC 236 :end_if_platform_1 4237 SET obuild_platform_result= 238 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 239 cd "%obuild_snova_path%\%obuild_dir_bin%" 240 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 241 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 242 cd "%obuild_pwd_snova_0%" 243 SET obuild_pwd_snova_0= 244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 5246 :end_if_platform_16 247 SET obuild_platform_result= 248 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 249 cd "%obuild_snova_path%\%obuild_dir_bin%" 250 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 251 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 252 cd "%obuild_pwd_snova_0%" 253 SET obuild_pwd_snova_0= 254 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 245 255 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 246 :end_if_platform_1 5247 SET obuild_platform_result= 248 249 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_1 6256 :end_if_platform_17 257 SET obuild_platform_result= 258 259 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_18 250 260 SET obuild_cxx_debug_local=%obuild_cxx_debug% 251 GOTO end_if_db_build_lib_snvertex_sh_1 6252 :else_if_db_build_lib_snvertex_sh_1 6261 GOTO end_if_db_build_lib_snvertex_sh_18 262 :else_if_db_build_lib_snvertex_sh_18 253 263 SET obuild_cxx_debug_local= 254 :end_if_db_build_lib_snvertex_sh_1 6255 256 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_1 7264 :end_if_db_build_lib_snvertex_sh_18 265 266 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_19 257 267 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 258 GOTO end_if_opt_build_lib_snvertex_sh_1 7259 :else_if_opt_build_lib_snvertex_sh_1 7268 GOTO end_if_opt_build_lib_snvertex_sh_19 269 :else_if_opt_build_lib_snvertex_sh_19 260 270 SET obuild_cxx_optimize_local= 261 :end_if_opt_build_lib_snvertex_sh_1 7271 :end_if_opt_build_lib_snvertex_sh_19 262 272 263 273 … … 278 288 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include" 279 289 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include" 290 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 280 291 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 281 292 cd "%obuild_snova_path%\%obuild_dir_bin%" … … 284 295 cd "%obuild_pwd_snova_0%" 285 296 SET obuild_pwd_snova_0= 286 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 1297 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 287 298 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 288 :end_if_platform_21 289 SET obuild_platform_result= 290 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 299 :end_if_platform_24 300 SET obuild_platform_result= 291 301 292 302 IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" … … 368 378 cd "%obuild_pwd_snova_0%" 369 379 SET obuild_pwd_snova_0= 370 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 4380 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36 371 381 SET obuild_cxx_linker_command=c++ 372 :end_if_platform_3 4382 :end_if_platform_36 373 383 SET obuild_platform_result= 374 384 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 378 388 cd "%obuild_pwd_snova_0%" 379 389 SET obuild_pwd_snova_0= 380 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 5390 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 381 391 SET obuild_cxx_linker_command=c++ 382 :end_if_platform_3 5392 :end_if_platform_37 383 393 SET obuild_platform_result= 384 394 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d … … 388 398 cd "%obuild_pwd_snova_0%" 389 399 SET obuild_pwd_snova_0= 390 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 6400 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 391 401 SET obuild_cxx_linker_command=cxx 392 :end_if_platform_3 6393 SET obuild_platform_result= 394 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 395 cd "%obuild_snova_path%\%obuild_dir_bin%" 396 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 397 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 398 cd "%obuild_pwd_snova_0%" 399 SET obuild_pwd_snova_0= 400 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 7402 :end_if_platform_38 403 SET obuild_platform_result= 404 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 405 cd "%obuild_snova_path%\%obuild_dir_bin%" 406 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 407 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 408 cd "%obuild_pwd_snova_0%" 409 SET obuild_pwd_snova_0= 410 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39 401 411 SET obuild_cxx_linker_command=link.exe 402 :end_if_platform_3 7412 :end_if_platform_39 403 413 SET obuild_platform_result= 404 414 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 408 418 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 409 419 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 410 cd "%obuild_pwd_snova_0%"411 SET obuild_pwd_snova_0=412 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38413 SET obuild_cxx_linker_debug=-g414 :end_if_platform_38415 SET obuild_platform_result=416 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d417 cd "%obuild_snova_path%\%obuild_dir_bin%"418 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return419 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j420 cd "%obuild_pwd_snova_0%"421 SET obuild_pwd_snova_0=422 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39423 SET obuild_cxx_linker_debug=-g424 :end_if_platform_39425 SET obuild_platform_result=426 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d427 cd "%obuild_snova_path%\%obuild_dir_bin%"428 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return429 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j430 420 cd "%obuild_pwd_snova_0%" 431 421 SET obuild_pwd_snova_0= … … 437 427 cd "%obuild_snova_path%\%obuild_dir_bin%" 438 428 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 439 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j429 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 440 430 cd "%obuild_pwd_snova_0%" 441 431 SET obuild_pwd_snova_0= 442 432 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 433 SET obuild_cxx_linker_debug=-g 434 :end_if_platform_41 435 SET obuild_platform_result= 436 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 437 cd "%obuild_snova_path%\%obuild_dir_bin%" 438 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 439 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 440 cd "%obuild_pwd_snova_0%" 441 SET obuild_pwd_snova_0= 442 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 443 SET obuild_cxx_linker_debug=-g 444 :end_if_platform_42 445 SET obuild_platform_result= 446 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 447 cd "%obuild_snova_path%\%obuild_dir_bin%" 448 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 449 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 450 cd "%obuild_pwd_snova_0%" 451 SET obuild_pwd_snova_0= 452 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 443 453 SET obuild_cxx_linker_debug=/DEBUG 444 :end_if_platform_4 1445 SET obuild_platform_result= 446 447 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 448 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 451 cd "%obuild_pwd_snova_0%" 452 SET obuild_pwd_snova_0= 453 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 2454 :end_if_platform_43 455 SET obuild_platform_result= 456 457 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 458 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j 461 cd "%obuild_pwd_snova_0%" 462 SET obuild_pwd_snova_0= 463 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44 454 464 SET obuild_cxx_linker_options=/nologo 455 :end_if_platform_4 2456 SET obuild_platform_result= 457 458 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_4 3465 :end_if_platform_44 466 SET obuild_platform_result= 467 468 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_45 459 469 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 460 GOTO end_if_db_build_lib_snvertex_sh_4 3461 :else_if_db_build_lib_snvertex_sh_4 3470 GOTO end_if_db_build_lib_snvertex_sh_45 471 :else_if_db_build_lib_snvertex_sh_45 462 472 SET obuild_cxx_linker_debug_local= 463 :end_if_db_build_lib_snvertex_sh_4 3464 465 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_4 4473 :end_if_db_build_lib_snvertex_sh_45 474 475 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_46 466 476 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 467 GOTO end_if_opt_build_lib_snvertex_sh_4 4468 :else_if_opt_build_lib_snvertex_sh_4 4477 GOTO end_if_opt_build_lib_snvertex_sh_46 478 :else_if_opt_build_lib_snvertex_sh_46 469 479 SET obuild_cxx_linker_optimize_local= 470 :end_if_opt_build_lib_snvertex_sh_4 4480 :end_if_opt_build_lib_snvertex_sh_46 471 481 472 482 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/sh/build
r130 r132 148 148 fi 149 149 150 if [ "${obuild_group}" = main ] ; then 151 if [ "${obuild_do_mains}" = yes ] ; then 152 if [ -e ./sh/build_app_prog_snova ] ; then 153 ./sh/build_app_prog_snova ${obuild_args} 154 obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi 155 fi 156 fi 157 fi 158 150 159 if [ -e ./sh/install ] ; then 151 160 ./sh/install -
build/snova/trunk/obuild/sh/build_lib_geomutils
r130 r132 116 116 exit 117 117 fi 118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 119 if [ ${obuild_platform_result} = yes ] ; then 120 Geant4_home="/usr/local/geant4/8.2" 121 fi 122 unset obuild_platform_result 123 if [ "${obuild_platform_exe}" = "" ] ; then 124 echo "Variable obuild_platform_exe not defined." 125 exit 126 fi 118 127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 119 128 if [ ${obuild_platform_result} = yes ] ; then -
build/snova/trunk/obuild/sh/build_lib_sngeom
r130 r132 116 116 exit 117 117 fi 118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 119 if [ ${obuild_platform_result} = yes ] ; then 120 Geant4_home="/usr/local/geant4/8.2" 121 fi 122 unset obuild_platform_result 123 if [ "${obuild_platform_exe}" = "" ] ; then 124 echo "Variable obuild_platform_exe not defined." 125 exit 126 fi 118 127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 119 128 if [ ${obuild_platform_result} = yes ] ; then … … 290 299 fi 291 300 292 obuild_cxx_includes="-I\"${obuild_snova_path}/source/ GeomUtils/include\""293 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/ SNgeom2/include\""301 obuild_cxx_includes="-I\"${obuild_snova_path}/source/SNgeom2/include\"" 302 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/GeomUtils/include\"" 294 303 if [ "${obuild_platform_exe}" = "" ] ; then 295 304 echo "Variable obuild_platform_exe not defined." -
build/snova/trunk/obuild/sh/build_lib_snova
r130 r132 116 116 exit 117 117 fi 118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 119 if [ ${obuild_platform_result} = yes ] ; then 120 Geant4_home="/usr/local/geant4/8.2" 121 fi 122 unset obuild_platform_result 123 if [ "${obuild_platform_exe}" = "" ] ; then 124 echo "Variable obuild_platform_exe not defined." 125 exit 126 fi 118 127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 119 128 if [ ${obuild_platform_result} = yes ] ; then … … 258 267 fi 259 268 269 if [ ! -e "${obuild_snova_path}/${obuild_dir_bin}/obuild_find" ] ; then 270 if [ ! -e "${obuild_snova_path}/obuild/cpp/obuild_find.cpp" ] ; then 271 echo "Program source obuild_find.cpp not found." 272 exit 273 fi 274 if [ "${obuild_cxx_command}" = "" ] ; then 275 if [ "${OBUILD_CXX}" != "" ] ; then 276 obuild_find_compiler=${OBUILD_CXX} 277 else 278 obuild_find_compiler=c++ 279 fi 280 else 281 obuild_find_compiler=${obuild_cxx_command} 282 fi 283 ${obuild_find_compiler} -o "${obuild_snova_path}/${obuild_dir_bin}/obuild_find" "${obuild_snova_path}/obuild/cpp/obuild_find.cpp" 284 unset obuild_find_compiler 285 if [ ! -e "${obuild_snova_path}/${obuild_dir_bin}/obuild_find" ] ; then 286 echo "Program obuild_find not found." 287 exit 288 fi 289 fi 290 obuild_find_exe="${obuild_snova_path}/${obuild_dir_bin}/obuild_find" 291 if [ "${obuild_find_exe}" = "" ] ; then 292 echo "Variable obuild_find_exe not defined." 293 exit 294 fi 295 obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'` 296 if [ "${obuild_bhep_path}" = "" ] ; then 297 echo "Can't find bhep package." 298 exit 299 fi 300 if [ "${obuild_find_exe}" = "" ] ; then 301 echo "Variable obuild_find_exe not defined." 302 exit 303 fi 304 obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'` 305 if [ "${obuild_HDF5_path}" = "" ] ; then 306 echo "Can't find HDF5 package." 307 exit 308 fi 260 309 261 310 obuild_cxx_includes="-I\"${obuild_snova_path}\"" … … 263 312 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNgeom2/include\"" 264 313 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNvertex/include\"" 314 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_bhep_path}\"" 265 315 if [ "${obuild_platform_exe}" = "" ] ; then 266 316 echo "Variable obuild_platform_exe not defined." … … 272 322 fi 273 323 unset obuild_platform_result 324 if [ "${obuild_platform_exe}" = "" ] ; then 325 echo "Variable obuild_platform_exe not defined." 326 exit 327 fi 328 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 329 if [ ${obuild_platform_result} = yes ] ; then 330 obuild_cxx_includes="${obuild_cxx_includes} -I${Geant4_home}/include" 331 fi 332 unset obuild_platform_result 333 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\"" 274 334 275 335 if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then -
build/snova/trunk/obuild/sh/build_lib_snvertex
r130 r132 116 116 exit 117 117 fi 118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 119 if [ ${obuild_platform_result} = yes ] ; then 120 Geant4_home="/usr/local/geant4/8.2" 121 fi 122 unset obuild_platform_result 123 if [ "${obuild_platform_exe}" = "" ] ; then 124 echo "Variable obuild_platform_exe not defined." 125 exit 126 fi 118 127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 119 128 if [ ${obuild_platform_result} = yes ] ; then … … 293 302 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/GeomUtils/include\"" 294 303 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNgeom2/include\"" 304 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_bhep_path}\"" 295 305 if [ "${obuild_platform_exe}" = "" ] ; then 296 306 echo "Variable obuild_platform_exe not defined." … … 302 312 fi 303 313 unset obuild_platform_result 304 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_bhep_path}\""305 314 306 315 if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then -
build/snova/trunk/obuild/sh/check_foreigns
r130 r132 88 88 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 89 89 if [ ${obuild_platform_result} = yes ] ; then 90 Geant4_home="/usr/local/geant4/8.2" 91 fi 92 unset obuild_platform_result 93 if [ "${obuild_platform_exe}" = "" ] ; then 94 echo "Variable obuild_platform_exe not defined." 95 exit 96 fi 97 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 98 if [ ${obuild_platform_result} = yes ] ; then 90 99 if [ "${obuild_check_what}" = "CLHEP" ] ; then 91 100 if [ ! -d "${CLHEP_home}" ] ; then … … 96 105 fi 97 106 unset obuild_platform_result 107 if [ "${obuild_platform_exe}" = "" ] ; then 108 echo "Variable obuild_platform_exe not defined." 109 exit 110 fi 111 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 112 if [ ${obuild_platform_result} = yes ] ; then 113 if [ "${obuild_check_what}" = "Geant4" ] ; then 114 if [ ! -d "${Geant4_home}" ] ; then 115 echo "WARNING : Geant4 not found under ${Geant4_home}" 116 exit 1 117 fi 118 fi 119 fi 120 unset obuild_platform_result 98 121 -
build/snova/trunk/obuild/this.obuild
r130 r132 30 30 <library name="sngeom"> 31 31 <files>../source/SNgeom2/src/*.cc</files> 32 <cxx_include>${obuild_snova_path}/source/GeomUtils/include</cxx_include>33 32 <cxx_include>${obuild_snova_path}/source/SNgeom2/include</cxx_include> 34 33 <!-- not this : --> 34 <cxx_include>${obuild_snova_path}/source/GeomUtils/include</cxx_include> 35 35 <cxx_include copy="cxx_include" from="CLHEP"/> 36 36 <cxx_include copy="cxx_include" from="bhep"/> … … 40 40 <files>../source/SNvertex/src/*.cc</files> 41 41 <cxx_include>${obuild_snova_path}/source/SNvertex/include</cxx_include> 42 <!-- not this : --> 42 43 <cxx_include>${obuild_snova_path}/source/GeomUtils/include</cxx_include> 43 44 <cxx_include>${obuild_snova_path}/source/SNgeom2/include</cxx_include> 44 < !-- not this : -->45 <cxx_include copy="cxx_include" from="bhep"/> 45 46 <cxx_include copy="cxx_include" from="CLHEP"/> 46 <cxx_include copy="cxx_include" from="bhep"/>47 47 </library> 48 48 49 <reference package="foreign" version="v1r*" file="Geant4.obuild"/> 50 51 <use name="HDF5" version="v1r*"> 52 <c_include>include</c_include> 53 <lib>osc_HDF5</lib> 54 </use> 55 49 56 <library name="snova"> 50 57 … … 66 73 67 74 <cxx_include>${obuild_snova_path}</cxx_include> 75 <!-- not this : --> 68 76 <cxx_include>${obuild_snova_path}/source/GeomUtils/include</cxx_include> 69 77 <cxx_include>${obuild_snova_path}/source/SNgeom2/include</cxx_include> 70 78 <cxx_include>${obuild_snova_path}/source/SNvertex/include</cxx_include> 71 79 80 <cxx_include copy="cxx_include" from="bhep"/> 81 <cxx_include copy="cxx_include" from="CLHEP"/> 82 <cxx_include copy="cxx_include" from="Geant4"/> 83 <cxx_include copy="c_include" from="HDF5"/> 84 </library> 85 86 <application name="prog_snova"> 87 <files>../source/snova/prog_snova2.cxx</files> 72 88 <!-- not this : --> 89 <cxx_include>${obuild_snova_path}</cxx_include> 90 <cxx_include>${obuild_snova_path}/source/GeomUtils/include</cxx_include> 91 <cxx_include>${obuild_snova_path}/source/SNgeom2/include</cxx_include> 92 <cxx_include>${obuild_snova_path}/source/SNvertex/include</cxx_include> 93 <cxx_include copy="cxx_include" from="bhep"/> 73 94 <cxx_include copy="cxx_include" from="CLHEP"/> 74 <!-- 75 <use name="HDF5" version="v1r*"> 76 <c_include>include</c_include> 77 <lib>osc_HDF5</lib> 78 </use> 79 95 <cxx_include copy="cxx_include" from="Geant4"/> 80 96 <cxx_include copy="c_include" from="HDF5"/> 81 --> 82 </library> 97 98 <lib>snova</lib> 99 <lib>snvertex</lib> 100 <lib>sngeom</lib> 101 <lib>geomutils</lib> 102 <lib copy="lib" from="bhep"/> 103 <lib copy="lib" from="HDF5"/> 104 <lib copy="lib" from="zlib"/> 105 <lib copy="interfaces_lib" from="Geant4"/> 106 <lib copy="lib" from="Geant4"/> 107 <lib copy="lib" from="CLHEP"/> 108 </application> 109 110 <setup> 111 <load_library_path/> 112 </setup> 83 113 84 114 </package>
Note: See TracChangeset
for help on using the changeset viewer.