Changeset 254


Ignore:
Timestamp:
Feb 15, 2007, 12:08:19 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

    r249 r254  
    309309IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
    310310
     311REM # pre_build scripts :
     312FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     313cd "%obuild_bhep_path%\%obuild_dir_bin%"
     314IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     315FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     316cd "%obuild_pwd_bhep_0%"
     317SET obuild_pwd_bhep_0=
     318IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
     319./cpincs.sh
     320:end_if_platform_26
     321SET obuild_platform_result=
     322
    311323@IF %obuild_verbose% == yes @ECHO ON
    312324cd "%obuild_bhep_path%\%obuild_dir_bin%"
     
    526538IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    527539FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    528 cd "%obuild_pwd_bhep_0%"
    529 SET obuild_pwd_bhep_0=
    530 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61
    531 SET obuild_cxx_linker_command=c++
    532 :end_if_platform_61
    533 SET obuild_platform_result=
    534 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    535 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    536 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    537 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    538540cd "%obuild_pwd_bhep_0%"
    539541SET obuild_pwd_bhep_0=
     
    545547cd "%obuild_bhep_path%\%obuild_dir_bin%"
    546548IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     549FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     550cd "%obuild_pwd_bhep_0%"
     551SET obuild_pwd_bhep_0=
     552IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63
     553SET obuild_cxx_linker_command=c++
     554:end_if_platform_63
     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
    547559FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    548560cd "%obuild_pwd_bhep_0%"
    549561SET obuild_pwd_bhep_0=
    550 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63
     562IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64
    551563SET obuild_cxx_linker_command=cxx
    552 :end_if_platform_63
     564:end_if_platform_64
    553565SET obuild_platform_result=
    554566FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     
    558570cd "%obuild_pwd_bhep_0%"
    559571SET obuild_pwd_bhep_0=
    560 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64
     572IF NOT %obuild_platform_result% == yes GOTO end_if_platform_65
    561573SET obuild_cxx_linker_command=link.exe
    562 :end_if_platform_64
     574:end_if_platform_65
    563575SET obuild_platform_result=
    564576IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    568580IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    569581FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    570 cd "%obuild_pwd_bhep_0%"
    571 SET obuild_pwd_bhep_0=
    572 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_65
    573 SET obuild_cxx_linker_debug=-g
    574 :end_if_platform_65
    575 SET obuild_platform_result=
    576 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
    577 cd "%obuild_bhep_path%\%obuild_dir_bin%"
    578 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    579 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    580582cd "%obuild_pwd_bhep_0%"
    581583SET obuild_pwd_bhep_0=
     
    587589cd "%obuild_bhep_path%\%obuild_dir_bin%"
    588590IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    589 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     591FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    590592cd "%obuild_pwd_bhep_0%"
    591593SET obuild_pwd_bhep_0=
     
    597599cd "%obuild_bhep_path%\%obuild_dir_bin%"
    598600IF 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% OSF1`) 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_68
     605SET obuild_cxx_linker_debug=-g
     606:end_if_platform_68
     607SET obuild_platform_result=
     608FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
     609cd "%obuild_bhep_path%\%obuild_dir_bin%"
     610IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    599611FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    600612cd "%obuild_pwd_bhep_0%"
    601613SET obuild_pwd_bhep_0=
    602 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_68
     614IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69
    603615SET obuild_cxx_linker_debug=/DEBUG
    604 :end_if_platform_68
     616:end_if_platform_69
    605617SET obuild_platform_result=
    606618
     
    611623cd "%obuild_pwd_bhep_0%"
    612624SET obuild_pwd_bhep_0=
    613 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69
     625IF NOT %obuild_platform_result% == yes GOTO end_if_platform_70
    614626SET obuild_cxx_linker_options=/nologo
    615 :end_if_platform_69
    616 SET obuild_platform_result=
    617 
    618 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_70
     627:end_if_platform_70
     628SET obuild_platform_result=
     629
     630IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_71
    619631  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    620   GOTO end_if_db_build_lib_bhep_sh_70
    621 :else_if_db_build_lib_bhep_sh_70
     632  GOTO end_if_db_build_lib_bhep_sh_71
     633:else_if_db_build_lib_bhep_sh_71
    622634  SET obuild_cxx_linker_debug_local=
    623 :end_if_db_build_lib_bhep_sh_70
    624 
    625 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_71
     635:end_if_db_build_lib_bhep_sh_71
     636
     637IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_72
    626638  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    627   GOTO end_if_opt_build_lib_bhep_sh_71
    628 :else_if_opt_build_lib_bhep_sh_71
     639  GOTO end_if_opt_build_lib_bhep_sh_72
     640:else_if_opt_build_lib_bhep_sh_72
    629641  SET obuild_cxx_linker_optimize_local=
    630 :end_if_opt_build_lib_bhep_sh_71
     642:end_if_opt_build_lib_bhep_sh_72
    631643
    632644FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
  • build/bhep/trunk/obuild/sh/build_lib_bhep

    r249 r254  
    304304/bin/mkdir -p "${obuild_bhep_path}/${obuild_dir_bin}/lib_bhep"
    305305
     306# pre_build scripts :
     307if [ "${obuild_platform_exe}" = "" ] ; then
     308  echo "Variable obuild_platform_exe not defined."
     309  exit
     310fi
     311obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     312if [ ${obuild_platform_result} = yes ] ; then
     313./cpincs.sh
     314fi
     315unset obuild_platform_result
     316
    306317# Compile bhep files :
    307318if [ ${obuild_do_not_compile} = no ] ; then
  • build/bhep/trunk/obuild/this.obuild

    r248 r254  
    1414
    1515    <library name="bhep">
     16      <pre_build platform="UNIX">./cpincs.sh</pre_build>
     17
    1618      <file>../source/version.cpp</file>
    1719      <file>../source/base/event.cpp</file>
Note: See TracChangeset for help on using the changeset viewer.