Changeset 127 for build


Ignore:
Timestamp:
Feb 9, 2007, 4:07:36 PM (17 years ago)
Author:
barrand
Message:
 
Location:
build/bhep/trunk/obuild
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • build/bhep/trunk/obuild/DOS/build_lib_bhep.bat

    r126 r127  
    261261:end_if_opt_build_lib_bhep_sh_17
    262262
    263 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    264 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    265 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    266 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     263
     264FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     265cd "%obuild_bhep_path%\%obuild_dir_bin%"
     266IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     267FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    267268cd "%obuild_pwd_bhep_0%"
    268269SET obuild_pwd_bhep_0=
    269270IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    270 SET obuild_c_command=cc
     271SET obuild_cxx_macros=%obuild_cxx_macros% /D_HDF5USEDLL_
    271272:end_if_platform_18
    272273SET obuild_platform_result=
    273 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    274 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    275 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    276 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    277 cd "%obuild_pwd_bhep_0%"
    278 SET obuild_pwd_bhep_0=
    279 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    280 SET obuild_c_command=cc
    281 :end_if_platform_19
    282 SET obuild_platform_result=
    283 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    284 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    285 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    286 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    287 cd "%obuild_pwd_bhep_0%"
    288 SET obuild_pwd_bhep_0=
    289 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    290 SET obuild_c_command=cc
    291 :end_if_platform_20
    292 SET obuild_platform_result=
    293 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    294 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    295 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    296 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     274
     275IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%"
     276IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\obuild_find.exe" (
     277  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_bhep_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_bhep_path%\obuild\cpp\obuild_find.cpp" 1> NUL
     278  IF EXIST obuild_find.obj DEL obuild_find.obj
     279)
     280FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     281cd "%obuild_bhep_path%\%obuild_dir_bin%"
     282IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     283FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
     284cd "%obuild_pwd_bhep_0%"
     285SET obuild_pwd_bhep_0=
     286IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
     287FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     288cd "%obuild_bhep_path%\%obuild_dir_bin%"
     289IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     290FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
     291cd "%obuild_pwd_bhep_0%"
     292SET obuild_pwd_bhep_0=
     293IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
     294
     295SET obuild_cxx_includes=/I"%obuild_bhep_path%"
     296SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%\bhep"
     297FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     298cd "%obuild_bhep_path%\%obuild_dir_bin%"
     299IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     300FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    297301cd "%obuild_pwd_bhep_0%"
    298302SET obuild_pwd_bhep_0=
    299303IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    300 SET obuild_c_command=cl.exe
     304SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    301305:end_if_platform_21
    302306SET obuild_platform_result=
    303 IF "%obuild_c_command%" == ""  ECHO Variable obuild_c_command not defined.  && GOTO obuild_return
    304 
    305 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    306 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    307 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    308 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    309 cd "%obuild_pwd_bhep_0%"
    310 SET obuild_pwd_bhep_0=
    311 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    312 SET obuild_c_optimize=-O
    313 :end_if_platform_22
    314 SET obuild_platform_result=
    315 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    316 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    317 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    318 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    319 cd "%obuild_pwd_bhep_0%"
    320 SET obuild_pwd_bhep_0=
    321 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    322 SET obuild_c_optimize=-O
    323 :end_if_platform_23
    324 SET obuild_platform_result=
    325 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    326 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    327 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    328 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    329 cd "%obuild_pwd_bhep_0%"
    330 SET obuild_pwd_bhep_0=
    331 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
    332 SET obuild_c_optimize=-O
    333 :end_if_platform_24
    334 SET obuild_platform_result=
    335 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    336 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    337 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    338 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    339 cd "%obuild_pwd_bhep_0%"
    340 SET obuild_pwd_bhep_0=
    341 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    342 SET obuild_c_optimize=/O2
    343 :end_if_platform_25
    344 SET obuild_platform_result=
    345 
    346 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    347 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    348 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    349 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    350 cd "%obuild_pwd_bhep_0%"
    351 SET obuild_pwd_bhep_0=
    352 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    353 SET obuild_c_debug=-g
    354 :end_if_platform_26
    355 SET obuild_platform_result=
    356 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    357 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    358 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    359 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    360 cd "%obuild_pwd_bhep_0%"
    361 SET obuild_pwd_bhep_0=
    362 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    363 SET obuild_c_debug=-g
    364 :end_if_platform_27
    365 SET obuild_platform_result=
    366 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    367 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    368 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    369 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    370 cd "%obuild_pwd_bhep_0%"
    371 SET obuild_pwd_bhep_0=
    372 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    373 SET obuild_c_debug=-g
    374 :end_if_platform_28
    375 SET obuild_platform_result=
    376 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    377 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    378 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    379 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    380 cd "%obuild_pwd_bhep_0%"
    381 SET obuild_pwd_bhep_0=
    382 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    383 SET obuild_c_debug=/ZI /Od
    384 :end_if_platform_29
    385 SET obuild_platform_result=
    386 
    387 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    388 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    389 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    390 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    391 cd "%obuild_pwd_bhep_0%"
    392 SET obuild_pwd_bhep_0=
    393 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    394 SET obuild_c_options=-fPIC
    395 :end_if_platform_30
    396 SET obuild_platform_result=
    397 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    398 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    399 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    400 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    401 cd "%obuild_pwd_bhep_0%"
    402 SET obuild_pwd_bhep_0=
    403 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    404 SET obuild_c_options=-std
    405 :end_if_platform_31
    406 SET obuild_platform_result=
    407 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    408 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    409 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    410 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    411 cd "%obuild_pwd_bhep_0%"
    412 SET obuild_pwd_bhep_0=
    413 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    414 SET obuild_c_options=/nologo /DWIN32 /MD /W3
    415 :end_if_platform_32
    416 SET obuild_platform_result=
    417 
    418 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_33
    419   SET obuild_c_debug_local=%obuild_c_debug%
    420   GOTO end_if_db_build_lib_bhep_sh_33
    421 :else_if_db_build_lib_bhep_sh_33
    422   SET obuild_c_debug_local=
    423 :end_if_db_build_lib_bhep_sh_33
    424 
    425 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_34
    426   SET obuild_c_optimize_local=%obuild_c_optimize%
    427   GOTO end_if_opt_build_lib_bhep_sh_34
    428 :else_if_opt_build_lib_bhep_sh_34
    429   SET obuild_c_optimize_local=
    430 :end_if_opt_build_lib_bhep_sh_34
    431 
    432 
    433 
    434 SET obuild_cxx_includes=/I"%obuild_bhep_path%"
     307SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
     308SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_zlib_path%\include"
    435309
    436310IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
     
    643517
    644518cd "%obuild_bhep_path%\%obuild_dir_bin%"
    645 %obuild_c_command% /c %obuild_c_debug_local% %obuild_c_optimize_local% %obuild_c_options% %obuild_c_macros% %obuild_c_includes% /Fo.\lib_bhep\EventManager.obj "..\source\tools\EventManager.c" 1> cl_exe_error
     519%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\EventManager.obj  /Tp"..\source\tools\EventManager.cpp" 1> cl_exe_error
    646520@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
    647521@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
     
    656530cd "%obuild_pwd_bhep_0%"
    657531SET obuild_pwd_bhep_0=
    658 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
     532IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
    659533SET obuild_cxx_linker_command=c++
    660 :end_if_platform_71
     534:end_if_platform_59
    661535SET obuild_platform_result=
    662536FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     
    666540cd "%obuild_pwd_bhep_0%"
    667541SET obuild_pwd_bhep_0=
    668 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72
     542IF NOT %obuild_platform_result% == yes GOTO end_if_platform_60
    669543SET obuild_cxx_linker_command=c++
    670 :end_if_platform_72
     544:end_if_platform_60
    671545SET obuild_platform_result=
    672546FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     
    676550cd "%obuild_pwd_bhep_0%"
    677551SET obuild_pwd_bhep_0=
    678 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73
     552IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61
    679553SET obuild_cxx_linker_command=cxx
    680 :end_if_platform_73
    681 SET obuild_platform_result=
    682 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    683 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    684 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    685 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    686 cd "%obuild_pwd_bhep_0%"
    687 SET obuild_pwd_bhep_0=
    688 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_74
     554:end_if_platform_61
     555SET obuild_platform_result=
     556FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     557cd "%obuild_bhep_path%\%obuild_dir_bin%"
     558IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     559FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     560cd "%obuild_pwd_bhep_0%"
     561SET obuild_pwd_bhep_0=
     562IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62
    689563SET obuild_cxx_linker_command=link.exe
    690 :end_if_platform_74
     564:end_if_platform_62
    691565SET obuild_platform_result=
    692566IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    698572cd "%obuild_pwd_bhep_0%"
    699573SET obuild_pwd_bhep_0=
    700 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_75
     574IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63
    701575SET obuild_cxx_linker_debug=-g
    702 :end_if_platform_75
     576:end_if_platform_63
    703577SET obuild_platform_result=
    704578FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     
    708582cd "%obuild_pwd_bhep_0%"
    709583SET obuild_pwd_bhep_0=
    710 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_76
     584IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64
    711585SET obuild_cxx_linker_debug=-g
    712 :end_if_platform_76
     586:end_if_platform_64
    713587SET obuild_platform_result=
    714588FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     
    718592cd "%obuild_pwd_bhep_0%"
    719593SET obuild_pwd_bhep_0=
    720 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_77
     594IF NOT %obuild_platform_result% == yes GOTO end_if_platform_65
    721595SET obuild_cxx_linker_debug=-g
    722 :end_if_platform_77
    723 SET obuild_platform_result=
    724 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    725 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    726 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    727 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    728 cd "%obuild_pwd_bhep_0%"
    729 SET obuild_pwd_bhep_0=
    730 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_78
     596:end_if_platform_65
     597SET obuild_platform_result=
     598FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     599cd "%obuild_bhep_path%\%obuild_dir_bin%"
     600IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     601FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     602cd "%obuild_pwd_bhep_0%"
     603SET obuild_pwd_bhep_0=
     604IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66
    731605SET obuild_cxx_linker_debug=/DEBUG
    732 :end_if_platform_78
    733 SET obuild_platform_result=
    734 
    735 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    736 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    737 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    738 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    739 cd "%obuild_pwd_bhep_0%"
    740 SET obuild_pwd_bhep_0=
    741 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_79
     606:end_if_platform_66
     607SET obuild_platform_result=
     608
     609FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     610cd "%obuild_bhep_path%\%obuild_dir_bin%"
     611IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     612FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     613cd "%obuild_pwd_bhep_0%"
     614SET obuild_pwd_bhep_0=
     615IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67
    742616SET obuild_cxx_linker_options=/nologo
    743 :end_if_platform_79
    744 SET obuild_platform_result=
    745 
    746 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_80
     617:end_if_platform_67
     618SET obuild_platform_result=
     619
     620IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_68
    747621  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    748   GOTO end_if_db_build_lib_bhep_sh_80
    749 :else_if_db_build_lib_bhep_sh_80
     622  GOTO end_if_db_build_lib_bhep_sh_68
     623:else_if_db_build_lib_bhep_sh_68
    750624  SET obuild_cxx_linker_debug_local=
    751 :end_if_db_build_lib_bhep_sh_80
    752 
    753 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_81
     625:end_if_db_build_lib_bhep_sh_68
     626
     627IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_69
    754628  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    755   GOTO end_if_opt_build_lib_bhep_sh_81
    756 :else_if_opt_build_lib_bhep_sh_81
     629  GOTO end_if_opt_build_lib_bhep_sh_69
     630:else_if_opt_build_lib_bhep_sh_69
    757631  SET obuild_cxx_linker_optimize_local=
    758 :end_if_opt_build_lib_bhep_sh_81
     632:end_if_opt_build_lib_bhep_sh_69
    759633
    760634FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
  • build/bhep/trunk/obuild/sh/build_lib_bhep

    r126 r127  
    257257  obuild_cxx_optimize_local=
    258258fi
    259 if [ "${obuild_platform_exe}" = "" ] ; then
    260   echo "Variable obuild_platform_exe not defined."
    261   exit
    262 fi
    263 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    264 if [ ${obuild_platform_result} = yes ] ; then
    265 obuild_c_command="cc"
    266 fi
    267 unset obuild_platform_result
    268 if [ "${obuild_platform_exe}" = "" ] ; then
    269   echo "Variable obuild_platform_exe not defined."
    270   exit
    271 fi
    272 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
    273 if [ ${obuild_platform_result} = yes ] ; then
    274 obuild_c_command="cc"
    275 fi
    276 unset obuild_platform_result
    277 if [ "${obuild_platform_exe}" = "" ] ; then
    278   echo "Variable obuild_platform_exe not defined."
    279   exit
    280 fi
    281 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
    282 if [ ${obuild_platform_result} = yes ] ; then
    283 obuild_c_command="cc"
    284 fi
    285 unset obuild_platform_result
     259
    286260if [ "${obuild_platform_exe}" = "" ] ; then
    287261  echo "Variable obuild_platform_exe not defined."
     
    290264obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    291265if [ ${obuild_platform_result} = yes ] ; then
    292 obuild_c_command="cl.exe"
    293 fi
    294 unset obuild_platform_result
    295 if [ "${obuild_c_command}" = "" ] ; then
    296   echo "Variable obuild_c_command not defined."
    297   exit
    298 fi
    299 
    300 if [ "${obuild_platform_exe}" = "" ] ; then
    301   echo "Variable obuild_platform_exe not defined."
    302   exit
    303 fi
    304 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    305 if [ ${obuild_platform_result} = yes ] ; then
    306 obuild_c_optimize="-O"
    307 fi
    308 unset obuild_platform_result
    309 if [ "${obuild_platform_exe}" = "" ] ; then
    310   echo "Variable obuild_platform_exe not defined."
    311   exit
    312 fi
    313 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
    314 if [ ${obuild_platform_result} = yes ] ; then
    315 obuild_c_optimize="-O"
    316 fi
    317 unset obuild_platform_result
    318 if [ "${obuild_platform_exe}" = "" ] ; then
    319   echo "Variable obuild_platform_exe not defined."
    320   exit
    321 fi
    322 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
    323 if [ ${obuild_platform_result} = yes ] ; then
    324 obuild_c_optimize="-O"
    325 fi
    326 unset obuild_platform_result
    327 if [ "${obuild_platform_exe}" = "" ] ; then
    328   echo "Variable obuild_platform_exe not defined."
    329   exit
    330 fi
    331 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    332 if [ ${obuild_platform_result} = yes ] ; then
    333 obuild_c_optimize="/O2"
    334 fi
    335 unset obuild_platform_result
    336 
    337 if [ "${obuild_platform_exe}" = "" ] ; then
    338   echo "Variable obuild_platform_exe not defined."
    339   exit
    340 fi
    341 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    342 if [ ${obuild_platform_result} = yes ] ; then
    343 obuild_c_debug="-g"
    344 fi
    345 unset obuild_platform_result
    346 if [ "${obuild_platform_exe}" = "" ] ; then
    347   echo "Variable obuild_platform_exe not defined."
    348   exit
    349 fi
    350 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
    351 if [ ${obuild_platform_result} = yes ] ; then
    352 obuild_c_debug="-g"
    353 fi
    354 unset obuild_platform_result
    355 if [ "${obuild_platform_exe}" = "" ] ; then
    356   echo "Variable obuild_platform_exe not defined."
    357   exit
    358 fi
    359 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
    360 if [ ${obuild_platform_result} = yes ] ; then
    361 obuild_c_debug="-g"
    362 fi
    363 unset obuild_platform_result
    364 if [ "${obuild_platform_exe}" = "" ] ; then
    365   echo "Variable obuild_platform_exe not defined."
    366   exit
    367 fi
    368 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    369 if [ ${obuild_platform_result} = yes ] ; then
    370 obuild_c_debug="/ZI /Od"
    371 fi
    372 unset obuild_platform_result
    373 
    374 if [ "${obuild_platform_exe}" = "" ] ; then
    375   echo "Variable obuild_platform_exe not defined."
    376   exit
    377 fi
    378 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
    379 if [ ${obuild_platform_result} = yes ] ; then
    380 obuild_c_options="-fPIC"
    381 fi
    382 unset obuild_platform_result
    383 if [ "${obuild_platform_exe}" = "" ] ; then
    384   echo "Variable obuild_platform_exe not defined."
    385   exit
    386 fi
    387 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
    388 if [ ${obuild_platform_result} = yes ] ; then
    389 obuild_c_options="-std"
    390 fi
    391 unset obuild_platform_result
    392 if [ "${obuild_platform_exe}" = "" ] ; then
    393   echo "Variable obuild_platform_exe not defined."
    394   exit
    395 fi
    396 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    397 if [ ${obuild_platform_result} = yes ] ; then
    398 obuild_c_options="/nologo /DWIN32 /MD /W3"
    399 fi
    400 unset obuild_platform_result
    401 
    402 if [ ${obuild_debug} = yes ] ; then
    403   obuild_c_debug_local=${obuild_c_debug}
    404 else
    405   obuild_c_debug_local=
    406 fi
    407 
    408 if [ ${obuild_optimize} = yes ] ; then
    409   obuild_c_optimize_local=${obuild_c_optimize}
    410 else
    411   obuild_c_optimize_local=
    412 fi
    413 
     266obuild_cxx_macros="${obuild_cxx_macros} -D_HDF5USEDLL_"
     267fi
     268unset obuild_platform_result
     269
     270if [ ! -e "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" ] ; then
     271  if [ ! -e "${obuild_bhep_path}/obuild/cpp/obuild_find.cpp" ] ; then
     272    echo "Program source obuild_find.cpp not found."
     273    exit
     274  fi
     275  if [ "${obuild_cxx_command}" = "" ] ; then
     276    if [  "${OBUILD_CXX}" != "" ] ; then
     277      obuild_find_compiler=${OBUILD_CXX}
     278    else
     279      obuild_find_compiler=c++
     280    fi
     281  else
     282    obuild_find_compiler=${obuild_cxx_command}
     283  fi
     284  ${obuild_find_compiler} -o "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" "${obuild_bhep_path}/obuild/cpp/obuild_find.cpp"
     285  unset obuild_find_compiler
     286  if [ ! -e "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" ] ; then
     287    echo "Program obuild_find not found."
     288    exit
     289  fi
     290fi
     291obuild_find_exe="${obuild_bhep_path}/${obuild_dir_bin}/obuild_find"
     292if [ "${obuild_find_exe}" = "" ] ; then
     293  echo "Variable obuild_find_exe not defined."
     294  exit
     295fi
     296obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
     297if [ "${obuild_HDF5_path}" = "" ] ; then
     298  echo "Can't find HDF5 package."
     299  exit
     300fi
     301if [ "${obuild_find_exe}" = "" ] ; then
     302  echo "Variable obuild_find_exe not defined."
     303  exit
     304fi
     305obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`
     306if [ "${obuild_zlib_path}" = "" ] ; then
     307  echo "Can't find zlib package."
     308  exit
     309fi
    414310
    415311obuild_cxx_includes="-I\"${obuild_bhep_path}\""
     312obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_bhep_path}/bhep\""
     313if [ "${obuild_platform_exe}" = "" ] ; then
     314  echo "Variable obuild_platform_exe not defined."
     315  exit
     316fi
     317obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     318if [ ${obuild_platform_result} = yes ] ; then
     319obuild_cxx_includes="${obuild_cxx_includes} -I${CLHEP_home}/include"
     320fi
     321unset obuild_platform_result
     322obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\""
     323obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_zlib_path}/include\""
    416324
    417325if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
     
    596504
    597505cd "${obuild_bhep_path}/${obuild_dir_bin}"
    598  eval ${obuild_c_command} -c ${obuild_c_debug_local} ${obuild_c_optimize_local} ${obuild_c_options} ${obuild_c_macros} ${obuild_c_includes} -o ./lib_bhep/EventManager.o \"../source/tools/EventManager.c\"
     506 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_bhep/EventManager.o \"../source/tools/EventManager.cpp\"
    599507obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    600508cd "${obuild_bhep_path}/obuild"
  • build/bhep/trunk/obuild/this.obuild

    r126 r127  
    99    <reference package="foreign" version="v1r*" file="CLHEP.obuild"/>
    1010
    11 <!--
    12     <reference package="bhep" version="v1r1" file="obuild/snova.obuild"/>
    13 
    14     <reference package="G4Lab" version="v8r*" file="obuild/export.obuild"/>
    15  
    1611    <use name="HDF5" version="v1r*">
    1712      <c_include>include</c_include>
    1813      <lib>osc_HDF5</lib>
    1914    </use>
    20 -->
     15 
     16    <use name="zlib" version="v1r*">
     17      <c_include>include</c_include>
     18      <lib>osc_z</lib>
     19    </use>
    2120
    2221    <!-- this : -->
     
    5756      <file>../source/histos/axis.cpp</file>
    5857      <file>../source/histos/histogram.cpp</file>
    59       <file>../source/tools/EventManager.c</file>
     58      <file>../source/tools/EventManager.cpp</file>
    6059
    6160      <cxx_include>${obuild_bhep_path}</cxx_include>
     61      <cxx_include>${obuild_bhep_path}/bhep</cxx_include>
    6262
    6363      <!-- not this : -->
     64      <cxx_include copy="cxx_include" from="CLHEP"/>
    6465
    65 <!--
    66       <cxx_include copy="cxx_include" from="Lib"/>
    67       <cxx_include copy="cxx_include" from="Slash"/>
    68       <cxx_include copy="cxx_include" from="AIDA"/>
    69       <cxx_include copy="cxx_include" from="OnX"/>
    70       <cxx_include copy="cxx_include" from="G4Lab"/>
    71       <cxx_include copy="cxx_include" from="BatchLab"/>
    72 
    73       <cxx_include copy="cxx_include" from="HEPVis"/>
    74       <cxx_include copy="cxx_include" from="CoinGL"/>
    75 
    76       <lib copy="lib_LibXML" from="Lib"/>
    77       <lib copy="lib" from="expat"/>
    78       <lib copy="lib_LibZip" from="Lib"/>
    79       <lib copy="lib" from="zlib"/>
    80       <lib copy="lib_LibUtils" from="Lib"/>
    81 
    82       <lib copy="lib_HEPVisGeometry" from="HEPVis"/>
    83       <lib copy="lib_HEPVisUtils" from="HEPVis"/>
    84       <lib copy="lib" from="jpeg"/>
    85       <lib copy="lib" from="dvi2bitmap"/>
    86       <lib copy="lib" from="freetype2"/>
    87       <lib copy="lib" from="CoinGL"/>
    88 -->
     66      <cxx_macro platform="Windows_NT" name="_HDF5USEDLL_"/>
     67      <cxx_include copy="c_include" from="HDF5"/>
     68      <cxx_include copy="c_include" from="zlib"/>
    8969    </library>
    9070
Note: See TracChangeset for help on using the changeset viewer.