Changeset 276
- Timestamp:
- Mar 1, 2007, 11:12:01 AM (18 years ago)
- Location:
- snovis/trunk/obuild
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
snovis/trunk/obuild/DOS/build.bat
r267 r276 90 90 91 91 IF "%OBUILD_DIR_BIN%" == "" ( 92 SET obuild_dir_bin= %obuild_platform%_obuild92 SET obuild_dir_bin=bin_obuild 93 93 ) ELSE ( 94 94 SET obuild_dir_bin=%OBUILD_DIR_BIN% -
snovis/trunk/obuild/DOS/build_app_prog_snovis.bat
r246 r276 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snovis_path%\%obuild_dir_bin%" 96 96 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snovis_0%" 99 SET obuild_pwd_snovis_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 107 cd "%obuild_snovis_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snovis_0%" 99 111 SET obuild_pwd_snovis_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 116 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 118 cd "%obuild_snovis_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snovis_0%" 122 SET obuild_pwd_snovis_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 129 cd "%obuild_snovis_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snovis_0%" 109 133 SET obuild_pwd_snovis_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 115 cd "%obuild_snovis_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 118 cd "%obuild_pwd_snovis_0%" 119 SET obuild_pwd_snovis_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 SET HDF5_home=/usr/local/HDF5/1.6.5 122 :end_if_platform_5 123 SET obuild_platform_result= 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 125 cd "%obuild_snovis_path%\%obuild_dir_bin%" 126 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 128 cd "%obuild_pwd_snovis_0%" 129 SET obuild_pwd_snovis_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 131 SET OSC_home=/usr/local/OpenScientist/v16r0 132 :end_if_platform_7 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 141 SET obuild_cxx_command=c++ 142 :end_if_platform_8 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 151 SET obuild_cxx_command=c++ 152 :end_if_platform_9 153 SET obuild_platform_result= 154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 155 cd "%obuild_snovis_path%\%obuild_dir_bin%" 156 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 158 cd "%obuild_pwd_snovis_0%" 159 SET obuild_pwd_snovis_0= 160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 161 SET obuild_cxx_command=cxx 162 :end_if_platform_10 163 SET obuild_platform_result= 164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 165 cd "%obuild_snovis_path%\%obuild_dir_bin%" 166 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 168 cd "%obuild_pwd_snovis_0%" 169 SET obuild_pwd_snovis_0= 170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 171 SET obuild_cxx_command=cl.exe 172 :end_if_platform_11 173 SET obuild_platform_result= 174 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 175 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 177 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snovis_0%" 181 SET obuild_pwd_snovis_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_12 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 187 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snovis_0%" 191 SET obuild_pwd_snovis_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 193 SET obuild_cxx_optimize=-O 194 :end_if_platform_13 195 SET obuild_platform_result= 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 197 cd "%obuild_snovis_path%\%obuild_dir_bin%" 198 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 200 cd "%obuild_pwd_snovis_0%" 201 SET obuild_pwd_snovis_0= 202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 203 SET obuild_cxx_optimize=-O 204 :end_if_platform_14 205 SET obuild_platform_result= 206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 207 cd "%obuild_snovis_path%\%obuild_dir_bin%" 208 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 210 cd "%obuild_pwd_snovis_0%" 211 SET obuild_pwd_snovis_0= 212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 213 SET obuild_cxx_optimize=/O2 214 :end_if_platform_15 215 SET obuild_platform_result= 216 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 218 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snovis_0%" 222 SET obuild_pwd_snovis_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 224 SET obuild_cxx_debug=-g 225 :end_if_platform_16 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 228 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snovis_0%" 232 SET obuild_pwd_snovis_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 234 SET obuild_cxx_debug=-g 235 :end_if_platform_17 236 SET obuild_platform_result= 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 238 cd "%obuild_snovis_path%\%obuild_dir_bin%" 239 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 241 cd "%obuild_pwd_snovis_0%" 242 SET obuild_pwd_snovis_0= 243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 244 SET obuild_cxx_debug=-g 245 :end_if_platform_18 246 SET obuild_platform_result= 247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 248 cd "%obuild_snovis_path%\%obuild_dir_bin%" 249 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 251 cd "%obuild_pwd_snovis_0%" 252 SET obuild_pwd_snovis_0= 253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 254 SET obuild_cxx_debug=/ZI /Od 255 :end_if_platform_19 256 SET obuild_platform_result= 257 258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 259 cd "%obuild_snovis_path%\%obuild_dir_bin%" 260 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 262 cd "%obuild_pwd_snovis_0%" 263 SET obuild_pwd_snovis_0= 264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 265 SET obuild_cxx_options=-fPIC 266 :end_if_platform_20 267 SET obuild_platform_result= 268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 269 cd "%obuild_snovis_path%\%obuild_dir_bin%" 270 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 272 cd "%obuild_pwd_snovis_0%" 273 SET obuild_pwd_snovis_0= 274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 276 :end_if_platform_21 277 SET obuild_platform_result= 278 279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_22 138 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_app_prog_snovis_sh_ 22282 :else_if_db_build_app_prog_snovis_sh_ 22141 GOTO end_if_db_build_app_prog_snovis_sh_4 142 :else_if_db_build_app_prog_snovis_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_app_prog_snovis_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_ 23144 :end_if_db_build_app_prog_snovis_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_app_prog_snovis_sh_ 23289 :else_if_opt_build_app_prog_snovis_sh_ 23148 GOTO end_if_opt_build_app_prog_snovis_sh_5 149 :else_if_opt_build_app_prog_snovis_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_app_prog_snovis_sh_ 23151 :end_if_opt_build_app_prog_snovis_sh_5 292 152 293 153 … … 374 234 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include" 375 235 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 376 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d377 cd "%obuild_snovis_path%\%obuild_dir_bin%"378 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return379 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j380 cd "%obuild_pwd_snovis_0%"381 SET obuild_pwd_snovis_0=382 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30383 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include384 :end_if_platform_30385 SET obuild_platform_result=386 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d387 cd "%obuild_snovis_path%\%obuild_dir_bin%"388 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return389 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j390 cd "%obuild_pwd_snovis_0%"391 SET obuild_pwd_snovis_0=392 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31393 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include394 :end_if_platform_31395 SET obuild_platform_result=396 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d397 cd "%obuild_snovis_path%\%obuild_dir_bin%"398 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return399 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j400 cd "%obuild_pwd_snovis_0%"401 SET obuild_pwd_snovis_0=402 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32403 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include404 :end_if_platform_32405 SET obuild_platform_result=406 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d407 cd "%obuild_snovis_path%\%obuild_dir_bin%"408 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return409 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j410 cd "%obuild_pwd_snovis_0%"411 SET obuild_pwd_snovis_0=412 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33413 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include414 :end_if_platform_33415 SET obuild_platform_result=416 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d417 cd "%obuild_snovis_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% UNIX`) DO SET obuild_platform_result=%%j420 cd "%obuild_pwd_snovis_0%"421 SET obuild_pwd_snovis_0=422 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34423 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab424 :end_if_platform_34425 SET obuild_platform_result=426 236 427 237 IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis" … … 440 250 cd "%obuild_snovis_path%\%obuild_dir_bin%" 441 251 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 442 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 443 cd "%obuild_pwd_snovis_0%" 444 SET obuild_pwd_snovis_0= 445 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36 446 SET obuild_cxx_linker_command=c++ 447 :end_if_platform_36 448 SET obuild_platform_result= 449 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 450 cd "%obuild_snovis_path%\%obuild_dir_bin%" 451 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 452 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 453 cd "%obuild_pwd_snovis_0%" 454 SET obuild_pwd_snovis_0= 455 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 456 SET obuild_cxx_linker_command=c++ 457 :end_if_platform_37 458 SET obuild_platform_result= 459 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 460 cd "%obuild_snovis_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% OSF1`) DO SET obuild_platform_result=%%j 463 cd "%obuild_pwd_snovis_0%" 464 SET obuild_pwd_snovis_0= 465 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 466 SET obuild_cxx_linker_command=cxx 467 :end_if_platform_38 468 SET obuild_platform_result= 469 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 470 cd "%obuild_snovis_path%\%obuild_dir_bin%" 471 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 472 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 473 cd "%obuild_pwd_snovis_0%" 474 SET obuild_pwd_snovis_0= 475 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39 252 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 253 cd "%obuild_pwd_snovis_0%" 254 SET obuild_pwd_snovis_0= 255 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 476 256 SET obuild_cxx_linker_command=link.exe 477 :end_if_platform_ 39257 :end_if_platform_13 478 258 SET obuild_platform_result= 479 259 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 482 262 cd "%obuild_snovis_path%\%obuild_dir_bin%" 483 263 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 484 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 485 cd "%obuild_pwd_snovis_0%" 486 SET obuild_pwd_snovis_0= 487 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 488 SET obuild_cxx_linker_debug=-g 489 :end_if_platform_40 490 SET obuild_platform_result= 491 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 492 cd "%obuild_snovis_path%\%obuild_dir_bin%" 493 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 494 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 495 cd "%obuild_pwd_snovis_0%" 496 SET obuild_pwd_snovis_0= 497 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 498 SET obuild_cxx_linker_debug=-g 499 :end_if_platform_41 500 SET obuild_platform_result= 501 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 502 cd "%obuild_snovis_path%\%obuild_dir_bin%" 503 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 504 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 505 cd "%obuild_pwd_snovis_0%" 506 SET obuild_pwd_snovis_0= 507 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 508 SET obuild_cxx_linker_debug=-g 509 :end_if_platform_42 510 SET obuild_platform_result= 511 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 512 cd "%obuild_snovis_path%\%obuild_dir_bin%" 513 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 514 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 515 cd "%obuild_pwd_snovis_0%" 516 SET obuild_pwd_snovis_0= 517 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 264 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 265 cd "%obuild_pwd_snovis_0%" 266 SET obuild_pwd_snovis_0= 267 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 518 268 SET obuild_cxx_linker_debug=/DEBUG 519 :end_if_platform_ 43520 SET obuild_platform_result= 521 522 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 523 cd "%obuild_snovis_path%\%obuild_dir_bin%" 524 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 525 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 526 cd "%obuild_pwd_snovis_0%" 527 SET obuild_pwd_snovis_0= 528 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 44269 :end_if_platform_14 270 SET obuild_platform_result= 271 272 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 273 cd "%obuild_snovis_path%\%obuild_dir_bin%" 274 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 275 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 276 cd "%obuild_pwd_snovis_0%" 277 SET obuild_pwd_snovis_0= 278 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 529 279 SET obuild_cxx_linker_options=/nologo 530 :end_if_platform_ 44531 SET obuild_platform_result= 532 533 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_ 45280 :end_if_platform_15 281 SET obuild_platform_result= 282 283 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_16 534 284 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 535 GOTO end_if_db_build_app_prog_snovis_sh_ 45536 :else_if_db_build_app_prog_snovis_sh_ 45285 GOTO end_if_db_build_app_prog_snovis_sh_16 286 :else_if_db_build_app_prog_snovis_sh_16 537 287 SET obuild_cxx_linker_debug_local= 538 :end_if_db_build_app_prog_snovis_sh_ 45539 540 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_ 46288 :end_if_db_build_app_prog_snovis_sh_16 289 290 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_17 541 291 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 542 GOTO end_if_opt_build_app_prog_snovis_sh_ 46543 :else_if_opt_build_app_prog_snovis_sh_ 46292 GOTO end_if_opt_build_app_prog_snovis_sh_17 293 :else_if_opt_build_app_prog_snovis_sh_17 544 294 SET obuild_cxx_linker_optimize_local= 545 :end_if_opt_build_app_prog_snovis_sh_46 546 547 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 548 cd "%obuild_snovis_path%\%obuild_dir_bin%" 549 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 550 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 551 cd "%obuild_pwd_snovis_0%" 552 SET obuild_pwd_snovis_0= 553 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 554 SET obuild_cxx_linker_options=%obuild_cxx_linker_options% -bind_at_load -multiply_defined suppress 555 :end_if_platform_47 556 SET obuild_platform_result= 295 :end_if_opt_build_app_prog_snovis_sh_17 557 296 558 297 SET obuild_linked_libraries="%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.lib" … … 566 305 cd "%obuild_snovis_path%\%obuild_dir_bin%" 567 306 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 568 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 569 cd "%obuild_pwd_snovis_0%" 570 SET obuild_pwd_snovis_0= 571 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55 572 SET obuild_linked_libraries=%obuild_linked_libraries% -L${HDF5_home}/lib -lhdf5.0.0.0 573 :end_if_platform_55 574 SET obuild_platform_result= 575 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 576 cd "%obuild_snovis_path%\%obuild_dir_bin%" 577 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 578 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 579 cd "%obuild_pwd_snovis_0%" 580 SET obuild_pwd_snovis_0= 581 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56 582 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global 583 :end_if_platform_56 584 SET obuild_platform_result= 585 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 586 cd "%obuild_snovis_path%\%obuild_dir_bin%" 587 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 588 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 589 cd "%obuild_pwd_snovis_0%" 590 SET obuild_pwd_snovis_0= 591 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57 592 SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1 593 :end_if_platform_57 594 SET obuild_platform_result= 595 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 596 cd "%obuild_snovis_path%\%obuild_dir_bin%" 597 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 598 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 599 cd "%obuild_pwd_snovis_0%" 600 SET obuild_pwd_snovis_0= 601 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58 602 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl 603 :end_if_platform_58 604 SET obuild_platform_result= 605 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 606 cd "%obuild_snovis_path%\%obuild_dir_bin%" 607 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 608 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 609 cd "%obuild_pwd_snovis_0%" 610 SET obuild_pwd_snovis_0= 611 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59 612 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils 613 :end_if_platform_59 614 SET obuild_platform_result= 615 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 616 cd "%obuild_snovis_path%\%obuild_dir_bin%" 617 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 618 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 619 cd "%obuild_pwd_snovis_0%" 620 SET obuild_pwd_snovis_0= 621 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_60 622 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL 623 :end_if_platform_60 624 SET obuild_platform_result= 625 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 626 cd "%obuild_snovis_path%\%obuild_dir_bin%" 627 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 628 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 629 cd "%obuild_pwd_snovis_0%" 630 SET obuild_pwd_snovis_0= 631 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61 632 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices 633 :end_if_platform_61 634 SET obuild_platform_result= 635 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 636 cd "%obuild_snovis_path%\%obuild_dir_bin%" 637 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 638 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 639 cd "%obuild_pwd_snovis_0%" 640 SET obuild_pwd_snovis_0= 641 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62 642 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm 643 :end_if_platform_62 644 SET obuild_platform_result= 645 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 646 cd "%obuild_snovis_path%\%obuild_dir_bin%" 647 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 648 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 649 cd "%obuild_pwd_snovis_0%" 650 SET obuild_pwd_snovis_0= 651 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63 307 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 308 cd "%obuild_pwd_snovis_0%" 309 SET obuild_pwd_snovis_0= 310 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 652 311 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib 653 :end_if_platform_63 654 SET obuild_platform_result= 655 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 656 cd "%obuild_snovis_path%\%obuild_dir_bin%" 657 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 658 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 659 cd "%obuild_pwd_snovis_0%" 660 SET obuild_pwd_snovis_0= 661 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64 662 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm 663 :end_if_platform_64 312 :end_if_platform_25 664 313 SET obuild_platform_result= 665 314 -
snovis/trunk/obuild/DOS/build_dll_G4Lab.bat
r246 r276 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snovis_path%\%obuild_dir_bin%" 96 96 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snovis_0%" 99 SET obuild_pwd_snovis_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 107 cd "%obuild_snovis_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snovis_0%" 99 111 SET obuild_pwd_snovis_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 116 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 118 cd "%obuild_snovis_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snovis_0%" 122 SET obuild_pwd_snovis_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 129 cd "%obuild_snovis_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snovis_0%" 109 133 SET obuild_pwd_snovis_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 115 cd "%obuild_snovis_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 118 cd "%obuild_pwd_snovis_0%" 119 SET obuild_pwd_snovis_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 SET HDF5_home=/usr/local/HDF5/1.6.5 122 :end_if_platform_5 123 SET obuild_platform_result= 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 125 cd "%obuild_snovis_path%\%obuild_dir_bin%" 126 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 128 cd "%obuild_pwd_snovis_0%" 129 SET obuild_pwd_snovis_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 131 SET OSC_home=/usr/local/OpenScientist/v16r0 132 :end_if_platform_7 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 141 SET obuild_cxx_command=c++ 142 :end_if_platform_8 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 151 SET obuild_cxx_command=c++ 152 :end_if_platform_9 153 SET obuild_platform_result= 154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 155 cd "%obuild_snovis_path%\%obuild_dir_bin%" 156 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 158 cd "%obuild_pwd_snovis_0%" 159 SET obuild_pwd_snovis_0= 160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 161 SET obuild_cxx_command=cxx 162 :end_if_platform_10 163 SET obuild_platform_result= 164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 165 cd "%obuild_snovis_path%\%obuild_dir_bin%" 166 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 168 cd "%obuild_pwd_snovis_0%" 169 SET obuild_pwd_snovis_0= 170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 171 SET obuild_cxx_command=cl.exe 172 :end_if_platform_11 173 SET obuild_platform_result= 174 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 175 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 177 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snovis_0%" 181 SET obuild_pwd_snovis_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_12 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 187 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snovis_0%" 191 SET obuild_pwd_snovis_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 193 SET obuild_cxx_optimize=-O 194 :end_if_platform_13 195 SET obuild_platform_result= 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 197 cd "%obuild_snovis_path%\%obuild_dir_bin%" 198 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 200 cd "%obuild_pwd_snovis_0%" 201 SET obuild_pwd_snovis_0= 202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 203 SET obuild_cxx_optimize=-O 204 :end_if_platform_14 205 SET obuild_platform_result= 206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 207 cd "%obuild_snovis_path%\%obuild_dir_bin%" 208 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 210 cd "%obuild_pwd_snovis_0%" 211 SET obuild_pwd_snovis_0= 212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 213 SET obuild_cxx_optimize=/O2 214 :end_if_platform_15 215 SET obuild_platform_result= 216 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 218 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snovis_0%" 222 SET obuild_pwd_snovis_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 224 SET obuild_cxx_debug=-g 225 :end_if_platform_16 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 228 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snovis_0%" 232 SET obuild_pwd_snovis_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 234 SET obuild_cxx_debug=-g 235 :end_if_platform_17 236 SET obuild_platform_result= 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 238 cd "%obuild_snovis_path%\%obuild_dir_bin%" 239 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 241 cd "%obuild_pwd_snovis_0%" 242 SET obuild_pwd_snovis_0= 243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 244 SET obuild_cxx_debug=-g 245 :end_if_platform_18 246 SET obuild_platform_result= 247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 248 cd "%obuild_snovis_path%\%obuild_dir_bin%" 249 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 251 cd "%obuild_pwd_snovis_0%" 252 SET obuild_pwd_snovis_0= 253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 254 SET obuild_cxx_debug=/ZI /Od 255 :end_if_platform_19 256 SET obuild_platform_result= 257 258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 259 cd "%obuild_snovis_path%\%obuild_dir_bin%" 260 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 262 cd "%obuild_pwd_snovis_0%" 263 SET obuild_pwd_snovis_0= 264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 265 SET obuild_cxx_options=-fPIC 266 :end_if_platform_20 267 SET obuild_platform_result= 268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 269 cd "%obuild_snovis_path%\%obuild_dir_bin%" 270 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 272 cd "%obuild_pwd_snovis_0%" 273 SET obuild_pwd_snovis_0= 274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 276 :end_if_platform_21 277 SET obuild_platform_result= 278 279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_G4Lab_sh_22 138 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_G4Lab_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_dll_G4Lab_sh_ 22282 :else_if_db_build_dll_G4Lab_sh_ 22141 GOTO end_if_db_build_dll_G4Lab_sh_4 142 :else_if_db_build_dll_G4Lab_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_dll_G4Lab_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_G4Lab_sh_ 23144 :end_if_db_build_dll_G4Lab_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_G4Lab_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_dll_G4Lab_sh_ 23289 :else_if_opt_build_dll_G4Lab_sh_ 23148 GOTO end_if_opt_build_dll_G4Lab_sh_5 149 :else_if_opt_build_dll_G4Lab_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_dll_G4Lab_sh_ 23151 :end_if_opt_build_dll_G4Lab_sh_5 292 152 293 153 294 154 295 155 SET obuild_cxx_includes=/I"%obuild_snovis_path%\source" 296 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d297 cd "%obuild_snovis_path%\%obuild_dir_bin%"298 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return299 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j300 cd "%obuild_pwd_snovis_0%"301 SET obuild_pwd_snovis_0=302 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25303 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp304 :end_if_platform_25305 SET obuild_platform_result=306 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d307 cd "%obuild_snovis_path%\%obuild_dir_bin%"308 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return309 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j310 cd "%obuild_pwd_snovis_0%"311 SET obuild_pwd_snovis_0=312 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26313 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include314 :end_if_platform_26315 SET obuild_platform_result=316 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d317 cd "%obuild_snovis_path%\%obuild_dir_bin%"318 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return319 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j320 cd "%obuild_pwd_snovis_0%"321 SET obuild_pwd_snovis_0=322 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27323 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab324 :end_if_platform_27325 SET obuild_platform_result=326 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d327 cd "%obuild_snovis_path%\%obuild_dir_bin%"328 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return329 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j330 cd "%obuild_pwd_snovis_0%"331 SET obuild_pwd_snovis_0=332 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28333 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include334 :end_if_platform_28335 SET obuild_platform_result=336 156 337 157 IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_G4Lab" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_G4Lab" … … 349 169 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 350 170 cd "%obuild_snovis_path%\%obuild_dir_bin%" 351 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return352 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j353 cd "%obuild_pwd_snovis_0%"354 SET obuild_pwd_snovis_0=355 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30356 SET obuild_linked_libraries=-L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils357 :end_if_platform_30358 SET obuild_platform_result=359 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d360 cd "%obuild_snovis_path%\%obuild_dir_bin%"361 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return362 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j363 cd "%obuild_pwd_snovis_0%"364 SET obuild_pwd_snovis_0=365 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31366 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl367 :end_if_platform_31368 SET obuild_platform_result=369 370 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d371 cd "%obuild_snovis_path%\%obuild_dir_bin%"372 171 IF EXIST .\dll_G4Lab\tmp_objs DEL .\dll_G4Lab\tmp_objs 373 172 FOR %%f IN (.\dll_G4Lab\*.obj) DO ECHO %%f >> .\dll_G4Lab\tmp_objs -
snovis/trunk/obuild/DOS/build_dll_snovis.bat
r244 r276 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snovis_path%\%obuild_dir_bin%" 96 96 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snovis_0%" 99 SET obuild_pwd_snovis_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 107 cd "%obuild_snovis_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snovis_0%" 99 111 SET obuild_pwd_snovis_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 116 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 118 cd "%obuild_snovis_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snovis_0%" 122 SET obuild_pwd_snovis_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 129 cd "%obuild_snovis_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snovis_0%" 109 133 SET obuild_pwd_snovis_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 115 cd "%obuild_snovis_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 118 cd "%obuild_pwd_snovis_0%" 119 SET obuild_pwd_snovis_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 SET HDF5_home=/usr/local/HDF5/1.6.5 122 :end_if_platform_5 123 SET obuild_platform_result= 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 125 cd "%obuild_snovis_path%\%obuild_dir_bin%" 126 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 128 cd "%obuild_pwd_snovis_0%" 129 SET obuild_pwd_snovis_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 131 SET OSC_home=/usr/local/OpenScientist/v16r0 132 :end_if_platform_7 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 141 SET obuild_cxx_command=c++ 142 :end_if_platform_8 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 151 SET obuild_cxx_command=c++ 152 :end_if_platform_9 153 SET obuild_platform_result= 154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 155 cd "%obuild_snovis_path%\%obuild_dir_bin%" 156 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 158 cd "%obuild_pwd_snovis_0%" 159 SET obuild_pwd_snovis_0= 160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 161 SET obuild_cxx_command=cxx 162 :end_if_platform_10 163 SET obuild_platform_result= 164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 165 cd "%obuild_snovis_path%\%obuild_dir_bin%" 166 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 168 cd "%obuild_pwd_snovis_0%" 169 SET obuild_pwd_snovis_0= 170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 171 SET obuild_cxx_command=cl.exe 172 :end_if_platform_11 173 SET obuild_platform_result= 174 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 175 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 177 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snovis_0%" 181 SET obuild_pwd_snovis_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_12 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 187 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snovis_0%" 191 SET obuild_pwd_snovis_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 193 SET obuild_cxx_optimize=-O 194 :end_if_platform_13 195 SET obuild_platform_result= 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 197 cd "%obuild_snovis_path%\%obuild_dir_bin%" 198 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 200 cd "%obuild_pwd_snovis_0%" 201 SET obuild_pwd_snovis_0= 202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 203 SET obuild_cxx_optimize=-O 204 :end_if_platform_14 205 SET obuild_platform_result= 206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 207 cd "%obuild_snovis_path%\%obuild_dir_bin%" 208 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 210 cd "%obuild_pwd_snovis_0%" 211 SET obuild_pwd_snovis_0= 212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 213 SET obuild_cxx_optimize=/O2 214 :end_if_platform_15 215 SET obuild_platform_result= 216 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 218 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snovis_0%" 222 SET obuild_pwd_snovis_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 224 SET obuild_cxx_debug=-g 225 :end_if_platform_16 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 228 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snovis_0%" 232 SET obuild_pwd_snovis_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 234 SET obuild_cxx_debug=-g 235 :end_if_platform_17 236 SET obuild_platform_result= 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 238 cd "%obuild_snovis_path%\%obuild_dir_bin%" 239 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 241 cd "%obuild_pwd_snovis_0%" 242 SET obuild_pwd_snovis_0= 243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 244 SET obuild_cxx_debug=-g 245 :end_if_platform_18 246 SET obuild_platform_result= 247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 248 cd "%obuild_snovis_path%\%obuild_dir_bin%" 249 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 251 cd "%obuild_pwd_snovis_0%" 252 SET obuild_pwd_snovis_0= 253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 254 SET obuild_cxx_debug=/ZI /Od 255 :end_if_platform_19 256 SET obuild_platform_result= 257 258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 259 cd "%obuild_snovis_path%\%obuild_dir_bin%" 260 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 262 cd "%obuild_pwd_snovis_0%" 263 SET obuild_pwd_snovis_0= 264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 265 SET obuild_cxx_options=-fPIC 266 :end_if_platform_20 267 SET obuild_platform_result= 268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 269 cd "%obuild_snovis_path%\%obuild_dir_bin%" 270 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 272 cd "%obuild_pwd_snovis_0%" 273 SET obuild_pwd_snovis_0= 274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 276 :end_if_platform_21 277 SET obuild_platform_result= 278 279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_22 138 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_dll_snovis_sh_ 22282 :else_if_db_build_dll_snovis_sh_ 22141 GOTO end_if_db_build_dll_snovis_sh_4 142 :else_if_db_build_dll_snovis_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_dll_snovis_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_ 23144 :end_if_db_build_dll_snovis_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_dll_snovis_sh_ 23289 :else_if_opt_build_dll_snovis_sh_ 23148 GOTO end_if_opt_build_dll_snovis_sh_5 149 :else_if_opt_build_dll_snovis_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_dll_snovis_sh_23 292 293 294 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 295 cd "%obuild_snovis_path%\%obuild_dir_bin%" 296 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 297 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 298 cd "%obuild_pwd_snovis_0%" 299 SET obuild_pwd_snovis_0= 300 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 301 SET obuild_cxx_macros=%obuild_cxx_macros% /DAPPLE_GL 302 :end_if_platform_24 303 SET obuild_platform_result= 151 :end_if_opt_build_dll_snovis_sh_5 152 304 153 305 154 306 155 SET obuild_cxx_includes=/I"%obuild_snovis_path%" 307 156 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snovis_path%\source" 308 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d309 cd "%obuild_snovis_path%\%obuild_dir_bin%"310 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return311 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j312 cd "%obuild_pwd_snovis_0%"313 SET obuild_pwd_snovis_0=314 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27315 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include316 :end_if_platform_27317 SET obuild_platform_result=318 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d319 cd "%obuild_snovis_path%\%obuild_dir_bin%"320 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return321 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j322 cd "%obuild_pwd_snovis_0%"323 SET obuild_pwd_snovis_0=324 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28325 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include326 :end_if_platform_28327 SET obuild_platform_result=328 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d329 cd "%obuild_snovis_path%\%obuild_dir_bin%"330 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return331 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j332 cd "%obuild_pwd_snovis_0%"333 SET obuild_pwd_snovis_0=334 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29335 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp336 :end_if_platform_29337 SET obuild_platform_result=338 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d339 cd "%obuild_snovis_path%\%obuild_dir_bin%"340 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return341 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j342 cd "%obuild_pwd_snovis_0%"343 SET obuild_pwd_snovis_0=344 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30345 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include346 :end_if_platform_30347 SET obuild_platform_result=348 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d349 cd "%obuild_snovis_path%\%obuild_dir_bin%"350 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return351 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j352 cd "%obuild_pwd_snovis_0%"353 SET obuild_pwd_snovis_0=354 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31355 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab356 :end_if_platform_31357 SET obuild_platform_result=358 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d359 cd "%obuild_snovis_path%\%obuild_dir_bin%"360 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return361 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j362 cd "%obuild_pwd_snovis_0%"363 SET obuild_pwd_snovis_0=364 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32365 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include366 :end_if_platform_32367 SET obuild_platform_result=368 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d369 cd "%obuild_snovis_path%\%obuild_dir_bin%"370 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return371 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j372 cd "%obuild_pwd_snovis_0%"373 SET obuild_pwd_snovis_0=374 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33375 SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers376 :end_if_platform_33377 SET obuild_platform_result=378 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d379 cd "%obuild_snovis_path%\%obuild_dir_bin%"380 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return381 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j382 cd "%obuild_pwd_snovis_0%"383 SET obuild_pwd_snovis_0=384 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34385 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include386 :end_if_platform_34387 SET obuild_platform_result=388 157 389 158 IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" … … 415 184 cd "%obuild_snovis_path%\%obuild_dir_bin%" 416 185 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 417 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 418 cd "%obuild_pwd_snovis_0%" 419 SET obuild_pwd_snovis_0= 420 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39 421 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global 422 :end_if_platform_39 423 SET obuild_platform_result= 424 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 425 cd "%obuild_snovis_path%\%obuild_dir_bin%" 426 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 427 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 428 cd "%obuild_pwd_snovis_0%" 429 SET obuild_pwd_snovis_0= 430 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 431 SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1 432 :end_if_platform_40 433 SET obuild_platform_result= 434 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 435 cd "%obuild_snovis_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% UNIX`) DO SET obuild_platform_result=%%j 438 cd "%obuild_pwd_snovis_0%" 439 SET obuild_pwd_snovis_0= 440 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 441 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils 442 :end_if_platform_41 443 SET obuild_platform_result= 444 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 445 cd "%obuild_snovis_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% UNIX`) DO SET obuild_platform_result=%%j 448 cd "%obuild_pwd_snovis_0%" 449 SET obuild_pwd_snovis_0= 450 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 451 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl 452 :end_if_platform_42 453 SET obuild_platform_result= 454 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 455 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 458 cd "%obuild_pwd_snovis_0%" 459 SET obuild_pwd_snovis_0= 460 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 461 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL 462 :end_if_platform_43 463 SET obuild_platform_result= 464 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 465 cd "%obuild_snovis_path%\%obuild_dir_bin%" 466 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 467 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 468 cd "%obuild_pwd_snovis_0%" 469 SET obuild_pwd_snovis_0= 470 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44 471 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices 472 :end_if_platform_44 473 SET obuild_platform_result= 474 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 475 cd "%obuild_snovis_path%\%obuild_dir_bin%" 476 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 477 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 478 cd "%obuild_pwd_snovis_0%" 479 SET obuild_pwd_snovis_0= 480 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45 481 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm 482 :end_if_platform_45 483 SET obuild_platform_result= 484 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 485 cd "%obuild_snovis_path%\%obuild_dir_bin%" 486 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 487 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 488 cd "%obuild_pwd_snovis_0%" 489 SET obuild_pwd_snovis_0= 490 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46 186 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 187 cd "%obuild_pwd_snovis_0%" 188 SET obuild_pwd_snovis_0= 189 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 491 190 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib 492 :end_if_platform_46 493 SET obuild_platform_result= 494 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 495 cd "%obuild_snovis_path%\%obuild_dir_bin%" 496 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 497 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 498 cd "%obuild_pwd_snovis_0%" 499 SET obuild_pwd_snovis_0= 500 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 501 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm 502 :end_if_platform_47 191 :end_if_platform_12 503 192 SET obuild_platform_result= 504 193 -
snovis/trunk/obuild/DOS/build_lib_G4LabCore.bat
r246 r276 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snovis_path%\%obuild_dir_bin%" 96 96 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snovis_0%" 99 SET obuild_pwd_snovis_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 107 cd "%obuild_snovis_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snovis_0%" 99 111 SET obuild_pwd_snovis_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 116 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 118 cd "%obuild_snovis_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snovis_0%" 122 SET obuild_pwd_snovis_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 129 cd "%obuild_snovis_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snovis_0%" 109 133 SET obuild_pwd_snovis_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 115 cd "%obuild_snovis_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 118 cd "%obuild_pwd_snovis_0%" 119 SET obuild_pwd_snovis_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 SET HDF5_home=/usr/local/HDF5/1.6.5 122 :end_if_platform_5 123 SET obuild_platform_result= 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 125 cd "%obuild_snovis_path%\%obuild_dir_bin%" 126 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 128 cd "%obuild_pwd_snovis_0%" 129 SET obuild_pwd_snovis_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 131 SET OSC_home=/usr/local/OpenScientist/v16r0 132 :end_if_platform_7 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 141 SET obuild_cxx_command=c++ 142 :end_if_platform_8 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 151 SET obuild_cxx_command=c++ 152 :end_if_platform_9 153 SET obuild_platform_result= 154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 155 cd "%obuild_snovis_path%\%obuild_dir_bin%" 156 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 158 cd "%obuild_pwd_snovis_0%" 159 SET obuild_pwd_snovis_0= 160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 161 SET obuild_cxx_command=cxx 162 :end_if_platform_10 163 SET obuild_platform_result= 164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 165 cd "%obuild_snovis_path%\%obuild_dir_bin%" 166 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 168 cd "%obuild_pwd_snovis_0%" 169 SET obuild_pwd_snovis_0= 170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 171 SET obuild_cxx_command=cl.exe 172 :end_if_platform_11 173 SET obuild_platform_result= 174 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 175 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 177 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snovis_0%" 181 SET obuild_pwd_snovis_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_12 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 187 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snovis_0%" 191 SET obuild_pwd_snovis_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 193 SET obuild_cxx_optimize=-O 194 :end_if_platform_13 195 SET obuild_platform_result= 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 197 cd "%obuild_snovis_path%\%obuild_dir_bin%" 198 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 200 cd "%obuild_pwd_snovis_0%" 201 SET obuild_pwd_snovis_0= 202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 203 SET obuild_cxx_optimize=-O 204 :end_if_platform_14 205 SET obuild_platform_result= 206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 207 cd "%obuild_snovis_path%\%obuild_dir_bin%" 208 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 210 cd "%obuild_pwd_snovis_0%" 211 SET obuild_pwd_snovis_0= 212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 213 SET obuild_cxx_optimize=/O2 214 :end_if_platform_15 215 SET obuild_platform_result= 216 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 218 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snovis_0%" 222 SET obuild_pwd_snovis_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 224 SET obuild_cxx_debug=-g 225 :end_if_platform_16 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 228 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snovis_0%" 232 SET obuild_pwd_snovis_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 234 SET obuild_cxx_debug=-g 235 :end_if_platform_17 236 SET obuild_platform_result= 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 238 cd "%obuild_snovis_path%\%obuild_dir_bin%" 239 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 241 cd "%obuild_pwd_snovis_0%" 242 SET obuild_pwd_snovis_0= 243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 244 SET obuild_cxx_debug=-g 245 :end_if_platform_18 246 SET obuild_platform_result= 247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 248 cd "%obuild_snovis_path%\%obuild_dir_bin%" 249 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 251 cd "%obuild_pwd_snovis_0%" 252 SET obuild_pwd_snovis_0= 253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 254 SET obuild_cxx_debug=/ZI /Od 255 :end_if_platform_19 256 SET obuild_platform_result= 257 258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 259 cd "%obuild_snovis_path%\%obuild_dir_bin%" 260 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 262 cd "%obuild_pwd_snovis_0%" 263 SET obuild_pwd_snovis_0= 264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 265 SET obuild_cxx_options=-fPIC 266 :end_if_platform_20 267 SET obuild_platform_result= 268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 269 cd "%obuild_snovis_path%\%obuild_dir_bin%" 270 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 272 cd "%obuild_pwd_snovis_0%" 273 SET obuild_pwd_snovis_0= 274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 276 :end_if_platform_21 277 SET obuild_platform_result= 278 279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_22 138 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_lib_G4LabCore_sh_ 22282 :else_if_db_build_lib_G4LabCore_sh_ 22141 GOTO end_if_db_build_lib_G4LabCore_sh_4 142 :else_if_db_build_lib_G4LabCore_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_lib_G4LabCore_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_ 23144 :end_if_db_build_lib_G4LabCore_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_lib_G4LabCore_sh_ 23289 :else_if_opt_build_lib_G4LabCore_sh_ 23148 GOTO end_if_opt_build_lib_G4LabCore_sh_5 149 :else_if_opt_build_lib_G4LabCore_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_lib_G4LabCore_sh_23 292 293 294 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 295 cd "%obuild_snovis_path%\%obuild_dir_bin%" 296 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 297 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 298 cd "%obuild_pwd_snovis_0%" 299 SET obuild_pwd_snovis_0= 300 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 301 SET obuild_cxx_macros=%obuild_cxx_macros% /DAPPLE_GL 302 :end_if_platform_24 303 SET obuild_platform_result= 151 :end_if_opt_build_lib_G4LabCore_sh_5 152 304 153 305 154 306 155 SET obuild_cxx_includes=/I"%obuild_snovis_path%\source" 307 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d308 cd "%obuild_snovis_path%\%obuild_dir_bin%"309 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return310 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j311 cd "%obuild_pwd_snovis_0%"312 SET obuild_pwd_snovis_0=313 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26314 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include315 :end_if_platform_26316 SET obuild_platform_result=317 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d318 cd "%obuild_snovis_path%\%obuild_dir_bin%"319 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return320 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j321 cd "%obuild_pwd_snovis_0%"322 SET obuild_pwd_snovis_0=323 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27324 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include325 :end_if_platform_27326 SET obuild_platform_result=327 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d328 cd "%obuild_snovis_path%\%obuild_dir_bin%"329 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return330 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j331 cd "%obuild_pwd_snovis_0%"332 SET obuild_pwd_snovis_0=333 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28334 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp335 :end_if_platform_28336 SET obuild_platform_result=337 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d338 cd "%obuild_snovis_path%\%obuild_dir_bin%"339 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return340 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j341 cd "%obuild_pwd_snovis_0%"342 SET obuild_pwd_snovis_0=343 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29344 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include345 :end_if_platform_29346 SET obuild_platform_result=347 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d348 cd "%obuild_snovis_path%\%obuild_dir_bin%"349 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return350 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j351 cd "%obuild_pwd_snovis_0%"352 SET obuild_pwd_snovis_0=353 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30354 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab355 :end_if_platform_30356 SET obuild_platform_result=357 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d358 cd "%obuild_snovis_path%\%obuild_dir_bin%"359 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return360 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j361 cd "%obuild_pwd_snovis_0%"362 SET obuild_pwd_snovis_0=363 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31364 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include365 :end_if_platform_31366 SET obuild_platform_result=367 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d368 cd "%obuild_snovis_path%\%obuild_dir_bin%"369 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return370 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j371 cd "%obuild_pwd_snovis_0%"372 SET obuild_pwd_snovis_0=373 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32374 SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers375 :end_if_platform_32376 SET obuild_platform_result=377 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d378 cd "%obuild_snovis_path%\%obuild_dir_bin%"379 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return380 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j381 cd "%obuild_pwd_snovis_0%"382 SET obuild_pwd_snovis_0=383 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33384 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include385 :end_if_platform_33386 SET obuild_platform_result=387 156 388 157 IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" … … 503 272 cd "%obuild_snovis_path%\%obuild_dir_bin%" 504 273 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 505 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 506 cd "%obuild_pwd_snovis_0%" 507 SET obuild_pwd_snovis_0= 508 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52 509 SET obuild_cxx_linker_command=c++ 510 :end_if_platform_52 511 SET obuild_platform_result= 512 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 513 cd "%obuild_snovis_path%\%obuild_dir_bin%" 514 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 515 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 516 cd "%obuild_pwd_snovis_0%" 517 SET obuild_pwd_snovis_0= 518 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53 519 SET obuild_cxx_linker_command=c++ 520 :end_if_platform_53 521 SET obuild_platform_result= 522 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 523 cd "%obuild_snovis_path%\%obuild_dir_bin%" 524 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 525 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 526 cd "%obuild_pwd_snovis_0%" 527 SET obuild_pwd_snovis_0= 528 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54 529 SET obuild_cxx_linker_command=cxx 530 :end_if_platform_54 531 SET obuild_platform_result= 532 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 533 cd "%obuild_snovis_path%\%obuild_dir_bin%" 534 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 535 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 536 cd "%obuild_pwd_snovis_0%" 537 SET obuild_pwd_snovis_0= 538 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55 274 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 275 cd "%obuild_pwd_snovis_0%" 276 SET obuild_pwd_snovis_0= 277 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 539 278 SET obuild_cxx_linker_command=link.exe 540 :end_if_platform_ 55279 :end_if_platform_25 541 280 SET obuild_platform_result= 542 281 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 545 284 cd "%obuild_snovis_path%\%obuild_dir_bin%" 546 285 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 547 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 548 cd "%obuild_pwd_snovis_0%" 549 SET obuild_pwd_snovis_0= 550 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56 551 SET obuild_cxx_linker_debug=-g 552 :end_if_platform_56 553 SET obuild_platform_result= 554 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 555 cd "%obuild_snovis_path%\%obuild_dir_bin%" 556 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 557 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 558 cd "%obuild_pwd_snovis_0%" 559 SET obuild_pwd_snovis_0= 560 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57 561 SET obuild_cxx_linker_debug=-g 562 :end_if_platform_57 563 SET obuild_platform_result= 564 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 565 cd "%obuild_snovis_path%\%obuild_dir_bin%" 566 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 567 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 568 cd "%obuild_pwd_snovis_0%" 569 SET obuild_pwd_snovis_0= 570 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58 571 SET obuild_cxx_linker_debug=-g 572 :end_if_platform_58 573 SET obuild_platform_result= 574 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 575 cd "%obuild_snovis_path%\%obuild_dir_bin%" 576 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 577 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 578 cd "%obuild_pwd_snovis_0%" 579 SET obuild_pwd_snovis_0= 580 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59 286 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 287 cd "%obuild_pwd_snovis_0%" 288 SET obuild_pwd_snovis_0= 289 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26 581 290 SET obuild_cxx_linker_debug=/DEBUG 582 :end_if_platform_ 59583 SET obuild_platform_result= 584 585 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 586 cd "%obuild_snovis_path%\%obuild_dir_bin%" 587 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 588 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 589 cd "%obuild_pwd_snovis_0%" 590 SET obuild_pwd_snovis_0= 591 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 60291 :end_if_platform_26 292 SET obuild_platform_result= 293 294 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 295 cd "%obuild_snovis_path%\%obuild_dir_bin%" 296 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 297 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 298 cd "%obuild_pwd_snovis_0%" 299 SET obuild_pwd_snovis_0= 300 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27 592 301 SET obuild_cxx_linker_options=/nologo 593 :end_if_platform_ 60594 SET obuild_platform_result= 595 596 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_ 61302 :end_if_platform_27 303 SET obuild_platform_result= 304 305 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_28 597 306 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 598 GOTO end_if_db_build_lib_G4LabCore_sh_ 61599 :else_if_db_build_lib_G4LabCore_sh_ 61307 GOTO end_if_db_build_lib_G4LabCore_sh_28 308 :else_if_db_build_lib_G4LabCore_sh_28 600 309 SET obuild_cxx_linker_debug_local= 601 :end_if_db_build_lib_G4LabCore_sh_ 61602 603 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_ 62310 :end_if_db_build_lib_G4LabCore_sh_28 311 312 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_29 604 313 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 605 GOTO end_if_opt_build_lib_G4LabCore_sh_ 62606 :else_if_opt_build_lib_G4LabCore_sh_ 62314 GOTO end_if_opt_build_lib_G4LabCore_sh_29 315 :else_if_opt_build_lib_G4LabCore_sh_29 607 316 SET obuild_cxx_linker_optimize_local= 608 :end_if_opt_build_lib_G4LabCore_sh_ 62317 :end_if_opt_build_lib_G4LabCore_sh_29 609 318 610 319 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d -
snovis/trunk/obuild/DOS/build_lib_G4LabUIOnX.bat
r246 r276 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snovis_path%\%obuild_dir_bin%" 96 96 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snovis_0%" 99 SET obuild_pwd_snovis_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 107 cd "%obuild_snovis_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snovis_0%" 99 111 SET obuild_pwd_snovis_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 116 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 118 cd "%obuild_snovis_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snovis_0%" 122 SET obuild_pwd_snovis_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 129 cd "%obuild_snovis_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snovis_0%" 109 133 SET obuild_pwd_snovis_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 115 cd "%obuild_snovis_path%\%obuild_dir_bin%" 116 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 118 cd "%obuild_pwd_snovis_0%" 119 SET obuild_pwd_snovis_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 SET HDF5_home=/usr/local/HDF5/1.6.5 122 :end_if_platform_5 123 SET obuild_platform_result= 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 125 cd "%obuild_snovis_path%\%obuild_dir_bin%" 126 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 128 cd "%obuild_pwd_snovis_0%" 129 SET obuild_pwd_snovis_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 131 SET OSC_home=/usr/local/OpenScientist/v16r0 132 :end_if_platform_7 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 141 SET obuild_cxx_command=c++ 142 :end_if_platform_8 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 151 SET obuild_cxx_command=c++ 152 :end_if_platform_9 153 SET obuild_platform_result= 154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 155 cd "%obuild_snovis_path%\%obuild_dir_bin%" 156 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 158 cd "%obuild_pwd_snovis_0%" 159 SET obuild_pwd_snovis_0= 160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 161 SET obuild_cxx_command=cxx 162 :end_if_platform_10 163 SET obuild_platform_result= 164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 165 cd "%obuild_snovis_path%\%obuild_dir_bin%" 166 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 168 cd "%obuild_pwd_snovis_0%" 169 SET obuild_pwd_snovis_0= 170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 171 SET obuild_cxx_command=cl.exe 172 :end_if_platform_11 173 SET obuild_platform_result= 174 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 175 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 177 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 180 cd "%obuild_pwd_snovis_0%" 181 SET obuild_pwd_snovis_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 183 SET obuild_cxx_optimize=-O 184 :end_if_platform_12 185 SET obuild_platform_result= 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 187 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 190 cd "%obuild_pwd_snovis_0%" 191 SET obuild_pwd_snovis_0= 192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 193 SET obuild_cxx_optimize=-O 194 :end_if_platform_13 195 SET obuild_platform_result= 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 197 cd "%obuild_snovis_path%\%obuild_dir_bin%" 198 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 200 cd "%obuild_pwd_snovis_0%" 201 SET obuild_pwd_snovis_0= 202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 203 SET obuild_cxx_optimize=-O 204 :end_if_platform_14 205 SET obuild_platform_result= 206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 207 cd "%obuild_snovis_path%\%obuild_dir_bin%" 208 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 210 cd "%obuild_pwd_snovis_0%" 211 SET obuild_pwd_snovis_0= 212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 213 SET obuild_cxx_optimize=/O2 214 :end_if_platform_15 215 SET obuild_platform_result= 216 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 218 cd "%obuild_snovis_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% Darwin`) DO SET obuild_platform_result=%%j 221 cd "%obuild_pwd_snovis_0%" 222 SET obuild_pwd_snovis_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 224 SET obuild_cxx_debug=-g 225 :end_if_platform_16 226 SET obuild_platform_result= 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 228 cd "%obuild_snovis_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% Linux`) DO SET obuild_platform_result=%%j 231 cd "%obuild_pwd_snovis_0%" 232 SET obuild_pwd_snovis_0= 233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 234 SET obuild_cxx_debug=-g 235 :end_if_platform_17 236 SET obuild_platform_result= 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 238 cd "%obuild_snovis_path%\%obuild_dir_bin%" 239 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 241 cd "%obuild_pwd_snovis_0%" 242 SET obuild_pwd_snovis_0= 243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 244 SET obuild_cxx_debug=-g 245 :end_if_platform_18 246 SET obuild_platform_result= 247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 248 cd "%obuild_snovis_path%\%obuild_dir_bin%" 249 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 251 cd "%obuild_pwd_snovis_0%" 252 SET obuild_pwd_snovis_0= 253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 254 SET obuild_cxx_debug=/ZI /Od 255 :end_if_platform_19 256 SET obuild_platform_result= 257 258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 259 cd "%obuild_snovis_path%\%obuild_dir_bin%" 260 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 262 cd "%obuild_pwd_snovis_0%" 263 SET obuild_pwd_snovis_0= 264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 265 SET obuild_cxx_options=-fPIC 266 :end_if_platform_20 267 SET obuild_platform_result= 268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 269 cd "%obuild_snovis_path%\%obuild_dir_bin%" 270 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 272 cd "%obuild_pwd_snovis_0%" 273 SET obuild_pwd_snovis_0= 274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 276 :end_if_platform_21 277 SET obuild_platform_result= 278 279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabUIOnX_sh_22 138 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabUIOnX_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_lib_G4LabUIOnX_sh_ 22282 :else_if_db_build_lib_G4LabUIOnX_sh_ 22141 GOTO end_if_db_build_lib_G4LabUIOnX_sh_4 142 :else_if_db_build_lib_G4LabUIOnX_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_lib_G4LabUIOnX_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabUIOnX_sh_ 23144 :end_if_db_build_lib_G4LabUIOnX_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabUIOnX_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_lib_G4LabUIOnX_sh_ 23289 :else_if_opt_build_lib_G4LabUIOnX_sh_ 23148 GOTO end_if_opt_build_lib_G4LabUIOnX_sh_5 149 :else_if_opt_build_lib_G4LabUIOnX_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_lib_G4LabUIOnX_sh_ 23151 :end_if_opt_build_lib_G4LabUIOnX_sh_5 292 152 293 153 294 154 295 155 SET obuild_cxx_includes=/I"%obuild_snovis_path%\source" 296 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d297 cd "%obuild_snovis_path%\%obuild_dir_bin%"298 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return299 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j300 cd "%obuild_pwd_snovis_0%"301 SET obuild_pwd_snovis_0=302 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25303 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include304 :end_if_platform_25305 SET obuild_platform_result=306 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d307 cd "%obuild_snovis_path%\%obuild_dir_bin%"308 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return309 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j310 cd "%obuild_pwd_snovis_0%"311 SET obuild_pwd_snovis_0=312 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26313 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include314 :end_if_platform_26315 SET obuild_platform_result=316 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d317 cd "%obuild_snovis_path%\%obuild_dir_bin%"318 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return319 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j320 cd "%obuild_pwd_snovis_0%"321 SET obuild_pwd_snovis_0=322 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27323 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include324 :end_if_platform_27325 SET obuild_platform_result=326 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d327 cd "%obuild_snovis_path%\%obuild_dir_bin%"328 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return329 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j330 cd "%obuild_pwd_snovis_0%"331 SET obuild_pwd_snovis_0=332 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28333 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab334 :end_if_platform_28335 SET obuild_platform_result=336 156 337 157 IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabUIOnX" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabUIOnX" … … 350 170 cd "%obuild_snovis_path%\%obuild_dir_bin%" 351 171 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 352 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 353 cd "%obuild_pwd_snovis_0%" 354 SET obuild_pwd_snovis_0= 355 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 356 SET obuild_cxx_linker_command=c++ 357 :end_if_platform_30 358 SET obuild_platform_result= 359 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 360 cd "%obuild_snovis_path%\%obuild_dir_bin%" 361 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 362 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 363 cd "%obuild_pwd_snovis_0%" 364 SET obuild_pwd_snovis_0= 365 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31 366 SET obuild_cxx_linker_command=c++ 367 :end_if_platform_31 368 SET obuild_platform_result= 369 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 370 cd "%obuild_snovis_path%\%obuild_dir_bin%" 371 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 372 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 373 cd "%obuild_pwd_snovis_0%" 374 SET obuild_pwd_snovis_0= 375 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32 376 SET obuild_cxx_linker_command=cxx 377 :end_if_platform_32 378 SET obuild_platform_result= 379 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 380 cd "%obuild_snovis_path%\%obuild_dir_bin%" 381 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 382 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 383 cd "%obuild_pwd_snovis_0%" 384 SET obuild_pwd_snovis_0= 385 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33 172 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 173 cd "%obuild_pwd_snovis_0%" 174 SET obuild_pwd_snovis_0= 175 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 386 176 SET obuild_cxx_linker_command=link.exe 387 :end_if_platform_ 33177 :end_if_platform_8 388 178 SET obuild_platform_result= 389 179 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 392 182 cd "%obuild_snovis_path%\%obuild_dir_bin%" 393 183 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% Darwin`) DO SET obuild_platform_result=%%j 395 cd "%obuild_pwd_snovis_0%" 396 SET obuild_pwd_snovis_0= 397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34 398 SET obuild_cxx_linker_debug=-g 399 :end_if_platform_34 400 SET obuild_platform_result= 401 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 402 cd "%obuild_snovis_path%\%obuild_dir_bin%" 403 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 404 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 405 cd "%obuild_pwd_snovis_0%" 406 SET obuild_pwd_snovis_0= 407 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35 408 SET obuild_cxx_linker_debug=-g 409 :end_if_platform_35 410 SET obuild_platform_result= 411 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 412 cd "%obuild_snovis_path%\%obuild_dir_bin%" 413 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 414 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 415 cd "%obuild_pwd_snovis_0%" 416 SET obuild_pwd_snovis_0= 417 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36 418 SET obuild_cxx_linker_debug=-g 419 :end_if_platform_36 420 SET obuild_platform_result= 421 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 422 cd "%obuild_snovis_path%\%obuild_dir_bin%" 423 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 424 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 425 cd "%obuild_pwd_snovis_0%" 426 SET obuild_pwd_snovis_0= 427 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 184 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 185 cd "%obuild_pwd_snovis_0%" 186 SET obuild_pwd_snovis_0= 187 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 428 188 SET obuild_cxx_linker_debug=/DEBUG 429 :end_if_platform_ 37430 SET obuild_platform_result= 431 432 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 433 cd "%obuild_snovis_path%\%obuild_dir_bin%" 434 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 435 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 436 cd "%obuild_pwd_snovis_0%" 437 SET obuild_pwd_snovis_0= 438 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 38189 :end_if_platform_9 190 SET obuild_platform_result= 191 192 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 193 cd "%obuild_snovis_path%\%obuild_dir_bin%" 194 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 195 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 196 cd "%obuild_pwd_snovis_0%" 197 SET obuild_pwd_snovis_0= 198 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 439 199 SET obuild_cxx_linker_options=/nologo 440 :end_if_platform_ 38441 SET obuild_platform_result= 442 443 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabUIOnX_sh_ 39200 :end_if_platform_10 201 SET obuild_platform_result= 202 203 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabUIOnX_sh_11 444 204 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 445 GOTO end_if_db_build_lib_G4LabUIOnX_sh_ 39446 :else_if_db_build_lib_G4LabUIOnX_sh_ 39205 GOTO end_if_db_build_lib_G4LabUIOnX_sh_11 206 :else_if_db_build_lib_G4LabUIOnX_sh_11 447 207 SET obuild_cxx_linker_debug_local= 448 :end_if_db_build_lib_G4LabUIOnX_sh_ 39449 450 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabUIOnX_sh_ 40208 :end_if_db_build_lib_G4LabUIOnX_sh_11 209 210 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabUIOnX_sh_12 451 211 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 452 GOTO end_if_opt_build_lib_G4LabUIOnX_sh_ 40453 :else_if_opt_build_lib_G4LabUIOnX_sh_ 40212 GOTO end_if_opt_build_lib_G4LabUIOnX_sh_12 213 :else_if_opt_build_lib_G4LabUIOnX_sh_12 454 214 SET obuild_cxx_linker_optimize_local= 455 :end_if_opt_build_lib_G4LabUIOnX_sh_ 40215 :end_if_opt_build_lib_G4LabUIOnX_sh_12 456 216 457 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d -
snovis/trunk/obuild/setup.bat
r244 r276 32 32 33 33 IF "%OBUILD_DIR_BIN%" == "" ( 34 SET obuild_dir_bin= %obuild_platform%_obuild34 SET obuild_dir_bin=bin_obuild 35 35 ) ELSE ( 36 36 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 42 42 ) 43 43 44 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"45 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (46 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL47 IF EXIST obuild_platform.obj DEL obuild_platform.obj48 )49 50 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d51 cd "%obuild_snovis_path%\%obuild_dir_bin%"52 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return53 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j54 cd "%obuild_pwd_snovis_0%"55 SET obuild_pwd_snovis_0=56 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_157 SET CLHEP_home=/usr/local/CLHEP/2.0.3.158 :end_if_platform_159 SET obuild_platform_result=60 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d61 cd "%obuild_snovis_path%\%obuild_dir_bin%"62 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return63 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j64 cd "%obuild_pwd_snovis_0%"65 SET obuild_pwd_snovis_0=66 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_367 SET Geant4_home=/usr/local/geant4/8.268 :end_if_platform_369 SET obuild_platform_result=70 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d71 cd "%obuild_snovis_path%\%obuild_dir_bin%"72 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return73 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j74 cd "%obuild_pwd_snovis_0%"75 SET obuild_pwd_snovis_0=76 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_577 SET HDF5_home=/usr/local/HDF5/1.6.578 :end_if_platform_579 SET obuild_platform_result=80 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d81 cd "%obuild_snovis_path%\%obuild_dir_bin%"82 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return83 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j84 cd "%obuild_pwd_snovis_0%"85 SET obuild_pwd_snovis_0=86 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_787 SET OSC_home=/usr/local/OpenScientist/v16r088 :end_if_platform_789 SET obuild_platform_result=90 44 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 91 45 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( … … 112 66 SET G4LABROOT=%obuild_snovis_path%\Resources\G4Lab 113 67 114 IF DEFINED PATH GOTO else_if_path_snovis_ 1268 IF DEFINED PATH GOTO else_if_path_snovis_4 115 69 SET PATH=%obuild_snovis_path%\%obuild_dir_bin% 116 GOTO end_if_path_snovis_ 12117 :else_if_path_snovis_ 1270 GOTO end_if_path_snovis_4 71 :else_if_path_snovis_4 118 72 SET PATH=%PATH%;%obuild_snovis_path%\%obuild_dir_bin% 119 :end_if_path_snovis_ 1273 :end_if_path_snovis_4 120 74 121 75 :obuild_return -
snovis/trunk/obuild/setup.csh
r244 r276 84 84 if ( $?OBUILD_DIR_BIN ) then 85 85 if ( "${OBUILD_DIR_BIN}" == "" ) then 86 set obuild_dir_bin= ${obuild_platform}_obuild86 set obuild_dir_bin=bin_obuild 87 87 else 88 88 set obuild_dir_bin=${OBUILD_DIR_BIN} 89 89 endif 90 90 else 91 set obuild_dir_bin= ${obuild_platform}_obuild91 set obuild_dir_bin=bin_obuild 92 92 endif 93 93 -
snovis/trunk/obuild/setup.sh
r244 r276 78 78 79 79 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 80 obuild_dir_bin= ${obuild_platform}_obuild80 obuild_dir_bin=bin_obuild 81 81 else 82 82 obuild_dir_bin=${OBUILD_DIR_BIN} -
snovis/trunk/obuild/sh/broadcast_install
r244 r276 46 46 47 47 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 48 obuild_dir_bin= ${obuild_platform}_obuild48 obuild_dir_bin=bin_obuild 49 49 else 50 50 obuild_dir_bin=${OBUILD_DIR_BIN} -
snovis/trunk/obuild/sh/build
r267 r276 100 100 fi 101 101 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 102 obuild_dir_bin= ${obuild_platform}_obuild102 obuild_dir_bin=bin_obuild 103 103 else 104 104 obuild_dir_bin=${OBUILD_DIR_BIN} -
snovis/trunk/obuild/sh/build_Darwin_app
r268 r276 27 27 28 28 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 29 obuild_dir_bin= ${obuild_platform}_obuild29 obuild_dir_bin=bin_obuild 30 30 else 31 31 obuild_dir_bin=${OBUILD_DIR_BIN} -
snovis/trunk/obuild/sh/build_app_prog_snovis
r246 r276 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result … … 496 460 fi 497 461 unset obuild_platform_result 498 if [ "${obuild_platform_exe}" = "" ] ; then499 echo "Variable obuild_platform_exe not defined."500 exit501 fi502 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`503 if [ ${obuild_platform_result} = yes ] ; then504 obuild_cxx_linker_command="link.exe"505 fi506 unset obuild_platform_result507 462 if [ "${obuild_cxx_linker_command}" = "" ] ; then 508 463 echo "Variable obuild_cxx_linker_command not defined." … … 535 490 if [ ${obuild_platform_result} = yes ] ; then 536 491 obuild_cxx_linker_debug="-g" 537 fi538 unset obuild_platform_result539 if [ "${obuild_platform_exe}" = "" ] ; then540 echo "Variable obuild_platform_exe not defined."541 exit542 fi543 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`544 if [ ${obuild_platform_result} = yes ] ; then545 obuild_cxx_linker_debug="/DEBUG"546 fi547 unset obuild_platform_result548 549 if [ "${obuild_platform_exe}" = "" ] ; then550 echo "Variable obuild_platform_exe not defined."551 exit552 fi553 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`554 if [ ${obuild_platform_result} = yes ] ; then555 obuild_cxx_linker_options="/nologo"556 492 fi 557 493 unset obuild_platform_result … … 668 604 exit 669 605 fi 670 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`671 if [ ${obuild_platform_result} = yes ] ; then672 obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib"673 fi674 unset obuild_platform_result675 if [ "${obuild_platform_exe}" = "" ] ; then676 echo "Variable obuild_platform_exe not defined."677 exit678 fi679 606 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` 680 607 if [ ${obuild_platform_result} = yes ] ; then -
snovis/trunk/obuild/sh/build_darwin_app_prog_snovis
r268 r276 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} -
snovis/trunk/obuild/sh/build_dll_G4Lab
r246 r276 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result -
snovis/trunk/obuild/sh/build_dll_snovis
r244 r276 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result … … 462 426 if [ ${obuild_platform_result} = yes ] ; then 463 427 obuild_linked_libraries="${obuild_linked_libraries} -L/usr/lib -lGLU -lGL -lm" 464 fi465 unset obuild_platform_result466 if [ "${obuild_platform_exe}" = "" ] ; then467 echo "Variable obuild_platform_exe not defined."468 exit469 fi470 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`471 if [ ${obuild_platform_result} = yes ] ; then472 obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib"473 428 fi 474 429 unset obuild_platform_result -
snovis/trunk/obuild/sh/build_lib_G4LabCore
r246 r276 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result -
snovis/trunk/obuild/sh/build_lib_G4LabUIOnX
r246 r276 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result -
snovis/trunk/obuild/sh/check_foreigns
r244 r276 28 28 29 29 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 30 obuild_dir_bin= ${obuild_platform}_obuild30 obuild_dir_bin=bin_obuild 31 31 else 32 32 obuild_dir_bin=${OBUILD_DIR_BIN} -
snovis/trunk/obuild/this.obuild
r266 r276 117 117 </copy_dir> 118 118 119 <copy_dir> 120 <from>Resources/G4Lab</from> 121 <to>Resources/.</to> 122 </copy_dir> 123 119 124 <copy_dir platform="Darwin"> 120 125 <from>Darwin_obuild/snovis_session.app</from>
Note: See TracChangeset
for help on using the changeset viewer.