Changeset 244 for snovis


Ignore:
Timestamp:
Feb 15, 2007, 10:36:50 AM (17 years ago)
Author:
barrand
Message:
 
Location:
snovis/trunk/obuild
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • snovis/trunk/obuild/DOS/build.bat

    r134 r244  
    146146IF NOT %obuild_group% == main GOTO end_if_group_0
    147147IF NOT %obuild_do_mains% == yes GOTO end_if_main_0
    148   IF NOT EXIST .\DOS\build_dll_snovis.bat  GOTO end_if_build_0
    149     CALL .\DOS\build_dll_snovis.bat %obuild_args%
     148  IF NOT EXIST .\DOS\build_lib_G4LabCore.bat  GOTO end_if_build_0
     149    CALL .\DOS\build_lib_G4LabCore.bat %obuild_args%
    150150    @IF ERRORLEVEL 1 @GOTO obuild_return
    151151    @ECHO OFF
     
    153153:end_if_main_0
    154154:end_if_group_0
    155 
    156155IF NOT %obuild_group% == main GOTO end_if_group_1
    157156IF NOT %obuild_do_mains% == yes GOTO end_if_main_1
    158   IF NOT EXIST .\DOS\build_app_prog_snova.bat  GOTO end_if_build_1
    159     CALL .\DOS\build_app_prog_snova.bat %obuild_args%
     157  IF NOT EXIST .\DOS\build_lib_G4LabUIOnX.bat  GOTO end_if_build_1
     158    CALL .\DOS\build_lib_G4LabUIOnX.bat %obuild_args%
    160159    @IF ERRORLEVEL 1 @GOTO obuild_return
    161160    @ECHO OFF
     
    163162:end_if_main_1
    164163:end_if_group_1
     164
    165165IF NOT %obuild_group% == main GOTO end_if_group_2
    166166IF NOT %obuild_do_mains% == yes GOTO end_if_main_2
    167   IF NOT EXIST .\DOS\build_app_snovis_session.bat  GOTO end_if_build_2
    168     CALL .\DOS\build_app_snovis_session.bat %obuild_args%
     167  IF NOT EXIST .\DOS\build_dll_G4Lab.bat  GOTO end_if_build_2
     168    CALL .\DOS\build_dll_G4Lab.bat %obuild_args%
    169169    @IF ERRORLEVEL 1 @GOTO obuild_return
    170170    @ECHO OFF
     
    172172:end_if_main_2
    173173:end_if_group_2
     174IF NOT %obuild_group% == main GOTO end_if_group_3
     175IF NOT %obuild_do_mains% == yes GOTO end_if_main_3
     176  IF NOT EXIST .\DOS\build_dll_snovis.bat  GOTO end_if_build_3
     177    CALL .\DOS\build_dll_snovis.bat %obuild_args%
     178    @IF ERRORLEVEL 1 @GOTO obuild_return
     179    @ECHO OFF
     180:end_if_build_3
     181:end_if_main_3
     182:end_if_group_3
    174183
     184IF NOT %obuild_group% == main GOTO end_if_group_4
     185IF NOT %obuild_do_mains% == yes GOTO end_if_main_4
     186  IF NOT EXIST .\DOS\build_app_prog_snovis.bat  GOTO end_if_build_4
     187    CALL .\DOS\build_app_prog_snovis.bat %obuild_args%
     188    @IF ERRORLEVEL 1 @GOTO obuild_return
     189    @ECHO OFF
     190:end_if_build_4
     191:end_if_main_4
     192:end_if_group_4
    175193
    176194:obuild_return
  • snovis/trunk/obuild/DOS/build_dll_snovis.bat

    r137 r244  
    115115cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116116IF 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% Darwin`) 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_4
     117FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     118cd "%obuild_pwd_snovis_0%"
     119SET obuild_pwd_snovis_0=
     120IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
     121SET HDF5_home=/usr/local/HDF5/1.6.5
     122:end_if_platform_5
     123SET obuild_platform_result=
     124FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     125cd "%obuild_snovis_path%\%obuild_dir_bin%"
     126IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     127FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     128cd "%obuild_pwd_snovis_0%"
     129SET obuild_pwd_snovis_0=
     130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
     131SET OSC_home=/usr/local/OpenScientist/v16r0
     132:end_if_platform_7
     133SET obuild_platform_result=
     134FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     135cd "%obuild_snovis_path%\%obuild_dir_bin%"
     136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     138cd "%obuild_pwd_snovis_0%"
     139SET obuild_pwd_snovis_0=
     140IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    121141SET obuild_cxx_command=c++
    122 :end_if_platform_4
     142:end_if_platform_8
    123143SET obuild_platform_result=
    124144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    128148cd "%obuild_pwd_snovis_0%"
    129149SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
     150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    131151SET obuild_cxx_command=c++
    132 :end_if_platform_5
     152:end_if_platform_9
    133153SET obuild_platform_result=
    134154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    138158cd "%obuild_pwd_snovis_0%"
    139159SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6
     160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    141161SET obuild_cxx_command=cxx
    142 :end_if_platform_6
     162:end_if_platform_10
    143163SET obuild_platform_result=
    144164FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    148168cd "%obuild_pwd_snovis_0%"
    149169SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
     170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    151171SET obuild_cxx_command=cl.exe
    152 :end_if_platform_7
     172:end_if_platform_11
    153173SET obuild_platform_result=
    154174IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     
    160180cd "%obuild_pwd_snovis_0%"
    161181SET obuild_pwd_snovis_0=
    162 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
     182IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    163183SET obuild_cxx_optimize=-O
    164 :end_if_platform_8
     184:end_if_platform_12
    165185SET obuild_platform_result=
    166186FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    170190cd "%obuild_pwd_snovis_0%"
    171191SET obuild_pwd_snovis_0=
    172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
     192IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    173193SET obuild_cxx_optimize=-O
    174 :end_if_platform_9
     194:end_if_platform_13
    175195SET obuild_platform_result=
    176196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    180200cd "%obuild_pwd_snovis_0%"
    181201SET obuild_pwd_snovis_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
     202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    183203SET obuild_cxx_optimize=-O
    184 :end_if_platform_10
     204:end_if_platform_14
    185205SET obuild_platform_result=
    186206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    190210cd "%obuild_pwd_snovis_0%"
    191211SET obuild_pwd_snovis_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
     212IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    193213SET obuild_cxx_optimize=/O2
    194 :end_if_platform_11
    195 SET obuild_platform_result=
    196 
    197 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    198 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    199 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    200 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    201 cd "%obuild_pwd_snovis_0%"
    202 SET obuild_pwd_snovis_0=
    203 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     214:end_if_platform_15
     215SET obuild_platform_result=
     216
     217FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     218cd "%obuild_snovis_path%\%obuild_dir_bin%"
     219IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     220FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     221cd "%obuild_pwd_snovis_0%"
     222SET obuild_pwd_snovis_0=
     223IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    204224SET obuild_cxx_debug=-g
    205 :end_if_platform_12
     225:end_if_platform_16
    206226SET obuild_platform_result=
    207227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    211231cd "%obuild_pwd_snovis_0%"
    212232SET obuild_pwd_snovis_0=
    213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     233IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    214234SET obuild_cxx_debug=-g
    215 :end_if_platform_13
     235:end_if_platform_17
    216236SET obuild_platform_result=
    217237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    221241cd "%obuild_pwd_snovis_0%"
    222242SET obuild_pwd_snovis_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    224244SET obuild_cxx_debug=-g
    225 :end_if_platform_14
     245:end_if_platform_18
    226246SET obuild_platform_result=
    227247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    231251cd "%obuild_pwd_snovis_0%"
    232252SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
     253IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    234254SET obuild_cxx_debug=/ZI /Od
    235 :end_if_platform_15
     255:end_if_platform_19
    236256SET obuild_platform_result=
    237257
     
    242262cd "%obuild_pwd_snovis_0%"
    243263SET obuild_pwd_snovis_0=
    244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
     264IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    245265SET obuild_cxx_options=-fPIC
    246 :end_if_platform_16
     266:end_if_platform_20
    247267SET obuild_platform_result=
    248268FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    252272cd "%obuild_pwd_snovis_0%"
    253273SET obuild_pwd_snovis_0=
    254 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
     274IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    255275SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    256 :end_if_platform_17
    257 SET obuild_platform_result=
    258 
    259 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_18
     276:end_if_platform_21
     277SET obuild_platform_result=
     278
     279IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_22
    260280  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    261   GOTO end_if_db_build_dll_snovis_sh_18
    262 :else_if_db_build_dll_snovis_sh_18
     281  GOTO end_if_db_build_dll_snovis_sh_22
     282:else_if_db_build_dll_snovis_sh_22
    263283  SET obuild_cxx_debug_local=
    264 :end_if_db_build_dll_snovis_sh_18
    265 
    266 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_19
     284:end_if_db_build_dll_snovis_sh_22
     285
     286IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_23
    267287  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    268   GOTO end_if_opt_build_dll_snovis_sh_19
    269 :else_if_opt_build_dll_snovis_sh_19
     288  GOTO end_if_opt_build_dll_snovis_sh_23
     289:else_if_opt_build_dll_snovis_sh_23
    270290  SET obuild_cxx_optimize_local=
    271 :end_if_opt_build_dll_snovis_sh_19
    272 
    273 
    274 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    275 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
    276   cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL
    277   IF EXIST obuild_find.obj DEL obuild_find.obj
    278 )
    279 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    280 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    281 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    282 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
    283 cd "%obuild_pwd_snovis_0%"
    284 SET obuild_pwd_snovis_0=
    285 IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
    286 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    287 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    288 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    289 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Slash v1r*`) DO SET obuild_Slash_path=%%j
    290 cd "%obuild_pwd_snovis_0%"
    291 SET obuild_pwd_snovis_0=
    292 IF NOT DEFINED obuild_Slash_path  ECHO Can't find Slash package.  && GOTO obuild_return
    293 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    294 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    295 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    296 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
    297 cd "%obuild_pwd_snovis_0%"
    298 SET obuild_pwd_snovis_0=
    299 IF NOT DEFINED obuild_AIDA_path  ECHO Can't find AIDA package.  && GOTO obuild_return
    300 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    301 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    302 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    303 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
    304 cd "%obuild_pwd_snovis_0%"
    305 SET obuild_pwd_snovis_0=
    306 IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX package.  && GOTO obuild_return
    307 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    308 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    309 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    310 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
    311 cd "%obuild_pwd_snovis_0%"
    312 SET obuild_pwd_snovis_0=
    313 IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
    314 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    315 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    316 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    317 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  BatchLab v1r*`) DO SET obuild_BatchLab_path=%%j
    318 cd "%obuild_pwd_snovis_0%"
    319 SET obuild_pwd_snovis_0=
    320 IF NOT DEFINED obuild_BatchLab_path  ECHO Can't find BatchLab package.  && GOTO obuild_return
    321 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    322 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    323 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    324 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
    325 cd "%obuild_pwd_snovis_0%"
    326 SET obuild_pwd_snovis_0=
    327 IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
    328 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    329 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    330 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    331 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
    332 cd "%obuild_pwd_snovis_0%"
    333 SET obuild_pwd_snovis_0=
    334 IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
    335 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    336 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    337 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    338 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
    339 cd "%obuild_pwd_snovis_0%"
    340 SET obuild_pwd_snovis_0=
    341 IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
    342 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    343 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    344 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    345 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  expat v1r*`) DO SET obuild_expat_path=%%j
    346 cd "%obuild_pwd_snovis_0%"
    347 SET obuild_pwd_snovis_0=
    348 IF NOT DEFINED obuild_expat_path  ECHO Can't find expat package.  && GOTO obuild_return
    349 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    350 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    351 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    352 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
    353 cd "%obuild_pwd_snovis_0%"
    354 SET obuild_pwd_snovis_0=
    355 IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
    356 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    357 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    358 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    359 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
    360 cd "%obuild_pwd_snovis_0%"
    361 SET obuild_pwd_snovis_0=
    362 IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
    363 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    364 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    365 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    366 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  Lib v8r*`) DO SET obuild_Lib_path=%%j
    367 cd "%obuild_pwd_snovis_0%"
    368 SET obuild_pwd_snovis_0=
    369 IF NOT DEFINED obuild_Lib_path  ECHO Can't find Lib package.  && GOTO obuild_return
    370 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    371 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    372 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    373 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
    374 cd "%obuild_pwd_snovis_0%"
    375 SET obuild_pwd_snovis_0=
    376 IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
    377 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    378 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    379 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    380 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
    381 cd "%obuild_pwd_snovis_0%"
    382 SET obuild_pwd_snovis_0=
    383 IF NOT DEFINED obuild_HEPVis_path  ECHO Can't find HEPVis package.  && GOTO obuild_return
    384 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    385 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    386 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    387 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  jpeg v1r*`) DO SET obuild_jpeg_path=%%j
    388 cd "%obuild_pwd_snovis_0%"
    389 SET obuild_pwd_snovis_0=
    390 IF NOT DEFINED obuild_jpeg_path  ECHO Can't find jpeg package.  && GOTO obuild_return
    391 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    392 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    393 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    394 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
    395 cd "%obuild_pwd_snovis_0%"
    396 SET obuild_pwd_snovis_0=
    397 IF NOT DEFINED obuild_dvi2bitmap_path  ECHO Can't find dvi2bitmap package.  && GOTO obuild_return
    398 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    399 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    400 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    401 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
    402 cd "%obuild_pwd_snovis_0%"
    403 SET obuild_pwd_snovis_0=
    404 IF NOT DEFINED obuild_freetype2_path  ECHO Can't find freetype2 package.  && GOTO obuild_return
    405 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    406 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    407 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    408 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
    409 cd "%obuild_pwd_snovis_0%"
    410 SET obuild_pwd_snovis_0=
    411 IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
     291:end_if_opt_build_dll_snovis_sh_23
     292
     293
     294FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     295cd "%obuild_snovis_path%\%obuild_dir_bin%"
     296IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     297FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     298cd "%obuild_pwd_snovis_0%"
     299SET obuild_pwd_snovis_0=
     300IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
     301SET obuild_cxx_macros=%obuild_cxx_macros% /DAPPLE_GL
     302:end_if_platform_24
     303SET obuild_platform_result=
     304
    412305
    413306SET obuild_cxx_includes=/I"%obuild_snovis_path%"
    414 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
    415 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
    416 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
    417 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_OnX_path%\include"
    418 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
    419 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_BatchLab_path%"
    420 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HEPVis_path%\include"
    421 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_CoinGL_path%\include"
    422 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    423 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    424 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    425 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     307SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snovis_path%\source"
     308FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     309cd "%obuild_snovis_path%\%obuild_dir_bin%"
     310IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     311FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     312cd "%obuild_pwd_snovis_0%"
     313SET obuild_pwd_snovis_0=
     314IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
     315SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
     316:end_if_platform_27
     317SET obuild_platform_result=
     318FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     319cd "%obuild_snovis_path%\%obuild_dir_bin%"
     320IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     321FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     322cd "%obuild_pwd_snovis_0%"
     323SET obuild_pwd_snovis_0=
     324IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
     325SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
     326:end_if_platform_28
     327SET obuild_platform_result=
     328FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     329cd "%obuild_snovis_path%\%obuild_dir_bin%"
     330IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     331FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    426332cd "%obuild_pwd_snovis_0%"
    427333SET obuild_pwd_snovis_0=
    428334IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
     335SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp
     336:end_if_platform_29
     337SET obuild_platform_result=
     338FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     339cd "%obuild_snovis_path%\%obuild_dir_bin%"
     340IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     341FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     342cd "%obuild_pwd_snovis_0%"
     343SET obuild_pwd_snovis_0=
     344IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
     345SET 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/include
     346:end_if_platform_30
     347SET obuild_platform_result=
     348FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     349cd "%obuild_snovis_path%\%obuild_dir_bin%"
     350IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     351FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     352cd "%obuild_pwd_snovis_0%"
     353SET obuild_pwd_snovis_0=
     354IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
     355SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab
     356:end_if_platform_31
     357SET obuild_platform_result=
     358FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     359cd "%obuild_snovis_path%\%obuild_dir_bin%"
     360IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     361FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     362cd "%obuild_pwd_snovis_0%"
     363SET obuild_pwd_snovis_0=
     364IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
     365SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include
     366:end_if_platform_32
     367SET obuild_platform_result=
     368FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     369cd "%obuild_snovis_path%\%obuild_dir_bin%"
     370IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     371FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     372cd "%obuild_pwd_snovis_0%"
     373SET obuild_pwd_snovis_0=
     374IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    429375SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
    430 :end_if_platform_29
     376:end_if_platform_33
    431377SET obuild_platform_result=
    432378FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    436382cd "%obuild_pwd_snovis_0%"
    437383SET obuild_pwd_snovis_0=
    438 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
     384IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    439385SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
    440 :end_if_platform_30
     386:end_if_platform_34
    441387SET obuild_platform_result=
    442388
     
    465411@IF %obuild_verbose% == yes @ECHO OFF
    466412
    467 SET obuild_linked_libraries="%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
    468 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
    469 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
    470 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
    471 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
    472 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
    473 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
    474 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
    475 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
    476 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
    477 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
    478 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    479 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    480 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    481 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     413SET obuild_linked_libraries=-L${Geant4_home}/lib -lG4physicslists
     414FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     415cd "%obuild_snovis_path%\%obuild_dir_bin%"
     416IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     417FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     418cd "%obuild_pwd_snovis_0%"
     419SET obuild_pwd_snovis_0=
     420IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
     421SET 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
     423SET obuild_platform_result=
     424FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     425cd "%obuild_snovis_path%\%obuild_dir_bin%"
     426IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     427FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     428cd "%obuild_pwd_snovis_0%"
     429SET obuild_pwd_snovis_0=
     430IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
     431SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1
     432:end_if_platform_40
     433SET obuild_platform_result=
     434FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     435cd "%obuild_snovis_path%\%obuild_dir_bin%"
     436IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     437FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     438cd "%obuild_pwd_snovis_0%"
     439SET obuild_pwd_snovis_0=
     440IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
     441SET 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
     443SET obuild_platform_result=
     444FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     445cd "%obuild_snovis_path%\%obuild_dir_bin%"
     446IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     447FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     448cd "%obuild_pwd_snovis_0%"
     449SET obuild_pwd_snovis_0=
     450IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
     451SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl
     452:end_if_platform_42
     453SET obuild_platform_result=
     454FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     455cd "%obuild_snovis_path%\%obuild_dir_bin%"
     456IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     457FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     458cd "%obuild_pwd_snovis_0%"
     459SET obuild_pwd_snovis_0=
     460IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
     461SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     462:end_if_platform_43
     463SET obuild_platform_result=
     464FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     465cd "%obuild_snovis_path%\%obuild_dir_bin%"
     466IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     467FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     468cd "%obuild_pwd_snovis_0%"
     469SET obuild_pwd_snovis_0=
     470IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
     471SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     472:end_if_platform_44
     473SET obuild_platform_result=
     474FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     475cd "%obuild_snovis_path%\%obuild_dir_bin%"
     476IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     477FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    482478cd "%obuild_pwd_snovis_0%"
    483479SET obuild_pwd_snovis_0=
    484480IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    485 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     481SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    486482:end_if_platform_45
    487483SET obuild_platform_result=
     
    489485cd "%obuild_snovis_path%\%obuild_dir_bin%"
    490486IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    491 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     487FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    492488cd "%obuild_pwd_snovis_0%"
    493489SET obuild_pwd_snovis_0=
    494490IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
    495 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     491SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    496492:end_if_platform_46
    497493SET obuild_platform_result=
     
    499495cd "%obuild_snovis_path%\%obuild_dir_bin%"
    500496IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    501 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     497FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    502498cd "%obuild_pwd_snovis_0%"
    503499SET obuild_pwd_snovis_0=
    504500IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    505 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
     501SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    506502:end_if_platform_47
    507 SET obuild_platform_result=
    508 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    509 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    510 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    511 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    512 cd "%obuild_pwd_snovis_0%"
    513 SET obuild_pwd_snovis_0=
    514 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
    515 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    516 :end_if_platform_48
    517 SET obuild_platform_result=
    518 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    519 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    520 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    521 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    522 cd "%obuild_pwd_snovis_0%"
    523 SET obuild_pwd_snovis_0=
    524 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
    525 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    526 :end_if_platform_49
    527 SET obuild_platform_result=
    528 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    529 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    530 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    531 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    532 cd "%obuild_pwd_snovis_0%"
    533 SET obuild_pwd_snovis_0=
    534 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
    535 SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    536 :end_if_platform_50
    537503SET obuild_platform_result=
    538504
  • snovis/trunk/obuild/setup.bat

    r211 r244  
    6868:end_if_platform_3
    6969SET obuild_platform_result=
     70FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     71cd "%obuild_snovis_path%\%obuild_dir_bin%"
     72IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     73FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     74cd "%obuild_pwd_snovis_0%"
     75SET obuild_pwd_snovis_0=
     76IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
     77SET HDF5_home=/usr/local/HDF5/1.6.5
     78:end_if_platform_5
     79SET obuild_platform_result=
     80FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     81cd "%obuild_snovis_path%\%obuild_dir_bin%"
     82IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     83FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     84cd "%obuild_pwd_snovis_0%"
     85SET obuild_pwd_snovis_0=
     86IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
     87SET OSC_home=/usr/local/OpenScientist/v16r0
     88:end_if_platform_7
     89SET obuild_platform_result=
    7090IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    7191IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
     
    80100SET obuild_pwd_snovis_0=
    81101IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
    82 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    83 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    84 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    85 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
    86 cd "%obuild_pwd_snovis_0%"
    87 SET obuild_pwd_snovis_0=
    88 IF NOT DEFINED obuild_OnX_path  ECHO Can't find OnX package.  && GOTO obuild_return
    89 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    90 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    91 IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    92 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
    93 cd "%obuild_pwd_snovis_0%"
    94 SET obuild_pwd_snovis_0=
    95 IF NOT DEFINED obuild_G4Lab_path  ECHO Can't find G4Lab package.  && GOTO obuild_return
    96102
    97103REM # Execute setup of used packages :
     
    100106@ECHO OFF
    101107
    102 IF NOT EXIST "%obuild_OnX_path%\obuild\setup.bat"  ECHO setup.bat not found for package OnX.  && GOTO obuild_return
    103 CALL "%obuild_OnX_path%\obuild\setup.bat"
    104 @ECHO OFF
    105 
    106 IF NOT EXIST "%obuild_G4Lab_path%\obuild\setup.bat"  ECHO setup.bat not found for package G4Lab.  && GOTO obuild_return
    107 CALL "%obuild_G4Lab_path%\obuild\setup.bat"
    108 @ECHO OFF
    109 
    110108REM # Set environment variables of this package :
    111109SET SNOVISROOT=%obuild_snovis_path%
     110SET ONXROOT=%OSC_home%\Resources\OnX
     111SET ONXLABROOT=%OSC_home%\Resources\OnXLab
     112SET G4LABROOT=%obuild_snovis_path%\Resources\G4Lab
    112113
    113 IF DEFINED PATH GOTO else_if_path_snovis_5
     114IF DEFINED PATH GOTO else_if_path_snovis_12
    114115  SET PATH=%obuild_snovis_path%\%obuild_dir_bin%
    115   GOTO end_if_path_snovis_5
    116 :else_if_path_snovis_5
     116  GOTO end_if_path_snovis_12
     117:else_if_path_snovis_12
    117118  SET PATH=%PATH%;%obuild_snovis_path%\%obuild_dir_bin%
    118 :end_if_path_snovis_5
     119:end_if_path_snovis_12
    119120
    120121:obuild_return
  • snovis/trunk/obuild/setup.csh

    r211 r244  
    141141endif
    142142unset obuild_platform_result
     143if ( "${obuild_platform_exe}" == "" ) then
     144  echo "Variable obuild_platform_exe not defined."
     145  exit
     146endif
     147set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     148if ( ${obuild_platform_result} == yes ) then
     149set HDF5_home="/usr/local/HDF5/1.6.5"
     150endif
     151unset obuild_platform_result
     152if ( "${obuild_platform_exe}" == "" ) then
     153  echo "Variable obuild_platform_exe not defined."
     154  exit
     155endif
     156set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     157if ( ${obuild_platform_result} == yes ) then
     158set OSC_home="/usr/local/OpenScientist/v16r0"
     159endif
     160unset obuild_platform_result
    143161if ( ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ) then
    144162  if ( ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ) then
     
    172190endif
    173191set obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
    174 if ( "${obuild_find_exe}" == "" ) then
    175   echo "Variable obuild_find_exe not defined."
    176   exit
    177 endif
    178 set obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
    179 if ( "${obuild_find_exe}" == "" ) then
    180   echo "Variable obuild_find_exe not defined."
    181   exit
    182 endif
    183 set obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
    184192
    185193# Execute setup of used packages :
    186194source "${obuild_snova_path}/obuild/setup.csh"
    187195
    188 source "${obuild_OnX_path}/obuild/setup.csh"
    189 
    190 source "${obuild_G4Lab_path}/obuild/setup.csh"
    191 
    192196# Set environment variables of this package :
    193197setenv SNOVISROOT "${obuild_snovis_path}"
     198setenv ONXROOT "${OSC_home}/Resources/OnX"
     199setenv ONXLABROOT "${OSC_home}/Resources/OnXLab"
     200setenv G4LABROOT "${obuild_snovis_path}/Resources/G4Lab"
     201
     202if ( "${obuild_platform_exe}" == "" ) then
     203  echo "Variable obuild_platform_exe not defined."
     204  exit
     205endif
     206set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
     207if ( ${obuild_platform_result} == yes ) then
     208if ( "${obuild_platform_exe}" == "" ) then
     209  echo "Variable obuild_platform_exe not defined."
     210  exit
     211endif
     212set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     213if ( ${obuild_platform_result} == yes ) then
     214  if (  $?DYLD_LIBRARY_PATH ) then
     215    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${HDF5_home}/lib"
     216  else
     217    setenv DYLD_LIBRARY_PATH "${HDF5_home}/lib"
     218  endif
     219endif
     220unset obuild_platform_result
     221else
     222if ( "${obuild_platform_exe}" == "" ) then
     223  echo "Variable obuild_platform_exe not defined."
     224  exit
     225endif
     226set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     227if ( ${obuild_platform_result} == yes ) then
     228  if (  $?LD_LIBRARY_PATH ) then
     229    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${HDF5_home}/lib"
     230  else
     231    setenv LD_LIBRARY_PATH "${HDF5_home}/lib"
     232  endif
     233endif
     234unset obuild_platform_result
     235endif
     236unset obuild_platform_result
     237
     238if ( "${obuild_platform_exe}" == "" ) then
     239  echo "Variable obuild_platform_exe not defined."
     240  exit
     241endif
     242set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
     243if ( ${obuild_platform_result} == yes ) then
     244if ( "${obuild_platform_exe}" == "" ) then
     245  echo "Variable obuild_platform_exe not defined."
     246  exit
     247endif
     248set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     249if ( ${obuild_platform_result} == yes ) then
     250  if (  $?DYLD_LIBRARY_PATH ) then
     251    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${CLHEP_home}/lib"
     252  else
     253    setenv DYLD_LIBRARY_PATH "${CLHEP_home}/lib"
     254  endif
     255endif
     256unset obuild_platform_result
     257else
     258if ( "${obuild_platform_exe}" == "" ) then
     259  echo "Variable obuild_platform_exe not defined."
     260  exit
     261endif
     262set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     263if ( ${obuild_platform_result} == yes ) then
     264  if (  $?LD_LIBRARY_PATH ) then
     265    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${CLHEP_home}/lib"
     266  else
     267    setenv LD_LIBRARY_PATH "${CLHEP_home}/lib"
     268  endif
     269endif
     270unset obuild_platform_result
     271endif
     272unset obuild_platform_result
     273
     274if ( "${obuild_platform_exe}" == "" ) then
     275  echo "Variable obuild_platform_exe not defined."
     276  exit
     277endif
     278set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
     279if ( ${obuild_platform_result} == yes ) then
     280if ( "${obuild_platform_exe}" == "" ) then
     281  echo "Variable obuild_platform_exe not defined."
     282  exit
     283endif
     284set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     285if ( ${obuild_platform_result} == yes ) then
     286  if (  $?DYLD_LIBRARY_PATH ) then
     287    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${Geant4_home}/lib"
     288  else
     289    setenv DYLD_LIBRARY_PATH "${Geant4_home}/lib"
     290  endif
     291endif
     292unset obuild_platform_result
     293else
     294if ( "${obuild_platform_exe}" == "" ) then
     295  echo "Variable obuild_platform_exe not defined."
     296  exit
     297endif
     298set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     299if ( ${obuild_platform_result} == yes ) then
     300  if (  $?LD_LIBRARY_PATH ) then
     301    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${Geant4_home}/lib"
     302  else
     303    setenv LD_LIBRARY_PATH "${Geant4_home}/lib"
     304  endif
     305endif
     306unset obuild_platform_result
     307endif
     308unset obuild_platform_result
     309
     310if ( "${obuild_platform_exe}" == "" ) then
     311  echo "Variable obuild_platform_exe not defined."
     312  exit
     313endif
     314set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
     315if ( ${obuild_platform_result} == yes ) then
     316if ( "${obuild_platform_exe}" == "" ) then
     317  echo "Variable obuild_platform_exe not defined."
     318  exit
     319endif
     320set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     321if ( ${obuild_platform_result} == yes ) then
     322  if (  $?DYLD_LIBRARY_PATH ) then
     323    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${OSC_home}/bin"
     324  else
     325    setenv DYLD_LIBRARY_PATH "${OSC_home}/bin"
     326  endif
     327endif
     328unset obuild_platform_result
     329else
     330if ( "${obuild_platform_exe}" == "" ) then
     331  echo "Variable obuild_platform_exe not defined."
     332  exit
     333endif
     334set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
     335if ( ${obuild_platform_result} == yes ) then
     336  if (  $?LD_LIBRARY_PATH ) then
     337    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${OSC_home}/bin"
     338  else
     339    setenv LD_LIBRARY_PATH "${OSC_home}/bin"
     340  endif
     341endif
     342unset obuild_platform_result
     343endif
     344unset obuild_platform_result
    194345
    195346if ( "${obuild_platform_exe}" == "" ) then
  • snovis/trunk/obuild/setup.sh

    r211 r244  
    128128fi
    129129unset obuild_platform_result
     130if [ "${obuild_platform_exe}" = "" ] ; then
     131  echo "Variable obuild_platform_exe not defined."
     132  return
     133fi
     134obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     135if [ ${obuild_platform_result} = yes ] ; then
     136HDF5_home="/usr/local/HDF5/1.6.5"
     137fi
     138unset obuild_platform_result
     139if [ "${obuild_platform_exe}" = "" ] ; then
     140  echo "Variable obuild_platform_exe not defined."
     141  return
     142fi
     143obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     144if [ ${obuild_platform_result} = yes ] ; then
     145OSC_home="/usr/local/OpenScientist/v16r0"
     146fi
     147unset obuild_platform_result
    130148if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
    131149  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
     
    159177  return
    160178fi
    161 if [ "${obuild_find_exe}" = "" ] ; then
    162   echo "Variable obuild_find_exe not defined."
    163   return
    164 fi
    165 obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
    166 if [ "${obuild_OnX_path}" = "" ] ; then
    167   echo "Can't find OnX package."
    168   return
    169 fi
    170 if [ "${obuild_find_exe}" = "" ] ; then
    171   echo "Variable obuild_find_exe not defined."
    172   return
    173 fi
    174 obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
    175 if [ "${obuild_G4Lab_path}" = "" ] ; then
    176   echo "Can't find G4Lab package."
    177   return
    178 fi
    179179
    180180# Execute setup of used packages :
     
    185185. "${obuild_snova_path}/obuild/setup.sh"
    186186
    187 if [ ! -e "${obuild_OnX_path}/obuild/setup.sh" ] ; then
    188   echo "setup.sh not found for package OnX."
    189   return
    190 fi
    191 . "${obuild_OnX_path}/obuild/setup.sh"
    192 
    193 if [ ! -e "${obuild_G4Lab_path}/obuild/setup.sh" ] ; then
    194   echo "setup.sh not found for package G4Lab."
    195   return
    196 fi
    197 . "${obuild_G4Lab_path}/obuild/setup.sh"
    198 
    199187# Set environment variables of this package :
    200188SNOVISROOT="${obuild_snovis_path}"
    201189export SNOVISROOT
     190ONXROOT="${OSC_home}/Resources/OnX"
     191export ONXROOT
     192ONXLABROOT="${OSC_home}/Resources/OnXLab"
     193export ONXLABROOT
     194G4LABROOT="${obuild_snovis_path}/Resources/G4Lab"
     195export G4LABROOT
     196
     197if [ "${obuild_platform_exe}" = "" ] ; then
     198  echo "Variable obuild_platform_exe not defined."
     199  return
     200fi
     201obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     202if [ ${obuild_platform_result} = yes ] ; then
     203if [ "${obuild_platform_exe}" = "" ] ; then
     204  echo "Variable obuild_platform_exe not defined."
     205  return
     206fi
     207obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     208if [ ${obuild_platform_result} = yes ] ; then
     209  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
     210    DYLD_LIBRARY_PATH="${HDF5_home}/lib"
     211    export DYLD_LIBRARY_PATH
     212  else
     213    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${HDF5_home}/lib"
     214    export DYLD_LIBRARY_PATH
     215  fi
     216fi
     217unset obuild_platform_result
     218else
     219if [ "${obuild_platform_exe}" = "" ] ; then
     220  echo "Variable obuild_platform_exe not defined."
     221  return
     222fi
     223obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     224if [ ${obuild_platform_result} = yes ] ; then
     225  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
     226    LD_LIBRARY_PATH="${HDF5_home}/lib"
     227    export LD_LIBRARY_PATH
     228  else
     229    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${HDF5_home}/lib"
     230    export LD_LIBRARY_PATH
     231  fi
     232fi
     233unset obuild_platform_result
     234fi
     235unset obuild_platform_result
     236
     237if [ "${obuild_platform_exe}" = "" ] ; then
     238  echo "Variable obuild_platform_exe not defined."
     239  return
     240fi
     241obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     242if [ ${obuild_platform_result} = yes ] ; then
     243if [ "${obuild_platform_exe}" = "" ] ; then
     244  echo "Variable obuild_platform_exe not defined."
     245  return
     246fi
     247obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     248if [ ${obuild_platform_result} = yes ] ; then
     249  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
     250    DYLD_LIBRARY_PATH="${CLHEP_home}/lib"
     251    export DYLD_LIBRARY_PATH
     252  else
     253    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${CLHEP_home}/lib"
     254    export DYLD_LIBRARY_PATH
     255  fi
     256fi
     257unset obuild_platform_result
     258else
     259if [ "${obuild_platform_exe}" = "" ] ; then
     260  echo "Variable obuild_platform_exe not defined."
     261  return
     262fi
     263obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     264if [ ${obuild_platform_result} = yes ] ; then
     265  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
     266    LD_LIBRARY_PATH="${CLHEP_home}/lib"
     267    export LD_LIBRARY_PATH
     268  else
     269    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CLHEP_home}/lib"
     270    export LD_LIBRARY_PATH
     271  fi
     272fi
     273unset obuild_platform_result
     274fi
     275unset obuild_platform_result
     276
     277if [ "${obuild_platform_exe}" = "" ] ; then
     278  echo "Variable obuild_platform_exe not defined."
     279  return
     280fi
     281obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     282if [ ${obuild_platform_result} = yes ] ; then
     283if [ "${obuild_platform_exe}" = "" ] ; then
     284  echo "Variable obuild_platform_exe not defined."
     285  return
     286fi
     287obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     288if [ ${obuild_platform_result} = yes ] ; then
     289  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
     290    DYLD_LIBRARY_PATH="${Geant4_home}/lib"
     291    export DYLD_LIBRARY_PATH
     292  else
     293    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${Geant4_home}/lib"
     294    export DYLD_LIBRARY_PATH
     295  fi
     296fi
     297unset obuild_platform_result
     298else
     299if [ "${obuild_platform_exe}" = "" ] ; then
     300  echo "Variable obuild_platform_exe not defined."
     301  return
     302fi
     303obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     304if [ ${obuild_platform_result} = yes ] ; then
     305  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
     306    LD_LIBRARY_PATH="${Geant4_home}/lib"
     307    export LD_LIBRARY_PATH
     308  else
     309    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${Geant4_home}/lib"
     310    export LD_LIBRARY_PATH
     311  fi
     312fi
     313unset obuild_platform_result
     314fi
     315unset obuild_platform_result
     316
     317if [ "${obuild_platform_exe}" = "" ] ; then
     318  echo "Variable obuild_platform_exe not defined."
     319  return
     320fi
     321obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     322if [ ${obuild_platform_result} = yes ] ; then
     323if [ "${obuild_platform_exe}" = "" ] ; then
     324  echo "Variable obuild_platform_exe not defined."
     325  return
     326fi
     327obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     328if [ ${obuild_platform_result} = yes ] ; then
     329  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
     330    DYLD_LIBRARY_PATH="${OSC_home}/bin"
     331    export DYLD_LIBRARY_PATH
     332  else
     333    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${OSC_home}/bin"
     334    export DYLD_LIBRARY_PATH
     335  fi
     336fi
     337unset obuild_platform_result
     338else
     339if [ "${obuild_platform_exe}" = "" ] ; then
     340  echo "Variable obuild_platform_exe not defined."
     341  return
     342fi
     343obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     344if [ ${obuild_platform_result} = yes ] ; then
     345  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
     346    LD_LIBRARY_PATH="${OSC_home}/bin"
     347    export LD_LIBRARY_PATH
     348  else
     349    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${OSC_home}/bin"
     350    export LD_LIBRARY_PATH
     351  fi
     352fi
     353unset obuild_platform_result
     354fi
     355unset obuild_platform_result
    202356
    203357if [ "${obuild_platform_exe}" = "" ] ; then
  • snovis/trunk/obuild/sh/broadcast_install

    r188 r244  
    102102  exit
    103103fi
    104 if [ "${obuild_find_exe}" = "" ] ; then
    105   echo "Variable obuild_find_exe not defined."
    106   exit
    107 fi
    108 obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
    109 if [ "${obuild_OnX_path}" = "" ] ; then
    110   echo "Can't find OnX package."
    111   exit
    112 fi
    113 if [ "${obuild_find_exe}" = "" ] ; then
    114   echo "Variable obuild_find_exe not defined."
    115   exit
    116 fi
    117 obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
    118 if [ "${obuild_G4Lab_path}" = "" ] ; then
    119   echo "Can't find G4Lab package."
    120   exit
    121 fi
    122104
    123105# install setup scripts of used packages :
     
    129111./sh/broadcast_install ${obuild_args}
    130112
    131 if [ ! -e "${obuild_OnX_path}/obuild/sh/broadcast_install" ] ; then
    132   echo "broadcast_install script not found for package OnX."
    133   exit
    134 fi
    135 cd "${obuild_OnX_path}/obuild"
    136 ./sh/broadcast_install ${obuild_args}
    137 
    138 if [ ! -e "${obuild_G4Lab_path}/obuild/sh/broadcast_install" ] ; then
    139   echo "broadcast_install script not found for package G4Lab."
    140   exit
    141 fi
    142 cd "${obuild_G4Lab_path}/obuild"
    143 ./sh/broadcast_install ${obuild_args}
    144 
  • snovis/trunk/obuild/sh/build

    r134 r244  
    117117if [ "${obuild_group}" = main ] ; then
    118118if [ "${obuild_do_mains}" = yes ] ; then
     119  if [ -e ./sh/build_lib_G4LabCore ] ; then
     120    ./sh/build_lib_G4LabCore ${obuild_args}
     121    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
     122  fi
     123fi
     124fi
     125if [ "${obuild_group}" = main ] ; then
     126if [ "${obuild_do_mains}" = yes ] ; then
     127  if [ -e ./sh/build_lib_G4LabUIOnX ] ; then
     128    ./sh/build_lib_G4LabUIOnX ${obuild_args}
     129    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
     130  fi
     131fi
     132fi
     133
     134if [ "${obuild_group}" = main ] ; then
     135if [ "${obuild_do_mains}" = yes ] ; then
     136  if [ -e ./sh/build_dll_G4Lab ] ; then
     137    ./sh/build_dll_G4Lab ${obuild_args}
     138    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
     139  fi
     140fi
     141fi
     142if [ "${obuild_group}" = main ] ; then
     143if [ "${obuild_do_mains}" = yes ] ; then
    119144  if [ -e ./sh/build_dll_snovis ] ; then
    120145    ./sh/build_dll_snovis ${obuild_args}
     
    126151if [ "${obuild_group}" = main ] ; then
    127152if [ "${obuild_do_mains}" = yes ] ; then
    128   if [ -e ./sh/build_app_prog_snova ] ; then
    129     ./sh/build_app_prog_snova ${obuild_args}
    130     obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    131   fi
    132 fi
    133 fi
    134 if [ "${obuild_group}" = main ] ; then
    135 if [ "${obuild_do_mains}" = yes ] ; then
    136   if [ -e ./sh/build_app_snovis_session ] ; then
    137     ./sh/build_app_snovis_session ${obuild_args}
    138     obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    139   fi
    140 fi
    141 fi
    142 
    143 if [ "${obuild_group}" = main ] ; then
    144 if [ "${obuild_do_mains}" = yes ] ; then
    145   if [ -e ./sh/build_darwin_app_snovis_session ] ; then
    146     ./sh/build_darwin_app_snovis_session ${obuild_args}
     153  if [ -e ./sh/build_app_prog_snovis ] ; then
     154    ./sh/build_app_prog_snovis ${obuild_args}
    147155    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    148156  fi
  • snovis/trunk/obuild/sh/build_dll_snovis

    r137 r244  
    125125  exit
    126126fi
     127obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     128if [ ${obuild_platform_result} = yes ] ; then
     129HDF5_home="/usr/local/HDF5/1.6.5"
     130fi
     131unset obuild_platform_result
     132if [ "${obuild_platform_exe}" = "" ] ; then
     133  echo "Variable obuild_platform_exe not defined."
     134  exit
     135fi
     136obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     137if [ ${obuild_platform_result} = yes ] ; then
     138OSC_home="/usr/local/OpenScientist/v16r0"
     139fi
     140unset obuild_platform_result
     141if [ "${obuild_platform_exe}" = "" ] ; then
     142  echo "Variable obuild_platform_exe not defined."
     143  exit
     144fi
    127145obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    128146if [ ${obuild_platform_result} = yes ] ; then
     
    267285fi
    268286
    269 if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
    270   if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
    271     echo "Program source obuild_find.cpp not found."
    272     exit
    273   fi
    274   if [ "${obuild_cxx_command}" = "" ] ; then
    275     if [  "${OBUILD_CXX}" != "" ] ; then
    276       obuild_find_compiler=${OBUILD_CXX}
    277     else
    278       obuild_find_compiler=c++
    279     fi
    280   else
    281     obuild_find_compiler=${obuild_cxx_command}
    282   fi
    283   ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
    284   unset obuild_find_compiler
    285   if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
    286     echo "Program obuild_find not found."
    287     exit
    288   fi
    289 fi
    290 obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
    291 if [ "${obuild_find_exe}" = "" ] ; then
    292   echo "Variable obuild_find_exe not defined."
    293   exit
    294 fi
    295 obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
    296 if [ "${obuild_Lib_path}" = "" ] ; then
    297   echo "Can't find Lib package."
    298   exit
    299 fi
    300 if [ "${obuild_find_exe}" = "" ] ; then
    301   echo "Variable obuild_find_exe not defined."
    302   exit
    303 fi
    304 obuild_Slash_path=`"${obuild_find_exe}" Slash 'v1r*'`
    305 if [ "${obuild_Slash_path}" = "" ] ; then
    306   echo "Can't find Slash package."
    307   exit
    308 fi
    309 if [ "${obuild_find_exe}" = "" ] ; then
    310   echo "Variable obuild_find_exe not defined."
    311   exit
    312 fi
    313 obuild_AIDA_path=`"${obuild_find_exe}" AIDA 'v3r2p1'`
    314 if [ "${obuild_AIDA_path}" = "" ] ; then
    315   echo "Can't find AIDA package."
    316   exit
    317 fi
    318 if [ "${obuild_find_exe}" = "" ] ; then
    319   echo "Variable obuild_find_exe not defined."
    320   exit
    321 fi
    322 obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
    323 if [ "${obuild_OnX_path}" = "" ] ; then
    324   echo "Can't find OnX package."
    325   exit
    326 fi
    327 if [ "${obuild_find_exe}" = "" ] ; then
    328   echo "Variable obuild_find_exe not defined."
    329   exit
    330 fi
    331 obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'`
    332 if [ "${obuild_G4Lab_path}" = "" ] ; then
    333   echo "Can't find G4Lab package."
    334   exit
    335 fi
    336 if [ "${obuild_find_exe}" = "" ] ; then
    337   echo "Variable obuild_find_exe not defined."
    338   exit
    339 fi
    340 obuild_BatchLab_path=`"${obuild_find_exe}" BatchLab 'v1r*'`
    341 if [ "${obuild_BatchLab_path}" = "" ] ; then
    342   echo "Can't find BatchLab package."
    343   exit
    344 fi
    345 if [ "${obuild_find_exe}" = "" ] ; then
    346   echo "Variable obuild_find_exe not defined."
    347   exit
    348 fi
    349 obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
    350 if [ "${obuild_HEPVis_path}" = "" ] ; then
    351   echo "Can't find HEPVis package."
    352   exit
    353 fi
    354 if [ "${obuild_find_exe}" = "" ] ; then
    355   echo "Variable obuild_find_exe not defined."
    356   exit
    357 fi
    358 obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
    359 if [ "${obuild_CoinGL_path}" = "" ] ; then
    360   echo "Can't find CoinGL package."
    361   exit
    362 fi
    363 if [ "${obuild_find_exe}" = "" ] ; then
    364   echo "Variable obuild_find_exe not defined."
    365   exit
    366 fi
    367 obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
    368 if [ "${obuild_Lib_path}" = "" ] ; then
    369   echo "Can't find Lib package."
    370   exit
    371 fi
    372 if [ "${obuild_find_exe}" = "" ] ; then
    373   echo "Variable obuild_find_exe not defined."
    374   exit
    375 fi
    376 obuild_expat_path=`"${obuild_find_exe}" expat 'v1r*'`
    377 if [ "${obuild_expat_path}" = "" ] ; then
    378   echo "Can't find expat package."
    379   exit
    380 fi
    381 if [ "${obuild_find_exe}" = "" ] ; then
    382   echo "Variable obuild_find_exe not defined."
    383   exit
    384 fi
    385 obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
    386 if [ "${obuild_Lib_path}" = "" ] ; then
    387   echo "Can't find Lib package."
    388   exit
    389 fi
    390 if [ "${obuild_find_exe}" = "" ] ; then
    391   echo "Variable obuild_find_exe not defined."
    392   exit
    393 fi
    394 obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`
    395 if [ "${obuild_zlib_path}" = "" ] ; then
    396   echo "Can't find zlib package."
    397   exit
    398 fi
    399 if [ "${obuild_find_exe}" = "" ] ; then
    400   echo "Variable obuild_find_exe not defined."
    401   exit
    402 fi
    403 obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'`
    404 if [ "${obuild_Lib_path}" = "" ] ; then
    405   echo "Can't find Lib package."
    406   exit
    407 fi
    408 if [ "${obuild_find_exe}" = "" ] ; then
    409   echo "Variable obuild_find_exe not defined."
    410   exit
    411 fi
    412 obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
    413 if [ "${obuild_HEPVis_path}" = "" ] ; then
    414   echo "Can't find HEPVis package."
    415   exit
    416 fi
    417 if [ "${obuild_find_exe}" = "" ] ; then
    418   echo "Variable obuild_find_exe not defined."
    419   exit
    420 fi
    421 obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'`
    422 if [ "${obuild_HEPVis_path}" = "" ] ; then
    423   echo "Can't find HEPVis package."
    424   exit
    425 fi
    426 if [ "${obuild_find_exe}" = "" ] ; then
    427   echo "Variable obuild_find_exe not defined."
    428   exit
    429 fi
    430 obuild_jpeg_path=`"${obuild_find_exe}" jpeg 'v1r*'`
    431 if [ "${obuild_jpeg_path}" = "" ] ; then
    432   echo "Can't find jpeg package."
    433   exit
    434 fi
    435 if [ "${obuild_find_exe}" = "" ] ; then
    436   echo "Variable obuild_find_exe not defined."
    437   exit
    438 fi
    439 obuild_dvi2bitmap_path=`"${obuild_find_exe}" dvi2bitmap 'v1r*'`
    440 if [ "${obuild_dvi2bitmap_path}" = "" ] ; then
    441   echo "Can't find dvi2bitmap package."
    442   exit
    443 fi
    444 if [ "${obuild_find_exe}" = "" ] ; then
    445   echo "Variable obuild_find_exe not defined."
    446   exit
    447 fi
    448 obuild_freetype2_path=`"${obuild_find_exe}" freetype2 'v1r*'`
    449 if [ "${obuild_freetype2_path}" = "" ] ; then
    450   echo "Can't find freetype2 package."
    451   exit
    452 fi
    453 if [ "${obuild_find_exe}" = "" ] ; then
    454   echo "Variable obuild_find_exe not defined."
    455   exit
    456 fi
    457 obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'`
    458 if [ "${obuild_CoinGL_path}" = "" ] ; then
    459   echo "Can't find CoinGL package."
    460   exit
    461 fi
     287if [ "${obuild_platform_exe}" = "" ] ; then
     288  echo "Variable obuild_platform_exe not defined."
     289  exit
     290fi
     291obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     292if [ ${obuild_platform_result} = yes ] ; then
     293obuild_cxx_macros="${obuild_cxx_macros} -DAPPLE_GL"
     294fi
     295unset obuild_platform_result
     296
    462297
    463298obuild_cxx_includes="-I\"${obuild_snovis_path}\""
    464 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Lib_path}/include\""
    465 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Slash_path}\""
    466 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_AIDA_path}/src/cpp\""
    467 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_OnX_path}/include\""
    468 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_G4Lab_path}/include\""
    469 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_BatchLab_path}\""
    470 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HEPVis_path}/include\""
    471 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_CoinGL_path}/include\""
     299obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snovis_path}/source\""
     300if [ "${obuild_platform_exe}" = "" ] ; then
     301  echo "Variable obuild_platform_exe not defined."
     302  exit
     303fi
     304obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     305if [ ${obuild_platform_result} = yes ] ; then
     306obuild_cxx_includes="${obuild_cxx_includes} -I${CLHEP_home}/include"
     307fi
     308unset obuild_platform_result
     309if [ "${obuild_platform_exe}" = "" ] ; then
     310  echo "Variable obuild_platform_exe not defined."
     311  exit
     312fi
     313obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     314if [ ${obuild_platform_result} = yes ] ; then
     315obuild_cxx_includes="${obuild_cxx_includes} -I${Geant4_home}/include"
     316fi
     317unset obuild_platform_result
     318if [ "${obuild_platform_exe}" = "" ] ; then
     319  echo "Variable obuild_platform_exe not defined."
     320  exit
     321fi
     322obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     323if [ ${obuild_platform_result} = yes ] ; then
     324obuild_cxx_includes="${obuild_cxx_includes} -I${OSC_home}/Resources/AIDA/src/cpp"
     325fi
     326unset obuild_platform_result
     327if [ "${obuild_platform_exe}" = "" ] ; then
     328  echo "Variable obuild_platform_exe not defined."
     329  exit
     330fi
     331obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     332if [ ${obuild_platform_result} = yes ] ; then
     333obuild_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/include"
     334fi
     335unset obuild_platform_result
     336if [ "${obuild_platform_exe}" = "" ] ; then
     337  echo "Variable obuild_platform_exe not defined."
     338  exit
     339fi
     340obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     341if [ ${obuild_platform_result} = yes ] ; then
     342obuild_cxx_includes="${obuild_cxx_includes} -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab"
     343fi
     344unset obuild_platform_result
     345if [ "${obuild_platform_exe}" = "" ] ; then
     346  echo "Variable obuild_platform_exe not defined."
     347  exit
     348fi
     349obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     350if [ ${obuild_platform_result} = yes ] ; then
     351obuild_cxx_includes="${obuild_cxx_includes} -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include"
     352fi
     353unset obuild_platform_result
    472354if [ "${obuild_platform_exe}" = "" ] ; then
    473355  echo "Variable obuild_platform_exe not defined."
     
    518400fi #do_not_compile
    519401
    520 obuild_linked_paths="-L\"${obuild_Lib_path}/${obuild_dir_bin}\""
    521 obuild_linked_libraries=" -lLibXML"
    522 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_expat_path}/${obuild_dir_bin}\""
    523 obuild_linked_libraries="${obuild_linked_libraries}  -losc_expat"
    524 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
    525 obuild_linked_libraries="${obuild_linked_libraries}  -lLibZip"
    526 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_zlib_path}/${obuild_dir_bin}\""
    527 obuild_linked_libraries="${obuild_linked_libraries}  -losc_z"
    528 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\""
    529 obuild_linked_libraries="${obuild_linked_libraries}  -lLibUtils"
    530 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
    531 obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisGeometry"
    532 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\""
    533 obuild_linked_libraries="${obuild_linked_libraries}  -lHEPVisUtils"
    534 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_jpeg_path}/${obuild_dir_bin}\""
    535 obuild_linked_libraries="${obuild_linked_libraries}  -losc_jpeg"
    536 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_dvi2bitmap_path}/${obuild_dir_bin}\""
    537 obuild_linked_libraries="${obuild_linked_libraries}  -losc_dvi2bitmap"
    538 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_freetype2_path}/${obuild_dir_bin}\""
    539 obuild_linked_libraries="${obuild_linked_libraries}  -losc_freetype2"
    540 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_CoinGL_path}/${obuild_dir_bin}\""
    541 obuild_linked_libraries="${obuild_linked_libraries}  -losc_Coin"
     402obuild_linked_libraries="-L${Geant4_home}/lib -lG4physicslists"
     403if [ "${obuild_platform_exe}" = "" ] ; then
     404  echo "Variable obuild_platform_exe not defined."
     405  exit
     406fi
     407obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     408if [ ${obuild_platform_result} = yes ] ; then
     409obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global"
     410fi
     411unset obuild_platform_result
     412if [ "${obuild_platform_exe}" = "" ] ; then
     413  echo "Variable obuild_platform_exe not defined."
     414  exit
     415fi
     416obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     417if [ ${obuild_platform_result} = yes ] ; then
     418obuild_linked_libraries="${obuild_linked_libraries} -L${CLHEP_home}/lib -lCLHEP-2.0.3.1"
     419fi
     420unset obuild_platform_result
     421if [ "${obuild_platform_exe}" = "" ] ; then
     422  echo "Variable obuild_platform_exe not defined."
     423  exit
     424fi
     425obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     426if [ ${obuild_platform_result} = yes ] ; then
     427obuild_linked_libraries="${obuild_linked_libraries} -L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils  -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils"
     428fi
     429unset obuild_platform_result
     430if [ "${obuild_platform_exe}" = "" ] ; then
     431  echo "Variable obuild_platform_exe not defined."
     432  exit
     433fi
     434obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     435if [ ${obuild_platform_result} = yes ] ; then
     436obuild_linked_libraries="${obuild_linked_libraries} -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl"
     437fi
     438unset obuild_platform_result
    542439if [ "${obuild_platform_exe}" = "" ] ; then
    543440  echo "Variable obuild_platform_exe not defined."
     
    583480if [ ${obuild_platform_result} = yes ] ; then
    584481obuild_linked_libraries="${obuild_linked_libraries} -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm"
    585 fi
    586 unset obuild_platform_result
    587 if [ "${obuild_platform_exe}" = "" ] ; then
    588   echo "Variable obuild_platform_exe not defined."
    589   exit
    590 fi
    591 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    592 if [ ${obuild_platform_result} = yes ] ; then
    593 obuild_linked_libraries="${obuild_linked_libraries} -lpthread"
    594482fi
    595483unset obuild_platform_result
  • snovis/trunk/obuild/sh/check_foreigns

    r137 r244  
    9797obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    9898if [ ${obuild_platform_result} = yes ] ; then
     99HDF5_home="/usr/local/HDF5/1.6.5"
     100fi
     101unset obuild_platform_result
     102if [ "${obuild_platform_exe}" = "" ] ; then
     103  echo "Variable obuild_platform_exe not defined."
     104  exit
     105fi
     106obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     107if [ ${obuild_platform_result} = yes ] ; then
     108OSC_home="/usr/local/OpenScientist/v16r0"
     109fi
     110unset obuild_platform_result
     111if [ "${obuild_platform_exe}" = "" ] ; then
     112  echo "Variable obuild_platform_exe not defined."
     113  exit
     114fi
     115obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     116if [ ${obuild_platform_result} = yes ] ; then
    99117if [ "${obuild_check_what}" = "CLHEP" ] ; then
    100118  if [ ! -d "${CLHEP_home}" ] ; then
     
    119137fi
    120138unset obuild_platform_result
     139if [ "${obuild_platform_exe}" = "" ] ; then
     140  echo "Variable obuild_platform_exe not defined."
     141  exit
     142fi
     143obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     144if [ ${obuild_platform_result} = yes ] ; then
     145if [ "${obuild_check_what}" = "HDF5" ] ; then
     146  if [ ! -d "${HDF5_home}" ] ; then
     147    echo "WARNING : HDF5 not found under ${HDF5_home}"
     148    exit 1
     149  fi
     150fi
     151fi
     152unset obuild_platform_result
     153if [ "${obuild_platform_exe}" = "" ] ; then
     154  echo "Variable obuild_platform_exe not defined."
     155  exit
     156fi
     157obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     158if [ ${obuild_platform_result} = yes ] ; then
     159if [ "${obuild_check_what}" = "OpenScientist" ] ; then
     160  if [ ! -d "${OSC_home}" ] ; then
     161    echo "WARNING : OpenScientist not found under ${OSC_home}"
     162    exit 1
     163  fi
     164fi
     165fi
     166unset obuild_platform_result
    121167
Note: See TracChangeset for help on using the changeset viewer.