Changeset 134


Ignore:
Timestamp:
Feb 9, 2007, 4:47:00 PM (16 years ago)
Author:
barrand
Message:
 
Location:
snovis/trunk/obuild
Files:
13 edited

Legend:

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

    r101 r134  
    173173:end_if_group_2
    174174
     175
    175176:obuild_return
    176177ENDLOCAL
  • snovis/trunk/obuild/DOS/build_app_prog_snova.bat

    r101 r134  
    9595cd "%obuild_snovis_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    9898cd "%obuild_pwd_snovis_0%"
    9999SET obuild_pwd_snovis_0=
    100100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     101SET snova_platform=Darwin
     102:end_if_platform_1
     103SET obuild_platform_result=
     104FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     105cd "%obuild_snovis_path%\%obuild_dir_bin%"
     106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     108cd "%obuild_pwd_snovis_0%"
     109SET obuild_pwd_snovis_0=
     110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    101111SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
    102 :end_if_platform_1
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET bhep_platform=Darwin
    112112:end_if_platform_3
    113113SET obuild_platform_result=
     
    125125cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126126IF 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 CLHEP_home=/usr/local/CLHEP/2.0.3.1
     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% UNIX`) 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_9
     141SET Geant4_home=/usr/local/geant4/8.2
     142:end_if_platform_9
     143SET obuild_platform_result=
     144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     145cd "%obuild_snovis_path%\%obuild_dir_bin%"
     146IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127147FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    128148cd "%obuild_pwd_snovis_0%"
    129149SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET snova_platform=Darwin
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    141 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    142 :end_if_platform_9
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
     151SET obuild_cxx_command=c++
     152:end_if_platform_10
     153SET obuild_platform_result=
     154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     155cd "%obuild_snovis_path%\%obuild_dir_bin%"
     156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148158cd "%obuild_pwd_snovis_0%"
    149159SET obuild_pwd_snovis_0=
    150160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    151 SET Geant4_home=/usr/local/geant4/8.2
     161SET obuild_cxx_command=c++
    152162:end_if_platform_11
    153163SET obuild_platform_result=
     
    155165cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156166IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     167FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     168cd "%obuild_pwd_snovis_0%"
     169SET obuild_pwd_snovis_0=
     170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     171SET obuild_cxx_command=cxx
     172:end_if_platform_12
     173SET obuild_platform_result=
     174FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     175cd "%obuild_snovis_path%\%obuild_dir_bin%"
     176IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     177FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     178cd "%obuild_pwd_snovis_0%"
     179SET obuild_pwd_snovis_0=
     180IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     181SET obuild_cxx_command=cl.exe
     182:end_if_platform_13
     183SET obuild_platform_result=
     184IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     185
     186FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     187cd "%obuild_snovis_path%\%obuild_dir_bin%"
     188IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157189FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    158190cd "%obuild_pwd_snovis_0%"
    159191SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    161 SET obuild_cxx_command=c++
    162 :end_if_platform_12
     192IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     193SET obuild_cxx_optimize=-O
     194:end_if_platform_14
    163195SET obuild_platform_result=
    164196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    168200cd "%obuild_pwd_snovis_0%"
    169201SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    171 SET obuild_cxx_command=c++
    172 :end_if_platform_13
     202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
     203SET obuild_cxx_optimize=-O
     204:end_if_platform_15
    173205SET obuild_platform_result=
    174206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    176208IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    177209FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    178 cd "%obuild_pwd_snovis_0%"
    179 SET obuild_pwd_snovis_0=
    180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    181 SET obuild_cxx_command=cxx
    182 :end_if_platform_14
    183 SET obuild_platform_result=
    184 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    185 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    186 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    187 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    188 cd "%obuild_pwd_snovis_0%"
    189 SET obuild_pwd_snovis_0=
    190 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    191 SET obuild_cxx_command=cl.exe
    192 :end_if_platform_15
    193 SET obuild_platform_result=
    194 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    195 
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    200210cd "%obuild_pwd_snovis_0%"
    201211SET obuild_pwd_snovis_0=
     
    207217cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208218IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     219FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     220cd "%obuild_pwd_snovis_0%"
     221SET obuild_pwd_snovis_0=
     222IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
     223SET obuild_cxx_optimize=/O2
     224:end_if_platform_17
     225SET obuild_platform_result=
     226
     227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     228cd "%obuild_snovis_path%\%obuild_dir_bin%"
     229IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     230FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     231cd "%obuild_pwd_snovis_0%"
     232SET obuild_pwd_snovis_0=
     233IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
     234SET obuild_cxx_debug=-g
     235:end_if_platform_18
     236SET obuild_platform_result=
     237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     238cd "%obuild_snovis_path%\%obuild_dir_bin%"
     239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    210241cd "%obuild_pwd_snovis_0%"
    211242SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    213 SET obuild_cxx_optimize=-O
    214 :end_if_platform_17
     243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
     244SET obuild_cxx_debug=-g
     245:end_if_platform_19
    215246SET obuild_platform_result=
    216247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    218249IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    219250FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    220 cd "%obuild_pwd_snovis_0%"
    221 SET obuild_pwd_snovis_0=
    222 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    223 SET obuild_cxx_optimize=-O
    224 :end_if_platform_18
    225 SET obuild_platform_result=
    226 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    227 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    228 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    229 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    230 cd "%obuild_pwd_snovis_0%"
    231 SET obuild_pwd_snovis_0=
    232 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    233 SET obuild_cxx_optimize=/O2
    234 :end_if_platform_19
    235 SET obuild_platform_result=
    236 
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    241251cd "%obuild_pwd_snovis_0%"
    242252SET obuild_pwd_snovis_0=
     
    248258cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249259IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     260FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     261cd "%obuild_pwd_snovis_0%"
     262SET obuild_pwd_snovis_0=
     263IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
     264SET obuild_cxx_debug=/ZI /Od
     265:end_if_platform_21
     266SET obuild_platform_result=
     267
     268FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     269cd "%obuild_snovis_path%\%obuild_dir_bin%"
     270IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250271FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    251272cd "%obuild_pwd_snovis_0%"
    252273SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    254 SET obuild_cxx_debug=-g
    255 :end_if_platform_21
    256 SET obuild_platform_result=
    257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    258 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    259 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    260 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    261 cd "%obuild_pwd_snovis_0%"
    262 SET obuild_pwd_snovis_0=
    263274IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    264 SET obuild_cxx_debug=-g
     275SET obuild_cxx_options=-fPIC
    265276:end_if_platform_22
    266277SET obuild_platform_result=
     
    272283SET obuild_pwd_snovis_0=
    273284IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    274 SET obuild_cxx_debug=/ZI /Od
     285SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    275286:end_if_platform_23
    276287SET obuild_platform_result=
    277288
    278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    279 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    280 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    281 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    282 cd "%obuild_pwd_snovis_0%"
    283 SET obuild_pwd_snovis_0=
    284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
    285 SET obuild_cxx_options=-fPIC
    286 :end_if_platform_24
    287 SET obuild_platform_result=
    288 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    289 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    290 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    291 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    292 cd "%obuild_pwd_snovis_0%"
    293 SET obuild_pwd_snovis_0=
    294 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    295 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    296 :end_if_platform_25
    297 SET obuild_platform_result=
    298 
    299 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_26
     289IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_24
    300290  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    301   GOTO end_if_db_build_app_prog_snova_sh_26
    302 :else_if_db_build_app_prog_snova_sh_26
     291  GOTO end_if_db_build_app_prog_snova_sh_24
     292:else_if_db_build_app_prog_snova_sh_24
    303293  SET obuild_cxx_debug_local=
    304 :end_if_db_build_app_prog_snova_sh_26
    305 
    306 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_27
     294:end_if_db_build_app_prog_snova_sh_24
     295
     296IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_25
    307297  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    308   GOTO end_if_opt_build_app_prog_snova_sh_27
    309 :else_if_opt_build_app_prog_snova_sh_27
     298  GOTO end_if_opt_build_app_prog_snova_sh_25
     299:else_if_opt_build_app_prog_snova_sh_25
    310300  SET obuild_cxx_optimize_local=
    311 :end_if_opt_build_app_prog_snova_sh_27
     301:end_if_opt_build_app_prog_snova_sh_25
    312302
    313303
     
    345335cd "%obuild_pwd_snovis_0%"
    346336SET obuild_pwd_snovis_0=
     337IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
     338SET obuild_cxx_includes=-I${snova_home}
     339:end_if_platform_26
     340SET obuild_platform_result=
     341FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     342cd "%obuild_snovis_path%\%obuild_dir_bin%"
     343IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     344FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     345cd "%obuild_pwd_snovis_0%"
     346SET obuild_pwd_snovis_0=
     347IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
     348SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
     349:end_if_platform_27
     350SET obuild_platform_result=
     351FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     352cd "%obuild_snovis_path%\%obuild_dir_bin%"
     353IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     354FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     355cd "%obuild_pwd_snovis_0%"
     356SET obuild_pwd_snovis_0=
    347357IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    348 SET obuild_cxx_includes=-I${snova_home}
     358SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
    349359:end_if_platform_28
    350360SET obuild_platform_result=
     
    356366SET obuild_pwd_snovis_0=
    357367IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    358 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
     368SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
    359369:end_if_platform_29
    360370SET obuild_platform_result=
     
    366376SET obuild_pwd_snovis_0=
    367377IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    368 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
     378SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
    369379:end_if_platform_30
    370380SET obuild_platform_result=
     
    376386SET obuild_pwd_snovis_0=
    377387IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    378 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
     388SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    379389:end_if_platform_31
    380390SET obuild_platform_result=
     
    386396SET obuild_pwd_snovis_0=
    387397IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    388 SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
     398SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    389399:end_if_platform_32
    390 SET obuild_platform_result=
    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_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    394 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    395 cd "%obuild_pwd_snovis_0%"
    396 SET obuild_pwd_snovis_0=
    397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    398 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    399 :end_if_platform_33
    400 SET obuild_platform_result=
    401 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    402 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    403 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    404 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    405 cd "%obuild_pwd_snovis_0%"
    406 SET obuild_pwd_snovis_0=
    407 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    408 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    409 :end_if_platform_34
    410400SET obuild_platform_result=
    411401SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
     
    429419cd "%obuild_pwd_snovis_0%"
    430420SET obuild_pwd_snovis_0=
     421IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
     422SET obuild_cxx_linker_command=c++
     423:end_if_platform_35
     424SET obuild_platform_result=
     425FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     426cd "%obuild_snovis_path%\%obuild_dir_bin%"
     427IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     428FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     429cd "%obuild_pwd_snovis_0%"
     430SET obuild_pwd_snovis_0=
     431IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
     432SET obuild_cxx_linker_command=c++
     433:end_if_platform_36
     434SET obuild_platform_result=
     435FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     436cd "%obuild_snovis_path%\%obuild_dir_bin%"
     437IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     438FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     439cd "%obuild_pwd_snovis_0%"
     440SET obuild_pwd_snovis_0=
    431441IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
    432 SET obuild_cxx_linker_command=c++
     442SET obuild_cxx_linker_command=cxx
    433443:end_if_platform_37
    434444SET obuild_platform_result=
     
    436446cd "%obuild_snovis_path%\%obuild_dir_bin%"
    437447IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     448FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     449cd "%obuild_pwd_snovis_0%"
     450SET obuild_pwd_snovis_0=
     451IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
     452SET obuild_cxx_linker_command=link.exe
     453:end_if_platform_38
     454SET obuild_platform_result=
     455IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     456
     457FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     458cd "%obuild_snovis_path%\%obuild_dir_bin%"
     459IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     460FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     461cd "%obuild_pwd_snovis_0%"
     462SET obuild_pwd_snovis_0=
     463IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
     464SET obuild_cxx_linker_debug=-g
     465:end_if_platform_39
     466SET obuild_platform_result=
     467FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     468cd "%obuild_snovis_path%\%obuild_dir_bin%"
     469IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    438470FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    439471cd "%obuild_pwd_snovis_0%"
    440472SET obuild_pwd_snovis_0=
    441 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    442 SET obuild_cxx_linker_command=c++
    443 :end_if_platform_38
     473IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
     474SET obuild_cxx_linker_debug=-g
     475:end_if_platform_40
    444476SET obuild_platform_result=
    445477FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    447479IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    448480FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    449 cd "%obuild_pwd_snovis_0%"
    450 SET obuild_pwd_snovis_0=
    451 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
    452 SET obuild_cxx_linker_command=cxx
    453 :end_if_platform_39
    454 SET obuild_platform_result=
    455 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    456 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    457 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    458 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    459 cd "%obuild_pwd_snovis_0%"
    460 SET obuild_pwd_snovis_0=
    461 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    462 SET obuild_cxx_linker_command=link.exe
    463 :end_if_platform_40
    464 SET obuild_platform_result=
    465 IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
    466 
    467 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    468 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    469 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    470 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    471481cd "%obuild_pwd_snovis_0%"
    472482SET obuild_pwd_snovis_0=
     
    478488cd "%obuild_snovis_path%\%obuild_dir_bin%"
    479489IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    480 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     490FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    481491cd "%obuild_pwd_snovis_0%"
    482492SET obuild_pwd_snovis_0=
    483493IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    484 SET obuild_cxx_linker_debug=-g
     494SET obuild_cxx_linker_debug=/DEBUG
    485495:end_if_platform_42
    486496SET obuild_platform_result=
    487 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    488 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    489 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    490 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     497
     498FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     499cd "%obuild_snovis_path%\%obuild_dir_bin%"
     500IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     501FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    491502cd "%obuild_pwd_snovis_0%"
    492503SET obuild_pwd_snovis_0=
    493504IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    494 SET obuild_cxx_linker_debug=-g
     505SET obuild_cxx_linker_options=/nologo
    495506:end_if_platform_43
    496507SET obuild_platform_result=
    497 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    498 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    499 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    500 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    501 cd "%obuild_pwd_snovis_0%"
    502 SET obuild_pwd_snovis_0=
    503 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    504 SET obuild_cxx_linker_debug=/DEBUG
    505 :end_if_platform_44
    506 SET obuild_platform_result=
    507 
    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_45
    515 SET obuild_cxx_linker_options=/nologo
    516 :end_if_platform_45
    517 SET obuild_platform_result=
    518 
    519 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_46
     508
     509IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_44
    520510  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    521   GOTO end_if_db_build_app_prog_snova_sh_46
    522 :else_if_db_build_app_prog_snova_sh_46
     511  GOTO end_if_db_build_app_prog_snova_sh_44
     512:else_if_db_build_app_prog_snova_sh_44
    523513  SET obuild_cxx_linker_debug_local=
    524 :end_if_db_build_app_prog_snova_sh_46
    525 
    526 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_47
     514:end_if_db_build_app_prog_snova_sh_44
     515
     516IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_45
    527517  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    528   GOTO end_if_opt_build_app_prog_snova_sh_47
    529 :else_if_opt_build_app_prog_snova_sh_47
     518  GOTO end_if_opt_build_app_prog_snova_sh_45
     519:else_if_opt_build_app_prog_snova_sh_45
    530520  SET obuild_cxx_linker_optimize_local=
    531 :end_if_opt_build_app_prog_snova_sh_47
     521:end_if_opt_build_app_prog_snova_sh_45
    532522
    533523SET obuild_linked_libraries=-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
     
    540530cd "%obuild_pwd_snovis_0%"
    541531SET obuild_pwd_snovis_0=
    542 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
     532IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
    543533SET 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
    544 :end_if_platform_51
    545 SET obuild_platform_result=
    546 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    547 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    548 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    549 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    550 cd "%obuild_pwd_snovis_0%"
    551 SET obuild_pwd_snovis_0=
    552 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
     534:end_if_platform_49
     535SET obuild_platform_result=
     536FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     537cd "%obuild_snovis_path%\%obuild_dir_bin%"
     538IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     539FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     540cd "%obuild_pwd_snovis_0%"
     541SET obuild_pwd_snovis_0=
     542IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
    553543SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
    554 :end_if_platform_52
     544:end_if_platform_50
    555545SET obuild_platform_result=
    556546SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
  • snovis/trunk/obuild/DOS/build_app_snovis_session.bat

    r101 r134  
    9595cd "%obuild_snovis_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    9898cd "%obuild_pwd_snovis_0%"
    9999SET obuild_pwd_snovis_0=
    100100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     101SET snova_platform=Darwin
     102:end_if_platform_1
     103SET obuild_platform_result=
     104FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     105cd "%obuild_snovis_path%\%obuild_dir_bin%"
     106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     108cd "%obuild_pwd_snovis_0%"
     109SET obuild_pwd_snovis_0=
     110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    101111SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
    102 :end_if_platform_1
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET bhep_platform=Darwin
    112112:end_if_platform_3
    113113SET obuild_platform_result=
     
    125125cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126126IF 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 CLHEP_home=/usr/local/CLHEP/2.0.3.1
     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% UNIX`) 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_9
     141SET Geant4_home=/usr/local/geant4/8.2
     142:end_if_platform_9
     143SET obuild_platform_result=
     144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     145cd "%obuild_snovis_path%\%obuild_dir_bin%"
     146IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127147FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    128148cd "%obuild_pwd_snovis_0%"
    129149SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET snova_platform=Darwin
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    141 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    142 :end_if_platform_9
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
     151SET obuild_cxx_command=c++
     152:end_if_platform_10
     153SET obuild_platform_result=
     154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     155cd "%obuild_snovis_path%\%obuild_dir_bin%"
     156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148158cd "%obuild_pwd_snovis_0%"
    149159SET obuild_pwd_snovis_0=
    150160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    151 SET Geant4_home=/usr/local/geant4/8.2
     161SET obuild_cxx_command=c++
    152162:end_if_platform_11
    153163SET obuild_platform_result=
     
    155165cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156166IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     167FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     168cd "%obuild_pwd_snovis_0%"
     169SET obuild_pwd_snovis_0=
     170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     171SET obuild_cxx_command=cxx
     172:end_if_platform_12
     173SET obuild_platform_result=
     174FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     175cd "%obuild_snovis_path%\%obuild_dir_bin%"
     176IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     177FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     178cd "%obuild_pwd_snovis_0%"
     179SET obuild_pwd_snovis_0=
     180IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     181SET obuild_cxx_command=cl.exe
     182:end_if_platform_13
     183SET obuild_platform_result=
     184IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     185
     186FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     187cd "%obuild_snovis_path%\%obuild_dir_bin%"
     188IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157189FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    158190cd "%obuild_pwd_snovis_0%"
    159191SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    161 SET obuild_cxx_command=c++
    162 :end_if_platform_12
     192IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     193SET obuild_cxx_optimize=-O
     194:end_if_platform_14
    163195SET obuild_platform_result=
    164196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    168200cd "%obuild_pwd_snovis_0%"
    169201SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    171 SET obuild_cxx_command=c++
    172 :end_if_platform_13
     202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
     203SET obuild_cxx_optimize=-O
     204:end_if_platform_15
    173205SET obuild_platform_result=
    174206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    176208IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    177209FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    178 cd "%obuild_pwd_snovis_0%"
    179 SET obuild_pwd_snovis_0=
    180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    181 SET obuild_cxx_command=cxx
    182 :end_if_platform_14
    183 SET obuild_platform_result=
    184 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    185 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    186 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    187 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    188 cd "%obuild_pwd_snovis_0%"
    189 SET obuild_pwd_snovis_0=
    190 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    191 SET obuild_cxx_command=cl.exe
    192 :end_if_platform_15
    193 SET obuild_platform_result=
    194 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    195 
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    200210cd "%obuild_pwd_snovis_0%"
    201211SET obuild_pwd_snovis_0=
     
    207217cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208218IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     219FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     220cd "%obuild_pwd_snovis_0%"
     221SET obuild_pwd_snovis_0=
     222IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
     223SET obuild_cxx_optimize=/O2
     224:end_if_platform_17
     225SET obuild_platform_result=
     226
     227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     228cd "%obuild_snovis_path%\%obuild_dir_bin%"
     229IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     230FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     231cd "%obuild_pwd_snovis_0%"
     232SET obuild_pwd_snovis_0=
     233IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
     234SET obuild_cxx_debug=-g
     235:end_if_platform_18
     236SET obuild_platform_result=
     237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     238cd "%obuild_snovis_path%\%obuild_dir_bin%"
     239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    210241cd "%obuild_pwd_snovis_0%"
    211242SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    213 SET obuild_cxx_optimize=-O
    214 :end_if_platform_17
     243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
     244SET obuild_cxx_debug=-g
     245:end_if_platform_19
    215246SET obuild_platform_result=
    216247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    218249IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    219250FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    220 cd "%obuild_pwd_snovis_0%"
    221 SET obuild_pwd_snovis_0=
    222 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    223 SET obuild_cxx_optimize=-O
    224 :end_if_platform_18
    225 SET obuild_platform_result=
    226 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    227 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    228 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    229 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    230 cd "%obuild_pwd_snovis_0%"
    231 SET obuild_pwd_snovis_0=
    232 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    233 SET obuild_cxx_optimize=/O2
    234 :end_if_platform_19
    235 SET obuild_platform_result=
    236 
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    241251cd "%obuild_pwd_snovis_0%"
    242252SET obuild_pwd_snovis_0=
     
    248258cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249259IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     260FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     261cd "%obuild_pwd_snovis_0%"
     262SET obuild_pwd_snovis_0=
     263IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
     264SET obuild_cxx_debug=/ZI /Od
     265:end_if_platform_21
     266SET obuild_platform_result=
     267
     268FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     269cd "%obuild_snovis_path%\%obuild_dir_bin%"
     270IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250271FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    251272cd "%obuild_pwd_snovis_0%"
    252273SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    254 SET obuild_cxx_debug=-g
    255 :end_if_platform_21
    256 SET obuild_platform_result=
    257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    258 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    259 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    260 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    261 cd "%obuild_pwd_snovis_0%"
    262 SET obuild_pwd_snovis_0=
    263274IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    264 SET obuild_cxx_debug=-g
     275SET obuild_cxx_options=-fPIC
    265276:end_if_platform_22
    266277SET obuild_platform_result=
     
    272283SET obuild_pwd_snovis_0=
    273284IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    274 SET obuild_cxx_debug=/ZI /Od
     285SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    275286:end_if_platform_23
    276287SET obuild_platform_result=
    277288
    278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    279 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    280 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    281 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    282 cd "%obuild_pwd_snovis_0%"
    283 SET obuild_pwd_snovis_0=
    284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
    285 SET obuild_cxx_options=-fPIC
    286 :end_if_platform_24
    287 SET obuild_platform_result=
    288 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    289 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    290 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    291 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    292 cd "%obuild_pwd_snovis_0%"
    293 SET obuild_pwd_snovis_0=
    294 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    295 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    296 :end_if_platform_25
    297 SET obuild_platform_result=
    298 
    299 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_26
     289IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_24
    300290  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    301   GOTO end_if_db_build_app_snovis_session_sh_26
    302 :else_if_db_build_app_snovis_session_sh_26
     291  GOTO end_if_db_build_app_snovis_session_sh_24
     292:else_if_db_build_app_snovis_session_sh_24
    303293  SET obuild_cxx_debug_local=
    304 :end_if_db_build_app_snovis_session_sh_26
    305 
    306 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_27
     294:end_if_db_build_app_snovis_session_sh_24
     295
     296IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_25
    307297  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    308   GOTO end_if_opt_build_app_snovis_session_sh_27
    309 :else_if_opt_build_app_snovis_session_sh_27
     298  GOTO end_if_opt_build_app_snovis_session_sh_25
     299:else_if_opt_build_app_snovis_session_sh_25
    310300  SET obuild_cxx_optimize_local=
    311 :end_if_opt_build_app_snovis_session_sh_27
     301:end_if_opt_build_app_snovis_session_sh_25
    312302
    313303
     
    464454cd "%obuild_pwd_snovis_0%"
    465455SET obuild_pwd_snovis_0=
     456IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
     457SET obuild_cxx_includes=-I${snova_home}
     458:end_if_platform_26
     459SET obuild_platform_result=
     460FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     461cd "%obuild_snovis_path%\%obuild_dir_bin%"
     462IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     463FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     464cd "%obuild_pwd_snovis_0%"
     465SET obuild_pwd_snovis_0=
     466IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
     467SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
     468:end_if_platform_27
     469SET obuild_platform_result=
     470FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     471cd "%obuild_snovis_path%\%obuild_dir_bin%"
     472IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     473FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     474cd "%obuild_pwd_snovis_0%"
     475SET obuild_pwd_snovis_0=
    466476IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    467 SET obuild_cxx_includes=-I${snova_home}
     477SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
    468478:end_if_platform_28
    469479SET obuild_platform_result=
     
    475485SET obuild_pwd_snovis_0=
    476486IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    477 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
     487SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
    478488:end_if_platform_29
    479489SET obuild_platform_result=
     
    485495SET obuild_pwd_snovis_0=
    486496IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    487 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
     497SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
    488498:end_if_platform_30
    489499SET obuild_platform_result=
     
    495505SET obuild_pwd_snovis_0=
    496506IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    497 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
     507SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    498508:end_if_platform_31
    499509SET obuild_platform_result=
     
    505515SET obuild_pwd_snovis_0=
    506516IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    507 SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
     517SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    508518:end_if_platform_32
    509 SET obuild_platform_result=
    510 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    511 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    512 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    513 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    514 cd "%obuild_pwd_snovis_0%"
    515 SET obuild_pwd_snovis_0=
    516 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    517 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    518 :end_if_platform_33
    519 SET obuild_platform_result=
    520 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    521 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    522 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    523 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    524 cd "%obuild_pwd_snovis_0%"
    525 SET obuild_pwd_snovis_0=
    526 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    527 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    528 :end_if_platform_34
    529519SET obuild_platform_result=
    530520SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
     
    552542cd "%obuild_pwd_snovis_0%"
    553543SET obuild_pwd_snovis_0=
     544IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
     545SET obuild_cxx_linker_command=c++
     546:end_if_platform_39
     547SET obuild_platform_result=
     548FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     549cd "%obuild_snovis_path%\%obuild_dir_bin%"
     550IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     551FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     552cd "%obuild_pwd_snovis_0%"
     553SET obuild_pwd_snovis_0=
     554IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
     555SET obuild_cxx_linker_command=c++
     556:end_if_platform_40
     557SET obuild_platform_result=
     558FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     559cd "%obuild_snovis_path%\%obuild_dir_bin%"
     560IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     561FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     562cd "%obuild_pwd_snovis_0%"
     563SET obuild_pwd_snovis_0=
    554564IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    555 SET obuild_cxx_linker_command=c++
     565SET obuild_cxx_linker_command=cxx
    556566:end_if_platform_41
    557567SET obuild_platform_result=
     
    559569cd "%obuild_snovis_path%\%obuild_dir_bin%"
    560570IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     571FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     572cd "%obuild_pwd_snovis_0%"
     573SET obuild_pwd_snovis_0=
     574IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
     575SET obuild_cxx_linker_command=link.exe
     576:end_if_platform_42
     577SET obuild_platform_result=
     578IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     579
     580FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     581cd "%obuild_snovis_path%\%obuild_dir_bin%"
     582IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     583FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     584cd "%obuild_pwd_snovis_0%"
     585SET obuild_pwd_snovis_0=
     586IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
     587SET obuild_cxx_linker_debug=-g
     588:end_if_platform_43
     589SET obuild_platform_result=
     590FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     591cd "%obuild_snovis_path%\%obuild_dir_bin%"
     592IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    561593FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    562594cd "%obuild_pwd_snovis_0%"
    563595SET obuild_pwd_snovis_0=
    564 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    565 SET obuild_cxx_linker_command=c++
    566 :end_if_platform_42
     596IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
     597SET obuild_cxx_linker_debug=-g
     598:end_if_platform_44
    567599SET obuild_platform_result=
    568600FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    570602IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    571603FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    572 cd "%obuild_pwd_snovis_0%"
    573 SET obuild_pwd_snovis_0=
    574 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    575 SET obuild_cxx_linker_command=cxx
    576 :end_if_platform_43
    577 SET obuild_platform_result=
    578 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    579 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    580 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    581 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    582 cd "%obuild_pwd_snovis_0%"
    583 SET obuild_pwd_snovis_0=
    584 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    585 SET obuild_cxx_linker_command=link.exe
    586 :end_if_platform_44
    587 SET obuild_platform_result=
    588 IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
    589 
    590 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    591 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    592 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    593 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    594604cd "%obuild_pwd_snovis_0%"
    595605SET obuild_pwd_snovis_0=
     
    601611cd "%obuild_snovis_path%\%obuild_dir_bin%"
    602612IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    603 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     613FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    604614cd "%obuild_pwd_snovis_0%"
    605615SET obuild_pwd_snovis_0=
    606616IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
    607 SET obuild_cxx_linker_debug=-g
     617SET obuild_cxx_linker_debug=/DEBUG
    608618:end_if_platform_46
    609619SET obuild_platform_result=
    610 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    611 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    612 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    613 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     620
     621FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     622cd "%obuild_snovis_path%\%obuild_dir_bin%"
     623IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     624FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    614625cd "%obuild_pwd_snovis_0%"
    615626SET obuild_pwd_snovis_0=
    616627IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    617 SET obuild_cxx_linker_debug=-g
     628SET obuild_cxx_linker_options=/nologo
    618629:end_if_platform_47
    619630SET obuild_platform_result=
    620 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    621 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    622 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    623 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    624 cd "%obuild_pwd_snovis_0%"
    625 SET obuild_pwd_snovis_0=
    626 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
    627 SET obuild_cxx_linker_debug=/DEBUG
    628 :end_if_platform_48
    629 SET obuild_platform_result=
    630 
    631 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    632 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    633 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    634 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    635 cd "%obuild_pwd_snovis_0%"
    636 SET obuild_pwd_snovis_0=
    637 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
    638 SET obuild_cxx_linker_options=/nologo
    639 :end_if_platform_49
    640 SET obuild_platform_result=
    641 
    642 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_50
     631
     632IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_48
    643633  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    644   GOTO end_if_db_build_app_snovis_session_sh_50
    645 :else_if_db_build_app_snovis_session_sh_50
     634  GOTO end_if_db_build_app_snovis_session_sh_48
     635:else_if_db_build_app_snovis_session_sh_48
    646636  SET obuild_cxx_linker_debug_local=
    647 :end_if_db_build_app_snovis_session_sh_50
    648 
    649 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_51
     637:end_if_db_build_app_snovis_session_sh_48
     638
     639IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_49
    650640  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    651   GOTO end_if_opt_build_app_snovis_session_sh_51
    652 :else_if_opt_build_app_snovis_session_sh_51
     641  GOTO end_if_opt_build_app_snovis_session_sh_49
     642:else_if_opt_build_app_snovis_session_sh_49
    653643  SET obuild_cxx_linker_optimize_local=
    654 :end_if_opt_build_app_snovis_session_sh_51
     644:end_if_opt_build_app_snovis_session_sh_49
    655645
    656646SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
     
    666656cd "%obuild_pwd_snovis_0%"
    667657SET obuild_pwd_snovis_0=
    668 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
     658IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
    669659SET 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
    670 :end_if_platform_58
    671 SET obuild_platform_result=
    672 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    673 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    674 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    675 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    676 cd "%obuild_pwd_snovis_0%"
    677 SET obuild_pwd_snovis_0=
    678 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
     660:end_if_platform_56
     661SET obuild_platform_result=
     662FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     663cd "%obuild_snovis_path%\%obuild_dir_bin%"
     664IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     665FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     666cd "%obuild_pwd_snovis_0%"
     667SET obuild_pwd_snovis_0=
     668IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
    679669SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
    680 :end_if_platform_59
     670:end_if_platform_57
    681671SET obuild_platform_result=
    682672SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
     
    697687cd "%obuild_pwd_snovis_0%"
    698688SET obuild_pwd_snovis_0=
     689IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69
     690SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     691:end_if_platform_69
     692SET obuild_platform_result=
     693FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     694cd "%obuild_snovis_path%\%obuild_dir_bin%"
     695IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     696FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     697cd "%obuild_pwd_snovis_0%"
     698SET obuild_pwd_snovis_0=
     699IF NOT %obuild_platform_result% == yes GOTO end_if_platform_70
     700SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     701:end_if_platform_70
     702SET obuild_platform_result=
     703FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     704cd "%obuild_snovis_path%\%obuild_dir_bin%"
     705IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     706FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     707cd "%obuild_pwd_snovis_0%"
     708SET obuild_pwd_snovis_0=
    699709IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
    700 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     710SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    701711:end_if_platform_71
    702712SET obuild_platform_result=
     
    704714cd "%obuild_snovis_path%\%obuild_dir_bin%"
    705715IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    706 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     716FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    707717cd "%obuild_pwd_snovis_0%"
    708718SET obuild_pwd_snovis_0=
    709719IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72
    710 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     720SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    711721:end_if_platform_72
    712722SET obuild_platform_result=
     
    714724cd "%obuild_snovis_path%\%obuild_dir_bin%"
    715725IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    716 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     726FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    717727cd "%obuild_pwd_snovis_0%"
    718728SET obuild_pwd_snovis_0=
    719729IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73
    720 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
     730SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    721731:end_if_platform_73
    722732SET obuild_platform_result=
     
    724734cd "%obuild_snovis_path%\%obuild_dir_bin%"
    725735IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    726 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     736FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    727737cd "%obuild_pwd_snovis_0%"
    728738SET obuild_pwd_snovis_0=
    729739IF NOT %obuild_platform_result% == yes GOTO end_if_platform_74
    730 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
     740SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    731741:end_if_platform_74
    732 SET obuild_platform_result=
    733 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    734 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    735 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    736 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    737 cd "%obuild_pwd_snovis_0%"
    738 SET obuild_pwd_snovis_0=
    739 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_75
    740 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    741 :end_if_platform_75
    742 SET obuild_platform_result=
    743 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    744 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    745 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    746 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    747 cd "%obuild_pwd_snovis_0%"
    748 SET obuild_pwd_snovis_0=
    749 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_76
    750 SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    751 :end_if_platform_76
    752742SET obuild_platform_result=
    753743
  • snovis/trunk/obuild/DOS/build_dll_snovis.bat

    r101 r134  
    9595cd "%obuild_snovis_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     98cd "%obuild_pwd_snovis_0%"
     99SET obuild_pwd_snovis_0=
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     101SET snova_platform=Darwin
     102:end_if_platform_1
     103SET obuild_platform_result=
     104FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     105cd "%obuild_snovis_path%\%obuild_dir_bin%"
     106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    98108cd "%obuild_pwd_snovis_0%"
    99109SET obuild_pwd_snovis_0=
    100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    101111SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
    102 :end_if_platform_1
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET bhep_platform=Darwin
    112112:end_if_platform_3
    113113SET obuild_platform_result=
     
    125125cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126126IF 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 CLHEP_home=/usr/local/CLHEP/2.0.3.1
     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% UNIX`) 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_9
     141SET Geant4_home=/usr/local/geant4/8.2
     142:end_if_platform_9
     143SET obuild_platform_result=
     144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     145cd "%obuild_snovis_path%\%obuild_dir_bin%"
     146IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127147FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    128148cd "%obuild_pwd_snovis_0%"
    129149SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET snova_platform=Darwin
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    141 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    142 :end_if_platform_9
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
     151SET obuild_cxx_command=c++
     152:end_if_platform_10
     153SET obuild_platform_result=
     154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     155cd "%obuild_snovis_path%\%obuild_dir_bin%"
     156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148158cd "%obuild_pwd_snovis_0%"
    149159SET obuild_pwd_snovis_0=
    150160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    151 SET Geant4_home=/usr/local/geant4/8.2
     161SET obuild_cxx_command=c++
    152162:end_if_platform_11
    153163SET obuild_platform_result=
     
    155165cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156166IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     167FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     168cd "%obuild_pwd_snovis_0%"
     169SET obuild_pwd_snovis_0=
     170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     171SET obuild_cxx_command=cxx
     172:end_if_platform_12
     173SET obuild_platform_result=
     174FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     175cd "%obuild_snovis_path%\%obuild_dir_bin%"
     176IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     177FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     178cd "%obuild_pwd_snovis_0%"
     179SET obuild_pwd_snovis_0=
     180IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     181SET obuild_cxx_command=cl.exe
     182:end_if_platform_13
     183SET obuild_platform_result=
     184IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     185
     186FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     187cd "%obuild_snovis_path%\%obuild_dir_bin%"
     188IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157189FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    158190cd "%obuild_pwd_snovis_0%"
    159191SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    161 SET obuild_cxx_command=c++
    162 :end_if_platform_12
     192IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     193SET obuild_cxx_optimize=-O
     194:end_if_platform_14
    163195SET obuild_platform_result=
    164196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    168200cd "%obuild_pwd_snovis_0%"
    169201SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    171 SET obuild_cxx_command=c++
    172 :end_if_platform_13
     202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
     203SET obuild_cxx_optimize=-O
     204:end_if_platform_15
    173205SET obuild_platform_result=
    174206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    176208IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    177209FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    178 cd "%obuild_pwd_snovis_0%"
    179 SET obuild_pwd_snovis_0=
    180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    181 SET obuild_cxx_command=cxx
    182 :end_if_platform_14
    183 SET obuild_platform_result=
    184 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    185 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    186 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    187 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    188 cd "%obuild_pwd_snovis_0%"
    189 SET obuild_pwd_snovis_0=
    190 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    191 SET obuild_cxx_command=cl.exe
    192 :end_if_platform_15
    193 SET obuild_platform_result=
    194 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    195 
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    200210cd "%obuild_pwd_snovis_0%"
    201211SET obuild_pwd_snovis_0=
     
    207217cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208218IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     219FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     220cd "%obuild_pwd_snovis_0%"
     221SET obuild_pwd_snovis_0=
     222IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
     223SET obuild_cxx_optimize=/O2
     224:end_if_platform_17
     225SET obuild_platform_result=
     226
     227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     228cd "%obuild_snovis_path%\%obuild_dir_bin%"
     229IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     230FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     231cd "%obuild_pwd_snovis_0%"
     232SET obuild_pwd_snovis_0=
     233IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
     234SET obuild_cxx_debug=-g
     235:end_if_platform_18
     236SET obuild_platform_result=
     237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     238cd "%obuild_snovis_path%\%obuild_dir_bin%"
     239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    210241cd "%obuild_pwd_snovis_0%"
    211242SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    213 SET obuild_cxx_optimize=-O
    214 :end_if_platform_17
     243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
     244SET obuild_cxx_debug=-g
     245:end_if_platform_19
    215246SET obuild_platform_result=
    216247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    218249IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    219250FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    220 cd "%obuild_pwd_snovis_0%"
    221 SET obuild_pwd_snovis_0=
    222 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    223 SET obuild_cxx_optimize=-O
    224 :end_if_platform_18
    225 SET obuild_platform_result=
    226 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    227 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    228 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    229 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    230 cd "%obuild_pwd_snovis_0%"
    231 SET obuild_pwd_snovis_0=
    232 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    233 SET obuild_cxx_optimize=/O2
    234 :end_if_platform_19
    235 SET obuild_platform_result=
    236 
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    241251cd "%obuild_pwd_snovis_0%"
    242252SET obuild_pwd_snovis_0=
     
    248258cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249259IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     260FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     261cd "%obuild_pwd_snovis_0%"
     262SET obuild_pwd_snovis_0=
     263IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
     264SET obuild_cxx_debug=/ZI /Od
     265:end_if_platform_21
     266SET obuild_platform_result=
     267
     268FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     269cd "%obuild_snovis_path%\%obuild_dir_bin%"
     270IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250271FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    251272cd "%obuild_pwd_snovis_0%"
    252273SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    254 SET obuild_cxx_debug=-g
    255 :end_if_platform_21
    256 SET obuild_platform_result=
    257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    258 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    259 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    260 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    261 cd "%obuild_pwd_snovis_0%"
    262 SET obuild_pwd_snovis_0=
    263274IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    264 SET obuild_cxx_debug=-g
     275SET obuild_cxx_options=-fPIC
    265276:end_if_platform_22
    266277SET obuild_platform_result=
     
    272283SET obuild_pwd_snovis_0=
    273284IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    274 SET obuild_cxx_debug=/ZI /Od
     285SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    275286:end_if_platform_23
    276287SET obuild_platform_result=
    277288
    278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    279 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    280 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    281 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    282 cd "%obuild_pwd_snovis_0%"
    283 SET obuild_pwd_snovis_0=
    284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
    285 SET obuild_cxx_options=-fPIC
    286 :end_if_platform_24
    287 SET obuild_platform_result=
    288 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    289 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    290 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    291 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    292 cd "%obuild_pwd_snovis_0%"
    293 SET obuild_pwd_snovis_0=
    294 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    295 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    296 :end_if_platform_25
    297 SET obuild_platform_result=
    298 
    299 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_26
     289IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_24
    300290  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    301   GOTO end_if_db_build_dll_snovis_sh_26
    302 :else_if_db_build_dll_snovis_sh_26
     291  GOTO end_if_db_build_dll_snovis_sh_24
     292:else_if_db_build_dll_snovis_sh_24
    303293  SET obuild_cxx_debug_local=
    304 :end_if_db_build_dll_snovis_sh_26
    305 
    306 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_27
     294:end_if_db_build_dll_snovis_sh_24
     295
     296IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_25
    307297  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    308   GOTO end_if_opt_build_dll_snovis_sh_27
    309 :else_if_opt_build_dll_snovis_sh_27
     298  GOTO end_if_opt_build_dll_snovis_sh_25
     299:else_if_opt_build_dll_snovis_sh_25
    310300  SET obuild_cxx_optimize_local=
    311 :end_if_opt_build_dll_snovis_sh_27
     301:end_if_opt_build_dll_snovis_sh_25
    312302
    313303
     
    466456cd "%obuild_pwd_snovis_0%"
    467457SET obuild_pwd_snovis_0=
    468 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
     458IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
    469459SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
    470 :end_if_platform_37
     460:end_if_platform_35
    471461SET obuild_platform_result=
    472462FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    476466cd "%obuild_pwd_snovis_0%"
    477467SET obuild_pwd_snovis_0=
    478 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
     468IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
    479469SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
    480 :end_if_platform_38
     470:end_if_platform_36
    481471SET obuild_platform_result=
    482472
     
    522512cd "%obuild_pwd_snovis_0%"
    523513SET obuild_pwd_snovis_0=
     514IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
     515SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     516:end_if_platform_51
     517SET obuild_platform_result=
     518FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     519cd "%obuild_snovis_path%\%obuild_dir_bin%"
     520IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     521FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     522cd "%obuild_pwd_snovis_0%"
     523SET obuild_pwd_snovis_0=
     524IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
     525SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     526:end_if_platform_52
     527SET obuild_platform_result=
     528FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     529cd "%obuild_snovis_path%\%obuild_dir_bin%"
     530IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     531FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     532cd "%obuild_pwd_snovis_0%"
     533SET obuild_pwd_snovis_0=
    524534IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
    525 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     535SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    526536:end_if_platform_53
    527537SET obuild_platform_result=
     
    529539cd "%obuild_snovis_path%\%obuild_dir_bin%"
    530540IF 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% Darwin`) DO SET obuild_platform_result=%%j
     541FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    532542cd "%obuild_pwd_snovis_0%"
    533543SET obuild_pwd_snovis_0=
    534544IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
    535 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     545SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    536546:end_if_platform_54
    537547SET obuild_platform_result=
     
    539549cd "%obuild_snovis_path%\%obuild_dir_bin%"
    540550IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    541 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     551FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    542552cd "%obuild_pwd_snovis_0%"
    543553SET obuild_pwd_snovis_0=
    544554IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
    545 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
     555SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    546556:end_if_platform_55
    547557SET obuild_platform_result=
     
    549559cd "%obuild_snovis_path%\%obuild_dir_bin%"
    550560IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    551 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     561FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    552562cd "%obuild_pwd_snovis_0%"
    553563SET obuild_pwd_snovis_0=
    554564IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
    555 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
     565SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    556566:end_if_platform_56
    557 SET obuild_platform_result=
    558 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    559 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    560 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    561 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    562 cd "%obuild_pwd_snovis_0%"
    563 SET obuild_pwd_snovis_0=
    564 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
    565 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    566 :end_if_platform_57
    567 SET obuild_platform_result=
    568 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    569 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    570 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    571 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    572 cd "%obuild_pwd_snovis_0%"
    573 SET obuild_pwd_snovis_0=
    574 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
    575 SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    576 :end_if_platform_58
    577567SET obuild_platform_result=
    578568
  • snovis/trunk/obuild/setup.bat

    r101 r134  
    5151cd "%obuild_snovis_path%\%obuild_dir_bin%"
    5252IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    53 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     53FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    5454cd "%obuild_pwd_snovis_0%"
    5555SET obuild_pwd_snovis_0=
    5656IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    57 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
     57SET snova_platform=Darwin
    5858:end_if_platform_1
    5959SET obuild_platform_result=
     
    6161cd "%obuild_snovis_path%\%obuild_dir_bin%"
    6262IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    63 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     63FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    6464cd "%obuild_pwd_snovis_0%"
    6565SET obuild_pwd_snovis_0=
    6666IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    67 SET bhep_platform=Darwin
     67SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
    6868:end_if_platform_3
    6969SET obuild_platform_result=
     
    8181cd "%obuild_snovis_path%\%obuild_dir_bin%"
    8282IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    83 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     83FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    8484cd "%obuild_pwd_snovis_0%"
    8585SET obuild_pwd_snovis_0=
    8686IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    87 SET snova_platform=Darwin
     87SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    8888:end_if_platform_7
    8989SET obuild_platform_result=
     
    9595SET obuild_pwd_snovis_0=
    9696IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    97 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     97SET Geant4_home=/usr/local/geant4/8.2
    9898:end_if_platform_9
    99 SET obuild_platform_result=
    100 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    101 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    102 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    103 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    104 cd "%obuild_pwd_snovis_0%"
    105 SET obuild_pwd_snovis_0=
    106 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    107 SET Geant4_home=/usr/local/geant4/8.2
    108 :end_if_platform_11
    10999SET obuild_platform_result=
    110100IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
     
    144134SET NeutronHPCrossSections=%Geant4_home%\data\G4NDL3.10
    145135
    146 IF DEFINED PATH GOTO else_if_path_snovis_17
     136IF DEFINED PATH GOTO else_if_path_snovis_15
    147137  SET PATH=%obuild_snovis_path%\%obuild_dir_bin%
    148   GOTO end_if_path_snovis_17
    149 :else_if_path_snovis_17
     138  GOTO end_if_path_snovis_15
     139:else_if_path_snovis_15
    150140  SET PATH=%PATH%;%obuild_snovis_path%\%obuild_dir_bin%
    151 :end_if_path_snovis_17
     141:end_if_path_snovis_15
    152142
    153143:obuild_return
  • snovis/trunk/obuild/setup.csh

    r101 r134  
    127127  exit
    128128endif
     129set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
     130if ( ${obuild_platform_result} == yes ) then
     131set snova_platform="Darwin"
     132endif
     133unset obuild_platform_result
     134if ( "${obuild_platform_exe}" == "" ) then
     135  echo "Variable obuild_platform_exe not defined."
     136  exit
     137endif
    129138set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    130139if ( ${obuild_platform_result} == yes ) then
     
    136145  exit
    137146endif
    138 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    139 if ( ${obuild_platform_result} == yes ) then
    140 set bhep_platform="Darwin"
    141 endif
    142 unset obuild_platform_result
    143 if ( "${obuild_platform_exe}" == "" ) then
    144   echo "Variable obuild_platform_exe not defined."
    145   exit
    146 endif
    147147set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    148148if ( ${obuild_platform_result} == yes ) then
    149149set snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    150 endif
    151 unset obuild_platform_result
    152 if ( "${obuild_platform_exe}" == "" ) then
    153   echo "Variable obuild_platform_exe not defined."
    154   exit
    155 endif
    156 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    157 if ( ${obuild_platform_result} == yes ) then
    158 set snova_platform="Darwin"
    159150endif
    160151unset obuild_platform_result
  • snovis/trunk/obuild/setup.sh

    r101 r134  
    114114  return
    115115fi
     116obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     117if [ ${obuild_platform_result} = yes ] ; then
     118snova_platform="Darwin"
     119fi
     120unset obuild_platform_result
     121if [ "${obuild_platform_exe}" = "" ] ; then
     122  echo "Variable obuild_platform_exe not defined."
     123  return
     124fi
    116125obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    117126if [ ${obuild_platform_result} = yes ] ; then
     
    123132  return
    124133fi
    125 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    126 if [ ${obuild_platform_result} = yes ] ; then
    127 bhep_platform="Darwin"
    128 fi
    129 unset obuild_platform_result
    130 if [ "${obuild_platform_exe}" = "" ] ; then
    131   echo "Variable obuild_platform_exe not defined."
    132   return
    133 fi
    134134obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    135135if [ ${obuild_platform_result} = yes ] ; then
    136136snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    137 fi
    138 unset obuild_platform_result
    139 if [ "${obuild_platform_exe}" = "" ] ; then
    140   echo "Variable obuild_platform_exe not defined."
    141   return
    142 fi
    143 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    144 if [ ${obuild_platform_result} = yes ] ; then
    145 snova_platform="Darwin"
    146137fi
    147138unset obuild_platform_result
  • snovis/trunk/obuild/sh/build

    r101 r134  
    141141fi
    142142
     143if [ "${obuild_group}" = main ] ; then
     144if [ "${obuild_do_mains}" = yes ] ; then
     145  if [ -e ./sh/build_darwin_app_snovis_session ] ; then
     146    ./sh/build_darwin_app_snovis_session ${obuild_args}
     147    obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
     148  fi
     149fi
     150fi
     151
    143152if [ -e ./sh/install ] ; then
    144153  ./sh/install
  • snovis/trunk/obuild/sh/build_app_prog_snova

    r101 r134  
    107107  exit
    108108fi
     109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     110if [ ${obuild_platform_result} = yes ] ; then
     111snova_platform="Darwin"
     112fi
     113unset obuild_platform_result
     114if [ "${obuild_platform_exe}" = "" ] ; then
     115  echo "Variable obuild_platform_exe not defined."
     116  exit
     117fi
    109118obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    110119if [ ${obuild_platform_result} = yes ] ; then
     
    116125  exit
    117126fi
    118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    119 if [ ${obuild_platform_result} = yes ] ; then
    120 bhep_platform="Darwin"
    121 fi
    122 unset obuild_platform_result
    123 if [ "${obuild_platform_exe}" = "" ] ; then
    124   echo "Variable obuild_platform_exe not defined."
    125   exit
    126 fi
    127127obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128128if [ ${obuild_platform_result} = yes ] ; then
    129129snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    130 fi
    131 unset obuild_platform_result
    132 if [ "${obuild_platform_exe}" = "" ] ; then
    133   echo "Variable obuild_platform_exe not defined."
    134   exit
    135 fi
    136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    137 if [ ${obuild_platform_result} = yes ] ; then
    138 snova_platform="Darwin"
    139130fi
    140131unset obuild_platform_result
  • snovis/trunk/obuild/sh/build_app_snovis_session

    r101 r134  
    107107  exit
    108108fi
     109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     110if [ ${obuild_platform_result} = yes ] ; then
     111snova_platform="Darwin"
     112fi
     113unset obuild_platform_result
     114if [ "${obuild_platform_exe}" = "" ] ; then
     115  echo "Variable obuild_platform_exe not defined."
     116  exit
     117fi
    109118obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    110119if [ ${obuild_platform_result} = yes ] ; then
     
    116125  exit
    117126fi
    118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    119 if [ ${obuild_platform_result} = yes ] ; then
    120 bhep_platform="Darwin"
    121 fi
    122 unset obuild_platform_result
    123 if [ "${obuild_platform_exe}" = "" ] ; then
    124   echo "Variable obuild_platform_exe not defined."
    125   exit
    126 fi
    127127obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128128if [ ${obuild_platform_result} = yes ] ; then
    129129snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    130 fi
    131 unset obuild_platform_result
    132 if [ "${obuild_platform_exe}" = "" ] ; then
    133   echo "Variable obuild_platform_exe not defined."
    134   exit
    135 fi
    136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    137 if [ ${obuild_platform_result} = yes ] ; then
    138 snova_platform="Darwin"
    139130fi
    140131unset obuild_platform_result
  • snovis/trunk/obuild/sh/build_dll_snovis

    r101 r134  
    107107  exit
    108108fi
     109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     110if [ ${obuild_platform_result} = yes ] ; then
     111snova_platform="Darwin"
     112fi
     113unset obuild_platform_result
     114if [ "${obuild_platform_exe}" = "" ] ; then
     115  echo "Variable obuild_platform_exe not defined."
     116  exit
     117fi
    109118obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    110119if [ ${obuild_platform_result} = yes ] ; then
     
    116125  exit
    117126fi
    118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    119 if [ ${obuild_platform_result} = yes ] ; then
    120 bhep_platform="Darwin"
    121 fi
    122 unset obuild_platform_result
    123 if [ "${obuild_platform_exe}" = "" ] ; then
    124   echo "Variable obuild_platform_exe not defined."
    125   exit
    126 fi
    127127obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128128if [ ${obuild_platform_result} = yes ] ; then
    129129snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    130 fi
    131 unset obuild_platform_result
    132 if [ "${obuild_platform_exe}" = "" ] ; then
    133   echo "Variable obuild_platform_exe not defined."
    134   exit
    135 fi
    136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    137 if [ ${obuild_platform_result} = yes ] ; then
    138 snova_platform="Darwin"
    139130fi
    140131unset obuild_platform_result
  • snovis/trunk/obuild/sh/check_foreigns

    r101 r134  
    7777  exit
    7878fi
     79obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     80if [ ${obuild_platform_result} = yes ] ; then
     81snova_platform="Darwin"
     82fi
     83unset obuild_platform_result
     84if [ "${obuild_platform_exe}" = "" ] ; then
     85  echo "Variable obuild_platform_exe not defined."
     86  exit
     87fi
    7988obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    8089if [ ${obuild_platform_result} = yes ] ; then
     
    8695  exit
    8796fi
    88 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    89 if [ ${obuild_platform_result} = yes ] ; then
    90 bhep_platform="Darwin"
    91 fi
    92 unset obuild_platform_result
    93 if [ "${obuild_platform_exe}" = "" ] ; then
    94   echo "Variable obuild_platform_exe not defined."
    95   exit
    96 fi
    9797obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    9898if [ ${obuild_platform_result} = yes ] ; then
    9999snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    100 fi
    101 unset obuild_platform_result
    102 if [ "${obuild_platform_exe}" = "" ] ; then
    103   echo "Variable obuild_platform_exe not defined."
    104   exit
    105 fi
    106 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    107 if [ ${obuild_platform_result} = yes ] ; then
    108 snova_platform="Darwin"
    109100fi
    110101unset obuild_platform_result
  • snovis/trunk/obuild/this.obuild

    r101 r134  
    122122    </application>
    123123
     124    <reference package="snovis" version="v1r1" file="obuild/darwin_app.obuild"/>
     125
    124126    <setup>
    125127      <exec from="OnX"/>
Note: See TracChangeset for help on using the changeset viewer.