Changeset 276 for snovis


Ignore:
Timestamp:
Mar 1, 2007, 11:12:01 AM (15 years ago)
Author:
barrand
Message:
 
Location:
snovis/trunk/obuild
Files:
20 edited

Legend:

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

    r267 r276  
    9090
    9191  IF "%OBUILD_DIR_BIN%" == "" (
    92     SET obuild_dir_bin=%obuild_platform%_obuild
     92    SET obuild_dir_bin=bin_obuild
    9393  ) ELSE (
    9494    SET obuild_dir_bin=%OBUILD_DIR_BIN%
  • snovis/trunk/obuild/DOS/build_app_prog_snovis.bat

    r246 r276  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    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% Windows_NT`) 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_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     107cd "%obuild_snovis_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snovis_0%"
    99111SET obuild_pwd_snovis_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     118cd "%obuild_snovis_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snovis_0%"
     122SET obuild_pwd_snovis_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     129cd "%obuild_snovis_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snovis_0%"
    109133SET obuild_pwd_snovis_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    118 cd "%obuild_pwd_snovis_0%"
    119 SET obuild_pwd_snovis_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    125 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snovis_0%"
    129 SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET OSC_home=/usr/local/OpenScientist/v16r0
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snovis_0%"
    149 SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    155 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snovis_0%"
    159 SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    165 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    166 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snovis_0%"
    169 SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    177 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snovis_0%"
    181 SET obuild_pwd_snovis_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    187 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snovis_0%"
    191 SET obuild_pwd_snovis_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snovis_0%"
    201 SET obuild_pwd_snovis_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    207 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snovis_0%"
    211 SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    218 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snovis_0%"
    222 SET obuild_pwd_snovis_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    228 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snovis_0%"
    232 SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snovis_0%"
    242 SET obuild_pwd_snovis_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    248 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snovis_0%"
    252 SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    259 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snovis_0%"
    263 SET obuild_pwd_snovis_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    269 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snovis_0%"
    273 SET obuild_pwd_snovis_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_app_prog_snovis_sh_22
    282 :else_if_db_build_app_prog_snovis_sh_22
     141  GOTO end_if_db_build_app_prog_snovis_sh_4
     142:else_if_db_build_app_prog_snovis_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_app_prog_snovis_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_23
     144:end_if_db_build_app_prog_snovis_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_app_prog_snovis_sh_23
    289 :else_if_opt_build_app_prog_snovis_sh_23
     148  GOTO end_if_opt_build_app_prog_snovis_sh_5
     149:else_if_opt_build_app_prog_snovis_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_app_prog_snovis_sh_23
     151:end_if_opt_build_app_prog_snovis_sh_5
    292152
    293153
     
    374234SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
    375235SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
    376 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    377 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    378 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    379 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    380 cd "%obuild_pwd_snovis_0%"
    381 SET obuild_pwd_snovis_0=
    382 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    383 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    384 :end_if_platform_30
    385 SET obuild_platform_result=
    386 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    387 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    388 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    389 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    390 cd "%obuild_pwd_snovis_0%"
    391 SET obuild_pwd_snovis_0=
    392 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    393 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    394 :end_if_platform_31
    395 SET obuild_platform_result=
    396 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    397 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    398 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    399 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    400 cd "%obuild_pwd_snovis_0%"
    401 SET obuild_pwd_snovis_0=
    402 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    403 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include
    404 :end_if_platform_32
    405 SET obuild_platform_result=
    406 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    407 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    408 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    409 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    410 cd "%obuild_pwd_snovis_0%"
    411 SET obuild_pwd_snovis_0=
    412 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    413 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include
    414 :end_if_platform_33
    415 SET obuild_platform_result=
    416 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    417 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    418 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    419 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    420 cd "%obuild_pwd_snovis_0%"
    421 SET obuild_pwd_snovis_0=
    422 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    423 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab
    424 :end_if_platform_34
    425 SET obuild_platform_result=
    426236
    427237IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snovis"
     
    440250cd "%obuild_snovis_path%\%obuild_dir_bin%"
    441251IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    442 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    443 cd "%obuild_pwd_snovis_0%"
    444 SET obuild_pwd_snovis_0=
    445 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
    446 SET obuild_cxx_linker_command=c++
    447 :end_if_platform_36
    448 SET obuild_platform_result=
    449 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    450 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    451 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    452 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    453 cd "%obuild_pwd_snovis_0%"
    454 SET obuild_pwd_snovis_0=
    455 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
    456 SET obuild_cxx_linker_command=c++
    457 :end_if_platform_37
    458 SET obuild_platform_result=
    459 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    460 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    461 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    462 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    463 cd "%obuild_pwd_snovis_0%"
    464 SET obuild_pwd_snovis_0=
    465 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    466 SET obuild_cxx_linker_command=cxx
    467 :end_if_platform_38
    468 SET obuild_platform_result=
    469 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    470 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    471 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    472 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    473 cd "%obuild_pwd_snovis_0%"
    474 SET obuild_pwd_snovis_0=
    475 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
     252FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     253cd "%obuild_pwd_snovis_0%"
     254SET obuild_pwd_snovis_0=
     255IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    476256SET obuild_cxx_linker_command=link.exe
    477 :end_if_platform_39
     257:end_if_platform_13
    478258SET obuild_platform_result=
    479259IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    482262cd "%obuild_snovis_path%\%obuild_dir_bin%"
    483263IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    484 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    485 cd "%obuild_pwd_snovis_0%"
    486 SET obuild_pwd_snovis_0=
    487 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    488 SET obuild_cxx_linker_debug=-g
    489 :end_if_platform_40
    490 SET obuild_platform_result=
    491 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    492 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    493 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    494 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    495 cd "%obuild_pwd_snovis_0%"
    496 SET obuild_pwd_snovis_0=
    497 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    498 SET obuild_cxx_linker_debug=-g
    499 :end_if_platform_41
    500 SET obuild_platform_result=
    501 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    502 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    503 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    504 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    505 cd "%obuild_pwd_snovis_0%"
    506 SET obuild_pwd_snovis_0=
    507 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    508 SET obuild_cxx_linker_debug=-g
    509 :end_if_platform_42
    510 SET obuild_platform_result=
    511 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    512 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    513 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    514 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    515 cd "%obuild_pwd_snovis_0%"
    516 SET obuild_pwd_snovis_0=
    517 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
     264FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     265cd "%obuild_pwd_snovis_0%"
     266SET obuild_pwd_snovis_0=
     267IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    518268SET obuild_cxx_linker_debug=/DEBUG
    519 :end_if_platform_43
    520 SET obuild_platform_result=
    521 
    522 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    523 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    524 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    525 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    526 cd "%obuild_pwd_snovis_0%"
    527 SET obuild_pwd_snovis_0=
    528 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
     269:end_if_platform_14
     270SET obuild_platform_result=
     271
     272FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     273cd "%obuild_snovis_path%\%obuild_dir_bin%"
     274IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     275FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     276cd "%obuild_pwd_snovis_0%"
     277SET obuild_pwd_snovis_0=
     278IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    529279SET obuild_cxx_linker_options=/nologo
    530 :end_if_platform_44
    531 SET obuild_platform_result=
    532 
    533 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_45
     280:end_if_platform_15
     281SET obuild_platform_result=
     282
     283IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snovis_sh_16
    534284  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    535   GOTO end_if_db_build_app_prog_snovis_sh_45
    536 :else_if_db_build_app_prog_snovis_sh_45
     285  GOTO end_if_db_build_app_prog_snovis_sh_16
     286:else_if_db_build_app_prog_snovis_sh_16
    537287  SET obuild_cxx_linker_debug_local=
    538 :end_if_db_build_app_prog_snovis_sh_45
    539 
    540 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_46
     288:end_if_db_build_app_prog_snovis_sh_16
     289
     290IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snovis_sh_17
    541291  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    542   GOTO end_if_opt_build_app_prog_snovis_sh_46
    543 :else_if_opt_build_app_prog_snovis_sh_46
     292  GOTO end_if_opt_build_app_prog_snovis_sh_17
     293:else_if_opt_build_app_prog_snovis_sh_17
    544294  SET obuild_cxx_linker_optimize_local=
    545 :end_if_opt_build_app_prog_snovis_sh_46
    546 
    547 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    548 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    549 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    550 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    551 cd "%obuild_pwd_snovis_0%"
    552 SET obuild_pwd_snovis_0=
    553 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    554 SET obuild_cxx_linker_options=%obuild_cxx_linker_options% -bind_at_load -multiply_defined suppress
    555 :end_if_platform_47
    556 SET obuild_platform_result=
     295:end_if_opt_build_app_prog_snovis_sh_17
    557296
    558297SET obuild_linked_libraries="%obuild_snovis_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
     
    566305cd "%obuild_snovis_path%\%obuild_dir_bin%"
    567306IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    568 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    569 cd "%obuild_pwd_snovis_0%"
    570 SET obuild_pwd_snovis_0=
    571 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
    572 SET obuild_linked_libraries=%obuild_linked_libraries% -L${HDF5_home}/lib -lhdf5.0.0.0
    573 :end_if_platform_55
    574 SET obuild_platform_result=
    575 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    576 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    577 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    578 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    579 cd "%obuild_pwd_snovis_0%"
    580 SET obuild_pwd_snovis_0=
    581 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
    582 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
    583 :end_if_platform_56
    584 SET obuild_platform_result=
    585 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    586 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    587 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    588 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    589 cd "%obuild_pwd_snovis_0%"
    590 SET obuild_pwd_snovis_0=
    591 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
    592 SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1
    593 :end_if_platform_57
    594 SET obuild_platform_result=
    595 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    596 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    597 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    598 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    599 cd "%obuild_pwd_snovis_0%"
    600 SET obuild_pwd_snovis_0=
    601 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
    602 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl
    603 :end_if_platform_58
    604 SET obuild_platform_result=
    605 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    606 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    607 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    608 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    609 cd "%obuild_pwd_snovis_0%"
    610 SET obuild_pwd_snovis_0=
    611 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
    612 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils  -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils
    613 :end_if_platform_59
    614 SET obuild_platform_result=
    615 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    616 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    617 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    618 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    619 cd "%obuild_pwd_snovis_0%"
    620 SET obuild_pwd_snovis_0=
    621 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_60
    622 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
    623 :end_if_platform_60
    624 SET obuild_platform_result=
    625 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    626 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    627 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    628 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    629 cd "%obuild_pwd_snovis_0%"
    630 SET obuild_pwd_snovis_0=
    631 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61
    632 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
    633 :end_if_platform_61
    634 SET obuild_platform_result=
    635 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    636 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    637 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    638 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    639 cd "%obuild_pwd_snovis_0%"
    640 SET obuild_pwd_snovis_0=
    641 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62
    642 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    643 :end_if_platform_62
    644 SET obuild_platform_result=
    645 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    646 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    647 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    648 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    649 cd "%obuild_pwd_snovis_0%"
    650 SET obuild_pwd_snovis_0=
    651 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63
     307FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     308cd "%obuild_pwd_snovis_0%"
     309SET obuild_pwd_snovis_0=
     310IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    652311SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    653 :end_if_platform_63
    654 SET obuild_platform_result=
    655 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    656 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    657 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    658 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    659 cd "%obuild_pwd_snovis_0%"
    660 SET obuild_pwd_snovis_0=
    661 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64
    662 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    663 :end_if_platform_64
     312:end_if_platform_25
    664313SET obuild_platform_result=
    665314
  • snovis/trunk/obuild/DOS/build_dll_G4Lab.bat

    r246 r276  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    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% Windows_NT`) 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_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     107cd "%obuild_snovis_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snovis_0%"
    99111SET obuild_pwd_snovis_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     118cd "%obuild_snovis_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snovis_0%"
     122SET obuild_pwd_snovis_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     129cd "%obuild_snovis_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snovis_0%"
    109133SET obuild_pwd_snovis_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    118 cd "%obuild_pwd_snovis_0%"
    119 SET obuild_pwd_snovis_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    125 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snovis_0%"
    129 SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET OSC_home=/usr/local/OpenScientist/v16r0
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snovis_0%"
    149 SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    155 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snovis_0%"
    159 SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    165 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    166 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snovis_0%"
    169 SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    177 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snovis_0%"
    181 SET obuild_pwd_snovis_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    187 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snovis_0%"
    191 SET obuild_pwd_snovis_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snovis_0%"
    201 SET obuild_pwd_snovis_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    207 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snovis_0%"
    211 SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    218 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snovis_0%"
    222 SET obuild_pwd_snovis_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    228 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snovis_0%"
    232 SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snovis_0%"
    242 SET obuild_pwd_snovis_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    248 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snovis_0%"
    252 SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    259 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snovis_0%"
    263 SET obuild_pwd_snovis_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    269 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snovis_0%"
    273 SET obuild_pwd_snovis_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_G4Lab_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_G4Lab_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_dll_G4Lab_sh_22
    282 :else_if_db_build_dll_G4Lab_sh_22
     141  GOTO end_if_db_build_dll_G4Lab_sh_4
     142:else_if_db_build_dll_G4Lab_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_dll_G4Lab_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_G4Lab_sh_23
     144:end_if_db_build_dll_G4Lab_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_G4Lab_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_dll_G4Lab_sh_23
    289 :else_if_opt_build_dll_G4Lab_sh_23
     148  GOTO end_if_opt_build_dll_G4Lab_sh_5
     149:else_if_opt_build_dll_G4Lab_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_dll_G4Lab_sh_23
     151:end_if_opt_build_dll_G4Lab_sh_5
    292152
    293153
    294154
    295155SET obuild_cxx_includes=/I"%obuild_snovis_path%\source"
    296 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    297 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    298 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    299 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    300 cd "%obuild_pwd_snovis_0%"
    301 SET obuild_pwd_snovis_0=
    302 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    303 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp
    304 :end_if_platform_25
    305 SET obuild_platform_result=
    306 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    307 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    308 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    309 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    310 cd "%obuild_pwd_snovis_0%"
    311 SET obuild_pwd_snovis_0=
    312 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    313 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include
    314 :end_if_platform_26
    315 SET obuild_platform_result=
    316 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    317 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    318 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    319 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    320 cd "%obuild_pwd_snovis_0%"
    321 SET obuild_pwd_snovis_0=
    322 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    323 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab
    324 :end_if_platform_27
    325 SET obuild_platform_result=
    326 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    327 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    328 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    329 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    330 cd "%obuild_pwd_snovis_0%"
    331 SET obuild_pwd_snovis_0=
    332 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    333 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include
    334 :end_if_platform_28
    335 SET obuild_platform_result=
    336156
    337157IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_G4Lab" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_G4Lab"
     
    349169FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    350170cd "%obuild_snovis_path%\%obuild_dir_bin%"
    351 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    352 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    353 cd "%obuild_pwd_snovis_0%"
    354 SET obuild_pwd_snovis_0=
    355 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    356 SET obuild_linked_libraries=-L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils  -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils
    357 :end_if_platform_30
    358 SET obuild_platform_result=
    359 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    360 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    361 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    362 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    363 cd "%obuild_pwd_snovis_0%"
    364 SET obuild_pwd_snovis_0=
    365 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    366 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl
    367 :end_if_platform_31
    368 SET obuild_platform_result=
    369 
    370 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    371 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    372171IF EXIST .\dll_G4Lab\tmp_objs DEL .\dll_G4Lab\tmp_objs
    373172FOR %%f IN (.\dll_G4Lab\*.obj) DO ECHO %%f >> .\dll_G4Lab\tmp_objs
  • snovis/trunk/obuild/DOS/build_dll_snovis.bat

    r244 r276  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    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% Windows_NT`) 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_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     107cd "%obuild_snovis_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snovis_0%"
    99111SET obuild_pwd_snovis_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     118cd "%obuild_snovis_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snovis_0%"
     122SET obuild_pwd_snovis_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     129cd "%obuild_snovis_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snovis_0%"
    109133SET obuild_pwd_snovis_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    118 cd "%obuild_pwd_snovis_0%"
    119 SET obuild_pwd_snovis_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    125 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snovis_0%"
    129 SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET OSC_home=/usr/local/OpenScientist/v16r0
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snovis_0%"
    149 SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    155 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snovis_0%"
    159 SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    165 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    166 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snovis_0%"
    169 SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    177 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snovis_0%"
    181 SET obuild_pwd_snovis_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    187 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snovis_0%"
    191 SET obuild_pwd_snovis_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snovis_0%"
    201 SET obuild_pwd_snovis_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    207 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snovis_0%"
    211 SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    218 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snovis_0%"
    222 SET obuild_pwd_snovis_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    228 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snovis_0%"
    232 SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snovis_0%"
    242 SET obuild_pwd_snovis_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    248 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snovis_0%"
    252 SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    259 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snovis_0%"
    263 SET obuild_pwd_snovis_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    269 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snovis_0%"
    273 SET obuild_pwd_snovis_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_dll_snovis_sh_22
    282 :else_if_db_build_dll_snovis_sh_22
     141  GOTO end_if_db_build_dll_snovis_sh_4
     142:else_if_db_build_dll_snovis_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_dll_snovis_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_23
     144:end_if_db_build_dll_snovis_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_dll_snovis_sh_23
    289 :else_if_opt_build_dll_snovis_sh_23
     148  GOTO end_if_opt_build_dll_snovis_sh_5
     149:else_if_opt_build_dll_snovis_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_dll_snovis_sh_23
    292 
    293 
    294 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    295 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    296 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    297 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    298 cd "%obuild_pwd_snovis_0%"
    299 SET obuild_pwd_snovis_0=
    300 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
    301 SET obuild_cxx_macros=%obuild_cxx_macros% /DAPPLE_GL
    302 :end_if_platform_24
    303 SET obuild_platform_result=
     151:end_if_opt_build_dll_snovis_sh_5
     152
    304153
    305154
    306155SET obuild_cxx_includes=/I"%obuild_snovis_path%"
    307156SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snovis_path%\source"
    308 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    309 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    310 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    311 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    312 cd "%obuild_pwd_snovis_0%"
    313 SET obuild_pwd_snovis_0=
    314 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    315 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    316 :end_if_platform_27
    317 SET obuild_platform_result=
    318 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    319 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    320 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    321 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    322 cd "%obuild_pwd_snovis_0%"
    323 SET obuild_pwd_snovis_0=
    324 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    325 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    326 :end_if_platform_28
    327 SET obuild_platform_result=
    328 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    329 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    330 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    331 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    332 cd "%obuild_pwd_snovis_0%"
    333 SET obuild_pwd_snovis_0=
    334 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    335 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp
    336 :end_if_platform_29
    337 SET obuild_platform_result=
    338 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    339 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    340 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    341 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    342 cd "%obuild_pwd_snovis_0%"
    343 SET obuild_pwd_snovis_0=
    344 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    345 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include
    346 :end_if_platform_30
    347 SET obuild_platform_result=
    348 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    349 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    350 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    351 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    352 cd "%obuild_pwd_snovis_0%"
    353 SET obuild_pwd_snovis_0=
    354 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    355 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab
    356 :end_if_platform_31
    357 SET obuild_platform_result=
    358 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    359 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    360 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    361 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    362 cd "%obuild_pwd_snovis_0%"
    363 SET obuild_pwd_snovis_0=
    364 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    365 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include
    366 :end_if_platform_32
    367 SET obuild_platform_result=
    368 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    369 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    370 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    371 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    372 cd "%obuild_pwd_snovis_0%"
    373 SET obuild_pwd_snovis_0=
    374 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    375 SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
    376 :end_if_platform_33
    377 SET obuild_platform_result=
    378 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    379 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    380 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    381 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    382 cd "%obuild_pwd_snovis_0%"
    383 SET obuild_pwd_snovis_0=
    384 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    385 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
    386 :end_if_platform_34
    387 SET obuild_platform_result=
    388157
    389158IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis"
     
    415184cd "%obuild_snovis_path%\%obuild_dir_bin%"
    416185IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    417 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    418 cd "%obuild_pwd_snovis_0%"
    419 SET obuild_pwd_snovis_0=
    420 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
    421 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
    422 :end_if_platform_39
    423 SET obuild_platform_result=
    424 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    425 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    426 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    427 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    428 cd "%obuild_pwd_snovis_0%"
    429 SET obuild_pwd_snovis_0=
    430 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    431 SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1
    432 :end_if_platform_40
    433 SET obuild_platform_result=
    434 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    435 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    436 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    437 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    438 cd "%obuild_pwd_snovis_0%"
    439 SET obuild_pwd_snovis_0=
    440 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    441 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils  -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils
    442 :end_if_platform_41
    443 SET obuild_platform_result=
    444 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    445 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    446 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    447 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    448 cd "%obuild_pwd_snovis_0%"
    449 SET obuild_pwd_snovis_0=
    450 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    451 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl
    452 :end_if_platform_42
    453 SET obuild_platform_result=
    454 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    455 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    456 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    457 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    458 cd "%obuild_pwd_snovis_0%"
    459 SET obuild_pwd_snovis_0=
    460 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    461 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
    462 :end_if_platform_43
    463 SET obuild_platform_result=
    464 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    465 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    466 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    467 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    468 cd "%obuild_pwd_snovis_0%"
    469 SET obuild_pwd_snovis_0=
    470 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    471 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
    472 :end_if_platform_44
    473 SET obuild_platform_result=
    474 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    475 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    476 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    477 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    478 cd "%obuild_pwd_snovis_0%"
    479 SET obuild_pwd_snovis_0=
    480 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    481 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    482 :end_if_platform_45
    483 SET obuild_platform_result=
    484 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    485 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    486 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    487 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    488 cd "%obuild_pwd_snovis_0%"
    489 SET obuild_pwd_snovis_0=
    490 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
     186FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     187cd "%obuild_pwd_snovis_0%"
     188SET obuild_pwd_snovis_0=
     189IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    491190SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    492 :end_if_platform_46
    493 SET obuild_platform_result=
    494 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    495 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    496 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    497 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    498 cd "%obuild_pwd_snovis_0%"
    499 SET obuild_pwd_snovis_0=
    500 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    501 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    502 :end_if_platform_47
     191:end_if_platform_12
    503192SET obuild_platform_result=
    504193
  • snovis/trunk/obuild/DOS/build_lib_G4LabCore.bat

    r246 r276  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    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% Windows_NT`) 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_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     107cd "%obuild_snovis_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snovis_0%"
    99111SET obuild_pwd_snovis_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     118cd "%obuild_snovis_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snovis_0%"
     122SET obuild_pwd_snovis_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     129cd "%obuild_snovis_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snovis_0%"
    109133SET obuild_pwd_snovis_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    118 cd "%obuild_pwd_snovis_0%"
    119 SET obuild_pwd_snovis_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    125 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snovis_0%"
    129 SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET OSC_home=/usr/local/OpenScientist/v16r0
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snovis_0%"
    149 SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    155 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snovis_0%"
    159 SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    165 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    166 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snovis_0%"
    169 SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    177 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snovis_0%"
    181 SET obuild_pwd_snovis_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    187 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snovis_0%"
    191 SET obuild_pwd_snovis_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snovis_0%"
    201 SET obuild_pwd_snovis_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    207 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snovis_0%"
    211 SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    218 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snovis_0%"
    222 SET obuild_pwd_snovis_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    228 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snovis_0%"
    232 SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snovis_0%"
    242 SET obuild_pwd_snovis_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    248 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snovis_0%"
    252 SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    259 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snovis_0%"
    263 SET obuild_pwd_snovis_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    269 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snovis_0%"
    273 SET obuild_pwd_snovis_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_lib_G4LabCore_sh_22
    282 :else_if_db_build_lib_G4LabCore_sh_22
     141  GOTO end_if_db_build_lib_G4LabCore_sh_4
     142:else_if_db_build_lib_G4LabCore_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_lib_G4LabCore_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_23
     144:end_if_db_build_lib_G4LabCore_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_lib_G4LabCore_sh_23
    289 :else_if_opt_build_lib_G4LabCore_sh_23
     148  GOTO end_if_opt_build_lib_G4LabCore_sh_5
     149:else_if_opt_build_lib_G4LabCore_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_lib_G4LabCore_sh_23
    292 
    293 
    294 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    295 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    296 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    297 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    298 cd "%obuild_pwd_snovis_0%"
    299 SET obuild_pwd_snovis_0=
    300 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
    301 SET obuild_cxx_macros=%obuild_cxx_macros% /DAPPLE_GL
    302 :end_if_platform_24
    303 SET obuild_platform_result=
     151:end_if_opt_build_lib_G4LabCore_sh_5
     152
    304153
    305154
    306155SET obuild_cxx_includes=/I"%obuild_snovis_path%\source"
    307 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    308 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    309 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    310 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    311 cd "%obuild_pwd_snovis_0%"
    312 SET obuild_pwd_snovis_0=
    313 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    314 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    315 :end_if_platform_26
    316 SET obuild_platform_result=
    317 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    318 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    319 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    320 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    321 cd "%obuild_pwd_snovis_0%"
    322 SET obuild_pwd_snovis_0=
    323 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    324 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    325 :end_if_platform_27
    326 SET obuild_platform_result=
    327 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    328 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    329 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    330 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    331 cd "%obuild_pwd_snovis_0%"
    332 SET obuild_pwd_snovis_0=
    333 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    334 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp
    335 :end_if_platform_28
    336 SET obuild_platform_result=
    337 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    338 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    339 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    340 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    341 cd "%obuild_pwd_snovis_0%"
    342 SET obuild_pwd_snovis_0=
    343 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    344 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include
    345 :end_if_platform_29
    346 SET obuild_platform_result=
    347 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    348 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    349 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    350 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    351 cd "%obuild_pwd_snovis_0%"
    352 SET obuild_pwd_snovis_0=
    353 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    354 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab
    355 :end_if_platform_30
    356 SET obuild_platform_result=
    357 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    358 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    359 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    360 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    361 cd "%obuild_pwd_snovis_0%"
    362 SET obuild_pwd_snovis_0=
    363 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    364 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include
    365 :end_if_platform_31
    366 SET obuild_platform_result=
    367 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    368 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    369 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    370 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    371 cd "%obuild_pwd_snovis_0%"
    372 SET obuild_pwd_snovis_0=
    373 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    374 SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
    375 :end_if_platform_32
    376 SET obuild_platform_result=
    377 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    378 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    379 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    380 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    381 cd "%obuild_pwd_snovis_0%"
    382 SET obuild_pwd_snovis_0=
    383 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    384 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
    385 :end_if_platform_33
    386 SET obuild_platform_result=
    387156
    388157IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabCore"
     
    503272cd "%obuild_snovis_path%\%obuild_dir_bin%"
    504273IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    505 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    506 cd "%obuild_pwd_snovis_0%"
    507 SET obuild_pwd_snovis_0=
    508 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
    509 SET obuild_cxx_linker_command=c++
    510 :end_if_platform_52
    511 SET obuild_platform_result=
    512 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    513 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    514 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    515 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    516 cd "%obuild_pwd_snovis_0%"
    517 SET obuild_pwd_snovis_0=
    518 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
    519 SET obuild_cxx_linker_command=c++
    520 :end_if_platform_53
    521 SET obuild_platform_result=
    522 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    523 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    524 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    525 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    526 cd "%obuild_pwd_snovis_0%"
    527 SET obuild_pwd_snovis_0=
    528 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
    529 SET obuild_cxx_linker_command=cxx
    530 :end_if_platform_54
    531 SET obuild_platform_result=
    532 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    533 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    534 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    535 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    536 cd "%obuild_pwd_snovis_0%"
    537 SET obuild_pwd_snovis_0=
    538 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
     274FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     275cd "%obuild_pwd_snovis_0%"
     276SET obuild_pwd_snovis_0=
     277IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    539278SET obuild_cxx_linker_command=link.exe
    540 :end_if_platform_55
     279:end_if_platform_25
    541280SET obuild_platform_result=
    542281IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    545284cd "%obuild_snovis_path%\%obuild_dir_bin%"
    546285IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    547 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    548 cd "%obuild_pwd_snovis_0%"
    549 SET obuild_pwd_snovis_0=
    550 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
    551 SET obuild_cxx_linker_debug=-g
    552 :end_if_platform_56
    553 SET obuild_platform_result=
    554 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    555 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    556 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    557 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    558 cd "%obuild_pwd_snovis_0%"
    559 SET obuild_pwd_snovis_0=
    560 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
    561 SET obuild_cxx_linker_debug=-g
    562 :end_if_platform_57
    563 SET obuild_platform_result=
    564 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    565 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    566 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    567 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    568 cd "%obuild_pwd_snovis_0%"
    569 SET obuild_pwd_snovis_0=
    570 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
    571 SET obuild_cxx_linker_debug=-g
    572 :end_if_platform_58
    573 SET obuild_platform_result=
    574 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    575 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    576 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    577 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    578 cd "%obuild_pwd_snovis_0%"
    579 SET obuild_pwd_snovis_0=
    580 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
     286FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     287cd "%obuild_pwd_snovis_0%"
     288SET obuild_pwd_snovis_0=
     289IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    581290SET obuild_cxx_linker_debug=/DEBUG
    582 :end_if_platform_59
    583 SET obuild_platform_result=
    584 
    585 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    586 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    587 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    588 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    589 cd "%obuild_pwd_snovis_0%"
    590 SET obuild_pwd_snovis_0=
    591 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_60
     291:end_if_platform_26
     292SET obuild_platform_result=
     293
     294FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     295cd "%obuild_snovis_path%\%obuild_dir_bin%"
     296IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     297FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     298cd "%obuild_pwd_snovis_0%"
     299SET obuild_pwd_snovis_0=
     300IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    592301SET obuild_cxx_linker_options=/nologo
    593 :end_if_platform_60
    594 SET obuild_platform_result=
    595 
    596 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_61
     302:end_if_platform_27
     303SET obuild_platform_result=
     304
     305IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabCore_sh_28
    597306  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    598   GOTO end_if_db_build_lib_G4LabCore_sh_61
    599 :else_if_db_build_lib_G4LabCore_sh_61
     307  GOTO end_if_db_build_lib_G4LabCore_sh_28
     308:else_if_db_build_lib_G4LabCore_sh_28
    600309  SET obuild_cxx_linker_debug_local=
    601 :end_if_db_build_lib_G4LabCore_sh_61
    602 
    603 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_62
     310:end_if_db_build_lib_G4LabCore_sh_28
     311
     312IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabCore_sh_29
    604313  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    605   GOTO end_if_opt_build_lib_G4LabCore_sh_62
    606 :else_if_opt_build_lib_G4LabCore_sh_62
     314  GOTO end_if_opt_build_lib_G4LabCore_sh_29
     315:else_if_opt_build_lib_G4LabCore_sh_29
    607316  SET obuild_cxx_linker_optimize_local=
    608 :end_if_opt_build_lib_G4LabCore_sh_62
     317:end_if_opt_build_lib_G4LabCore_sh_29
    609318
    610319FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
  • snovis/trunk/obuild/DOS/build_lib_G4LabUIOnX.bat

    r246 r276  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    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% Windows_NT`) 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_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     107cd "%obuild_snovis_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snovis_0%"
    99111SET obuild_pwd_snovis_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     118cd "%obuild_snovis_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snovis_0%"
     122SET obuild_pwd_snovis_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     129cd "%obuild_snovis_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snovis_0%"
    109133SET obuild_pwd_snovis_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    118 cd "%obuild_pwd_snovis_0%"
    119 SET obuild_pwd_snovis_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    125 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snovis_0%"
    129 SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET OSC_home=/usr/local/OpenScientist/v16r0
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snovis_0%"
    149 SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    155 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snovis_0%"
    159 SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    165 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    166 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snovis_0%"
    169 SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    177 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snovis_0%"
    181 SET obuild_pwd_snovis_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    187 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snovis_0%"
    191 SET obuild_pwd_snovis_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snovis_0%"
    201 SET obuild_pwd_snovis_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    207 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snovis_0%"
    211 SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    218 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snovis_0%"
    222 SET obuild_pwd_snovis_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    228 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snovis_0%"
    232 SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snovis_0%"
    242 SET obuild_pwd_snovis_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    248 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snovis_0%"
    252 SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    259 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snovis_0%"
    263 SET obuild_pwd_snovis_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    269 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snovis_0%"
    273 SET obuild_pwd_snovis_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabUIOnX_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabUIOnX_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_lib_G4LabUIOnX_sh_22
    282 :else_if_db_build_lib_G4LabUIOnX_sh_22
     141  GOTO end_if_db_build_lib_G4LabUIOnX_sh_4
     142:else_if_db_build_lib_G4LabUIOnX_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_lib_G4LabUIOnX_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabUIOnX_sh_23
     144:end_if_db_build_lib_G4LabUIOnX_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabUIOnX_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_lib_G4LabUIOnX_sh_23
    289 :else_if_opt_build_lib_G4LabUIOnX_sh_23
     148  GOTO end_if_opt_build_lib_G4LabUIOnX_sh_5
     149:else_if_opt_build_lib_G4LabUIOnX_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_lib_G4LabUIOnX_sh_23
     151:end_if_opt_build_lib_G4LabUIOnX_sh_5
    292152
    293153
    294154
    295155SET obuild_cxx_includes=/I"%obuild_snovis_path%\source"
    296 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    297 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    298 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    299 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    300 cd "%obuild_pwd_snovis_0%"
    301 SET obuild_pwd_snovis_0=
    302 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    303 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    304 :end_if_platform_25
    305 SET obuild_platform_result=
    306 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    307 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    308 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    309 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    310 cd "%obuild_pwd_snovis_0%"
    311 SET obuild_pwd_snovis_0=
    312 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    313 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    314 :end_if_platform_26
    315 SET obuild_platform_result=
    316 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    317 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    318 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    319 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    320 cd "%obuild_pwd_snovis_0%"
    321 SET obuild_pwd_snovis_0=
    322 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    323 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include
    324 :end_if_platform_27
    325 SET obuild_platform_result=
    326 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    327 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    328 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    329 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    330 cd "%obuild_pwd_snovis_0%"
    331 SET obuild_pwd_snovis_0=
    332 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    333 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab
    334 :end_if_platform_28
    335 SET obuild_platform_result=
    336156
    337157IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabUIOnX" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_G4LabUIOnX"
     
    350170cd "%obuild_snovis_path%\%obuild_dir_bin%"
    351171IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    352 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    353 cd "%obuild_pwd_snovis_0%"
    354 SET obuild_pwd_snovis_0=
    355 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    356 SET obuild_cxx_linker_command=c++
    357 :end_if_platform_30
    358 SET obuild_platform_result=
    359 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    360 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    361 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    362 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    363 cd "%obuild_pwd_snovis_0%"
    364 SET obuild_pwd_snovis_0=
    365 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    366 SET obuild_cxx_linker_command=c++
    367 :end_if_platform_31
    368 SET obuild_platform_result=
    369 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    370 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    371 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    372 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    373 cd "%obuild_pwd_snovis_0%"
    374 SET obuild_pwd_snovis_0=
    375 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    376 SET obuild_cxx_linker_command=cxx
    377 :end_if_platform_32
    378 SET obuild_platform_result=
    379 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    380 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    381 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    382 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    383 cd "%obuild_pwd_snovis_0%"
    384 SET obuild_pwd_snovis_0=
    385 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
     172FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     173cd "%obuild_pwd_snovis_0%"
     174SET obuild_pwd_snovis_0=
     175IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    386176SET obuild_cxx_linker_command=link.exe
    387 :end_if_platform_33
     177:end_if_platform_8
    388178SET obuild_platform_result=
    389179IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    392182cd "%obuild_snovis_path%\%obuild_dir_bin%"
    393183IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    394 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    395 cd "%obuild_pwd_snovis_0%"
    396 SET obuild_pwd_snovis_0=
    397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    398 SET obuild_cxx_linker_debug=-g
    399 :end_if_platform_34
    400 SET obuild_platform_result=
    401 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    402 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    403 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    404 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    405 cd "%obuild_pwd_snovis_0%"
    406 SET obuild_pwd_snovis_0=
    407 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
    408 SET obuild_cxx_linker_debug=-g
    409 :end_if_platform_35
    410 SET obuild_platform_result=
    411 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    412 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    413 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    414 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    415 cd "%obuild_pwd_snovis_0%"
    416 SET obuild_pwd_snovis_0=
    417 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
    418 SET obuild_cxx_linker_debug=-g
    419 :end_if_platform_36
    420 SET obuild_platform_result=
    421 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    422 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    423 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    424 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    425 cd "%obuild_pwd_snovis_0%"
    426 SET obuild_pwd_snovis_0=
    427 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
     184FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     185cd "%obuild_pwd_snovis_0%"
     186SET obuild_pwd_snovis_0=
     187IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    428188SET obuild_cxx_linker_debug=/DEBUG
    429 :end_if_platform_37
    430 SET obuild_platform_result=
    431 
    432 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    433 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    434 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    435 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    436 cd "%obuild_pwd_snovis_0%"
    437 SET obuild_pwd_snovis_0=
    438 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
     189:end_if_platform_9
     190SET obuild_platform_result=
     191
     192FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     193cd "%obuild_snovis_path%\%obuild_dir_bin%"
     194IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     195FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     196cd "%obuild_pwd_snovis_0%"
     197SET obuild_pwd_snovis_0=
     198IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    439199SET obuild_cxx_linker_options=/nologo
    440 :end_if_platform_38
    441 SET obuild_platform_result=
    442 
    443 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabUIOnX_sh_39
     200:end_if_platform_10
     201SET obuild_platform_result=
     202
     203IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_G4LabUIOnX_sh_11
    444204  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    445   GOTO end_if_db_build_lib_G4LabUIOnX_sh_39
    446 :else_if_db_build_lib_G4LabUIOnX_sh_39
     205  GOTO end_if_db_build_lib_G4LabUIOnX_sh_11
     206:else_if_db_build_lib_G4LabUIOnX_sh_11
    447207  SET obuild_cxx_linker_debug_local=
    448 :end_if_db_build_lib_G4LabUIOnX_sh_39
    449 
    450 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabUIOnX_sh_40
     208:end_if_db_build_lib_G4LabUIOnX_sh_11
     209
     210IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_G4LabUIOnX_sh_12
    451211  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    452   GOTO end_if_opt_build_lib_G4LabUIOnX_sh_40
    453 :else_if_opt_build_lib_G4LabUIOnX_sh_40
     212  GOTO end_if_opt_build_lib_G4LabUIOnX_sh_12
     213:else_if_opt_build_lib_G4LabUIOnX_sh_12
    454214  SET obuild_cxx_linker_optimize_local=
    455 :end_if_opt_build_lib_G4LabUIOnX_sh_40
     215:end_if_opt_build_lib_G4LabUIOnX_sh_12
    456216
    457217FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
  • snovis/trunk/obuild/setup.bat

    r244 r276  
    3232
    3333IF "%OBUILD_DIR_BIN%" == "" (
    34   SET obuild_dir_bin=%obuild_platform%_obuild
     34  SET obuild_dir_bin=bin_obuild
    3535) ELSE (
    3636  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    4242)
    4343
    44 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    45 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
    46   cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL
    47   IF EXIST obuild_platform.obj DEL obuild_platform.obj
    48 )
    49 
    50 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    51 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    52 IF 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
    54 cd "%obuild_pwd_snovis_0%"
    55 SET obuild_pwd_snovis_0=
    56 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    57 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    58 :end_if_platform_1
    59 SET obuild_platform_result=
    60 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    61 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    62 IF 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% UNIX`) DO SET obuild_platform_result=%%j
    64 cd "%obuild_pwd_snovis_0%"
    65 SET obuild_pwd_snovis_0=
    66 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    67 SET Geant4_home=/usr/local/geant4/8.2
    68 :end_if_platform_3
    69 SET obuild_platform_result=
    70 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    71 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    72 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    73 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    74 cd "%obuild_pwd_snovis_0%"
    75 SET obuild_pwd_snovis_0=
    76 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    77 SET HDF5_home=/usr/local/HDF5/1.6.5
    78 :end_if_platform_5
    79 SET obuild_platform_result=
    80 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    81 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    82 IF 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% UNIX`) DO SET obuild_platform_result=%%j
    84 cd "%obuild_pwd_snovis_0%"
    85 SET obuild_pwd_snovis_0=
    86 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    87 SET OSC_home=/usr/local/OpenScientist/v16r0
    88 :end_if_platform_7
    89 SET obuild_platform_result=
    9044IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    9145IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
     
    11266SET G4LABROOT=%obuild_snovis_path%\Resources\G4Lab
    11367
    114 IF DEFINED PATH GOTO else_if_path_snovis_12
     68IF DEFINED PATH GOTO else_if_path_snovis_4
    11569  SET PATH=%obuild_snovis_path%\%obuild_dir_bin%
    116   GOTO end_if_path_snovis_12
    117 :else_if_path_snovis_12
     70  GOTO end_if_path_snovis_4
     71:else_if_path_snovis_4
    11872  SET PATH=%PATH%;%obuild_snovis_path%\%obuild_dir_bin%
    119 :end_if_path_snovis_12
     73:end_if_path_snovis_4
    12074
    12175:obuild_return
  • snovis/trunk/obuild/setup.csh

    r244 r276  
    8484if ( $?OBUILD_DIR_BIN ) then
    8585  if (  "${OBUILD_DIR_BIN}" == "" ) then
    86     set obuild_dir_bin=${obuild_platform}_obuild
     86    set obuild_dir_bin=bin_obuild
    8787  else
    8888    set obuild_dir_bin=${OBUILD_DIR_BIN}
    8989  endif
    9090else
    91   set obuild_dir_bin=${obuild_platform}_obuild
     91  set obuild_dir_bin=bin_obuild
    9292endif
    9393
  • snovis/trunk/obuild/setup.sh

    r244 r276  
    7878
    7979if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    80   obuild_dir_bin=${obuild_platform}_obuild
     80  obuild_dir_bin=bin_obuild
    8181else
    8282  obuild_dir_bin=${OBUILD_DIR_BIN}
  • snovis/trunk/obuild/sh/broadcast_install

    r244 r276  
    4646
    4747if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    48   obuild_dir_bin=${obuild_platform}_obuild
     48  obuild_dir_bin=bin_obuild
    4949else
    5050  obuild_dir_bin=${OBUILD_DIR_BIN}
  • snovis/trunk/obuild/sh/build

    r267 r276  
    100100  fi
    101101  if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    102     obuild_dir_bin=${obuild_platform}_obuild
     102    obuild_dir_bin=bin_obuild
    103103  else
    104104    obuild_dir_bin=${OBUILD_DIR_BIN}
  • snovis/trunk/obuild/sh/build_Darwin_app

    r268 r276  
    2727
    2828if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    29   obuild_dir_bin=${obuild_platform}_obuild
     29  obuild_dir_bin=bin_obuild
    3030else
    3131  obuild_dir_bin=${OBUILD_DIR_BIN}
  • snovis/trunk/obuild/sh/build_app_prog_snovis

    r246 r276  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset obuild_platform_result
    168 if [ "${obuild_platform_exe}" = "" ] ; then
    169   echo "Variable obuild_platform_exe not defined."
    170   exit
    171 fi
    172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
     
    496460fi
    497461unset obuild_platform_result
    498 if [ "${obuild_platform_exe}" = "" ] ; then
    499   echo "Variable obuild_platform_exe not defined."
    500   exit
    501 fi
    502 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    503 if [ ${obuild_platform_result} = yes ] ; then
    504 obuild_cxx_linker_command="link.exe"
    505 fi
    506 unset obuild_platform_result
    507462if [ "${obuild_cxx_linker_command}" = "" ] ; then
    508463  echo "Variable obuild_cxx_linker_command not defined."
     
    535490if [ ${obuild_platform_result} = yes ] ; then
    536491obuild_cxx_linker_debug="-g"
    537 fi
    538 unset obuild_platform_result
    539 if [ "${obuild_platform_exe}" = "" ] ; then
    540   echo "Variable obuild_platform_exe not defined."
    541   exit
    542 fi
    543 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    544 if [ ${obuild_platform_result} = yes ] ; then
    545 obuild_cxx_linker_debug="/DEBUG"
    546 fi
    547 unset obuild_platform_result
    548 
    549 if [ "${obuild_platform_exe}" = "" ] ; then
    550   echo "Variable obuild_platform_exe not defined."
    551   exit
    552 fi
    553 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    554 if [ ${obuild_platform_result} = yes ] ; then
    555 obuild_cxx_linker_options="/nologo"
    556492fi
    557493unset obuild_platform_result
     
    668604  exit
    669605fi
    670 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    671 if [ ${obuild_platform_result} = yes ] ; then
    672 obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib"
    673 fi
    674 unset obuild_platform_result
    675 if [ "${obuild_platform_exe}" = "" ] ; then
    676   echo "Variable obuild_platform_exe not defined."
    677   exit
    678 fi
    679606obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
    680607if [ ${obuild_platform_result} = yes ] ; then
  • snovis/trunk/obuild/sh/build_darwin_app_prog_snovis

    r268 r276  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
  • snovis/trunk/obuild/sh/build_dll_G4Lab

    r246 r276  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset obuild_platform_result
    168 if [ "${obuild_platform_exe}" = "" ] ; then
    169   echo "Variable obuild_platform_exe not defined."
    170   exit
    171 fi
    172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
  • snovis/trunk/obuild/sh/build_dll_snovis

    r244 r276  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset obuild_platform_result
    168 if [ "${obuild_platform_exe}" = "" ] ; then
    169   echo "Variable obuild_platform_exe not defined."
    170   exit
    171 fi
    172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
     
    462426if [ ${obuild_platform_result} = yes ] ; then
    463427obuild_linked_libraries="${obuild_linked_libraries} -L/usr/lib -lGLU -lGL -lm"
    464 fi
    465 unset obuild_platform_result
    466 if [ "${obuild_platform_exe}" = "" ] ; then
    467   echo "Variable obuild_platform_exe not defined."
    468   exit
    469 fi
    470 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    471 if [ ${obuild_platform_result} = yes ] ; then
    472 obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib"
    473428fi
    474429unset obuild_platform_result
  • snovis/trunk/obuild/sh/build_lib_G4LabCore

    r246 r276  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset obuild_platform_result
    168 if [ "${obuild_platform_exe}" = "" ] ; then
    169   echo "Variable obuild_platform_exe not defined."
    170   exit
    171 fi
    172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
  • snovis/trunk/obuild/sh/build_lib_G4LabUIOnX

    r246 r276  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset obuild_platform_result
    168 if [ "${obuild_platform_exe}" = "" ] ; then
    169   echo "Variable obuild_platform_exe not defined."
    170   exit
    171 fi
    172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
  • snovis/trunk/obuild/sh/check_foreigns

    r244 r276  
    2828
    2929if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    30   obuild_dir_bin=${obuild_platform}_obuild
     30  obuild_dir_bin=bin_obuild
    3131else
    3232  obuild_dir_bin=${OBUILD_DIR_BIN}
  • snovis/trunk/obuild/this.obuild

    r266 r276  
    117117      </copy_dir>
    118118
     119      <copy_dir>
     120        <from>Resources/G4Lab</from>
     121        <to>Resources/.</to>
     122      </copy_dir>
     123
    119124      <copy_dir platform="Darwin">
    120125        <from>Darwin_obuild/snovis_session.app</from>
Note: See TracChangeset for help on using the changeset viewer.