Changeset 92
- Timestamp:
- Feb 9, 2007, 10:24:37 AM (18 years ago)
- Location:
- snovis/head/obuild
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
snovis/head/obuild/DOS/build.bat
r6 r92 146 146 IF NOT %obuild_group% == main GOTO end_if_group_0 147 147 IF NOT %obuild_do_mains% == yes GOTO end_if_main_0 148 IF EXIST .\DOS\build_lib_snova.bat (149 CALL .\DOS\build_ lib_snova.bat %obuild_args%148 IF NOT EXIST .\DOS\build_dll_snovis.bat GOTO end_if_build_0 149 CALL .\DOS\build_dll_snovis.bat %obuild_args% 150 150 @IF ERRORLEVEL 1 @GOTO obuild_return 151 151 @ECHO OFF 152 ) 152 :end_if_build_0 153 153 :end_if_main_0 154 154 :end_if_group_0 … … 156 156 IF NOT %obuild_group% == main GOTO end_if_group_1 157 157 IF NOT %obuild_do_mains% == yes GOTO end_if_main_1 158 IF EXIST .\DOS\build_dll_snovis.bat ( 159 CALL .\DOS\build_dll_snovis.bat %obuild_args% 160 @IF ERRORLEVEL 1 @GOTO obuild_return 161 @ECHO OFF 162 ) 163 :end_if_main_1 164 :end_if_group_1 165 166 IF NOT %obuild_group% == main GOTO end_if_group_2 167 IF NOT %obuild_do_mains% == yes GOTO end_if_main_2 168 IF EXIST .\DOS\build_app_prog_snova.bat ( 158 IF NOT EXIST .\DOS\build_app_prog_snova.bat GOTO end_if_build_1 169 159 CALL .\DOS\build_app_prog_snova.bat %obuild_args% 170 160 @IF ERRORLEVEL 1 @GOTO obuild_return 171 161 @ECHO OFF 172 ) 173 :end_if_main_ 2174 :end_if_group_ 2175 IF NOT %obuild_group% == main GOTO end_if_group_ 3176 IF NOT %obuild_do_mains% == yes GOTO end_if_main_ 3177 IF EXIST .\DOS\build_app_snovis_session.bat (162 :end_if_build_1 163 :end_if_main_1 164 :end_if_group_1 165 IF NOT %obuild_group% == main GOTO end_if_group_2 166 IF NOT %obuild_do_mains% == yes GOTO end_if_main_2 167 IF NOT EXIST .\DOS\build_app_snovis_session.bat GOTO end_if_build_2 178 168 CALL .\DOS\build_app_snovis_session.bat %obuild_args% 179 169 @IF ERRORLEVEL 1 @GOTO obuild_return 180 170 @ECHO OFF 181 ) 182 :end_if_main_ 3183 :end_if_group_ 3171 :end_if_build_2 172 :end_if_main_2 173 :end_if_group_2 184 174 185 175 :obuild_return -
snovis/head/obuild/DOS/build_app_prog_snova.bat
r6 r92 88 88 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 89 89 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" ( 90 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" 90 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 91 91 IF EXIST obuild_platform.obj DEL obuild_platform.obj 92 92 ) … … 98 98 cd "%obuild_pwd_snovis_0%" 99 99 SET obuild_pwd_snovis_0= 100 IF %obuild_platform_result% == yes (101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p 1102 ) 103 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snovis_0%" 109 SET obuild_pwd_snovis_0= 110 IF %obuild_platform_result% == yes (100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2 102 :end_if_platform_1 103 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snovis_0%" 109 SET obuild_pwd_snovis_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 111 SET bhep_platform=Darwin 112 ) 113 SET 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 %obuild_platform_result% == yes ( 121 SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils 122 ) 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% Darwin`) DO SET obuild_platform_result=%%j 128 cd "%obuild_pwd_snovis_0%" 129 SET obuild_pwd_snovis_0= 130 IF %obuild_platform_result% == yes ( 131 SET GeomUtils_platform=Darwin-i386 132 ) 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF %obuild_platform_result% == yes ( 141 SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2 142 ) 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF %obuild_platform_result% == yes ( 151 SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova 152 ) 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% UNIX`) DO SET obuild_platform_result=%%j 158 cd "%obuild_pwd_snovis_0%" 159 SET obuild_pwd_snovis_0= 160 IF %obuild_platform_result% == yes ( 112 :end_if_platform_3 113 SET 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 snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0 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% Darwin`) 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 snova_platform=Darwin 132 :end_if_platform_7 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 161 141 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 162 ) 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% UNIX`) DO SET obuild_platform_result=%%j 168 cd "%obuild_pwd_snovis_0%" 169 SET obuild_pwd_snovis_0= 170 IF %obuild_platform_result% == yes (171 SET Geant4_home=/ geant4/geant4.8.2172 ) 173 SET obuild_platform_result= 174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 175 cd "%obuild_snovis_path%\%obuild_dir_bin%" 176 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 178 cd "%obuild_pwd_snovis_0%" 179 SET obuild_pwd_snovis_0= 180 IF %obuild_platform_result% == yes (181 SET Geant4_work=${Geant4_home}/Darwin182 ) 142 :end_if_platform_9 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 151 SET Geant4_home=/usr/local/geant4/8.2 152 :end_if_platform_11 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% Darwin`) 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_12 161 SET obuild_cxx_command=c++ 162 :end_if_platform_12 183 163 SET obuild_platform_result= 184 164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 188 168 cd "%obuild_pwd_snovis_0%" 189 169 SET obuild_pwd_snovis_0= 190 IF %obuild_platform_result% == yes ( 191 SET Geant4_work=${Geant4_home}/slc3_gcc323 192 ) 193 SET obuild_platform_result= 194 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 195 cd "%obuild_snovis_path%\%obuild_dir_bin%" 196 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 197 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 198 cd "%obuild_pwd_snovis_0%" 199 SET obuild_pwd_snovis_0= 200 IF %obuild_platform_result% == yes ( 201 SET Geant4_system=Darwin-g++ 202 ) 170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 171 SET obuild_cxx_command=c++ 172 :end_if_platform_13 173 SET obuild_platform_result= 174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 175 cd "%obuild_snovis_path%\%obuild_dir_bin%" 176 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 178 cd "%obuild_pwd_snovis_0%" 179 SET obuild_pwd_snovis_0= 180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 181 SET obuild_cxx_command=cxx 182 :end_if_platform_14 183 SET obuild_platform_result= 184 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 185 cd "%obuild_snovis_path%\%obuild_dir_bin%" 186 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 187 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 188 cd "%obuild_pwd_snovis_0%" 189 SET obuild_pwd_snovis_0= 190 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 191 SET obuild_cxx_command=cl.exe 192 :end_if_platform_15 193 SET obuild_platform_result= 194 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 195 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 197 cd "%obuild_snovis_path%\%obuild_dir_bin%" 198 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 200 cd "%obuild_pwd_snovis_0%" 201 SET obuild_pwd_snovis_0= 202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 203 SET obuild_cxx_optimize=-O 204 :end_if_platform_16 203 205 SET obuild_platform_result= 204 206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 208 210 cd "%obuild_pwd_snovis_0%" 209 211 SET obuild_pwd_snovis_0= 210 IF %obuild_platform_result% == yes ( 211 SET Geant4_system=Linux-g++ 212 ) 213 SET obuild_platform_result= 214 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 215 cd "%obuild_snovis_path%\%obuild_dir_bin%" 216 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 217 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 218 cd "%obuild_pwd_snovis_0%" 219 SET obuild_pwd_snovis_0= 220 IF %obuild_platform_result% == yes ( 221 SET Geant4_system=WIN32-VC 222 ) 223 SET obuild_platform_result= 224 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 225 cd "%obuild_snovis_path%\%obuild_dir_bin%" 226 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 227 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 228 cd "%obuild_pwd_snovis_0%" 229 SET obuild_pwd_snovis_0= 230 IF %obuild_platform_result% == yes ( 231 SET obuild_cxx_command=c++ 232 ) 212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 213 SET obuild_cxx_optimize=-O 214 :end_if_platform_17 215 SET obuild_platform_result= 216 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 217 cd "%obuild_snovis_path%\%obuild_dir_bin%" 218 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 219 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 220 cd "%obuild_pwd_snovis_0%" 221 SET obuild_pwd_snovis_0= 222 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 223 SET obuild_cxx_optimize=-O 224 :end_if_platform_18 225 SET obuild_platform_result= 226 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 227 cd "%obuild_snovis_path%\%obuild_dir_bin%" 228 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 229 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 230 cd "%obuild_pwd_snovis_0%" 231 SET obuild_pwd_snovis_0= 232 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 233 SET obuild_cxx_optimize=/O2 234 :end_if_platform_19 235 SET obuild_platform_result= 236 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 238 cd "%obuild_snovis_path%\%obuild_dir_bin%" 239 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 241 cd "%obuild_pwd_snovis_0%" 242 SET obuild_pwd_snovis_0= 243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 244 SET obuild_cxx_debug=-g 245 :end_if_platform_20 233 246 SET obuild_platform_result= 234 247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 238 251 cd "%obuild_pwd_snovis_0%" 239 252 SET obuild_pwd_snovis_0= 240 IF %obuild_platform_result% == yes (241 SET obuild_cxx_ command=c++242 ) 253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 254 SET obuild_cxx_debug=-g 255 :end_if_platform_21 243 256 SET obuild_platform_result= 244 257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 248 261 cd "%obuild_pwd_snovis_0%" 249 262 SET obuild_pwd_snovis_0= 250 IF %obuild_platform_result% == yes ( 251 SET obuild_cxx_command=cxx 252 ) 253 SET obuild_platform_result= 254 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 255 cd "%obuild_snovis_path%\%obuild_dir_bin%" 256 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 257 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 258 cd "%obuild_pwd_snovis_0%" 259 SET obuild_pwd_snovis_0= 260 IF %obuild_platform_result% == yes ( 261 SET obuild_cxx_command=cl.exe 262 ) 263 SET obuild_platform_result= 264 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 265 266 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 267 cd "%obuild_snovis_path%\%obuild_dir_bin%" 268 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 269 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 270 cd "%obuild_pwd_snovis_0%" 271 SET obuild_pwd_snovis_0= 272 IF %obuild_platform_result% == yes ( 273 SET obuild_cxx_optimize=-O 274 ) 275 SET obuild_platform_result= 263 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 264 SET obuild_cxx_debug=-g 265 :end_if_platform_22 266 SET obuild_platform_result= 267 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 268 cd "%obuild_snovis_path%\%obuild_dir_bin%" 269 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 270 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 271 cd "%obuild_pwd_snovis_0%" 272 SET obuild_pwd_snovis_0= 273 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23 274 SET obuild_cxx_debug=/ZI /Od 275 :end_if_platform_23 276 SET obuild_platform_result= 277 276 278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 277 279 cd "%obuild_snovis_path%\%obuild_dir_bin%" … … 280 282 cd "%obuild_pwd_snovis_0%" 281 283 SET obuild_pwd_snovis_0= 282 IF %obuild_platform_result% == yes ( 283 SET obuild_cxx_optimize=-O 284 ) 285 SET obuild_platform_result= 286 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 287 cd "%obuild_snovis_path%\%obuild_dir_bin%" 288 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 289 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 290 cd "%obuild_pwd_snovis_0%" 291 SET obuild_pwd_snovis_0= 292 IF %obuild_platform_result% == yes ( 293 SET obuild_cxx_optimize=-O 294 ) 295 SET obuild_platform_result= 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% Windows_NT`) DO SET obuild_platform_result=%%j 300 cd "%obuild_pwd_snovis_0%" 301 SET obuild_pwd_snovis_0= 302 IF %obuild_platform_result% == yes ( 303 SET obuild_cxx_optimize=/O2 304 ) 305 SET obuild_platform_result= 306 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% Darwin`) DO SET obuild_platform_result=%%j 311 cd "%obuild_pwd_snovis_0%" 312 SET obuild_pwd_snovis_0= 313 IF %obuild_platform_result% == yes ( 314 SET obuild_cxx_debug=-g 315 ) 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% Linux`) DO SET obuild_platform_result=%%j 321 cd "%obuild_pwd_snovis_0%" 322 SET obuild_pwd_snovis_0= 323 IF %obuild_platform_result% == yes ( 324 SET obuild_cxx_debug=-g 325 ) 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% OSF1`) DO SET obuild_platform_result=%%j 331 cd "%obuild_pwd_snovis_0%" 332 SET obuild_pwd_snovis_0= 333 IF %obuild_platform_result% == yes ( 334 SET obuild_cxx_debug=-g 335 ) 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% Windows_NT`) DO SET obuild_platform_result=%%j 341 cd "%obuild_pwd_snovis_0%" 342 SET obuild_pwd_snovis_0= 343 IF %obuild_platform_result% == yes ( 344 SET obuild_cxx_debug=/ZI /Od 345 ) 346 SET obuild_platform_result= 347 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% Linux`) DO SET obuild_platform_result=%%j 352 cd "%obuild_pwd_snovis_0%" 353 SET obuild_pwd_snovis_0= 354 IF %obuild_platform_result% == yes ( 284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 355 285 SET obuild_cxx_options=-fPIC 356 ) 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% Windows_NT`) DO SET obuild_platform_result=%%j 362 cd "%obuild_pwd_snovis_0%" 363 SET obuild_pwd_snovis_0= 364 IF %obuild_platform_result% == yes (286 :end_if_platform_24 287 SET obuild_platform_result= 288 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 289 cd "%obuild_snovis_path%\%obuild_dir_bin%" 290 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 291 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 292 cd "%obuild_pwd_snovis_0%" 293 SET obuild_pwd_snovis_0= 294 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 365 295 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 366 ) 367 SET obuild_platform_result= 368 369 IF %obuild_debug% == yes (296 :end_if_platform_25 297 SET obuild_platform_result= 298 299 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_26 370 300 SET obuild_cxx_debug_local=%obuild_cxx_debug% 371 ) ELSE ( 301 GOTO end_if_db_build_app_prog_snova_sh_26 302 :else_if_db_build_app_prog_snova_sh_26 372 303 SET obuild_cxx_debug_local= 373 ) 374 IF %obuild_optimize% == yes ( 304 :end_if_db_build_app_prog_snova_sh_26 305 306 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_27 375 307 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 376 ) ELSE ( 308 GOTO end_if_opt_build_app_prog_snova_sh_27 309 :else_if_opt_build_app_prog_snova_sh_27 377 310 SET obuild_cxx_optimize_local= 378 ) 311 :end_if_opt_build_app_prog_snova_sh_27 312 379 313 380 314 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 381 315 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( 382 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 316 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL 383 317 IF EXIST obuild_find.obj DEL obuild_find.obj 384 318 ) … … 411 345 cd "%obuild_pwd_snovis_0%" 412 346 SET obuild_pwd_snovis_0= 413 IF %obuild_platform_result% == yes ( 414 SET obuild_cxx_includes=-I${SNOVA_ROOT} 415 ) 416 SET obuild_platform_result= 417 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 418 cd "%obuild_snovis_path%\%obuild_dir_bin%" 419 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 420 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 421 cd "%obuild_pwd_snovis_0%" 422 SET obuild_pwd_snovis_0= 423 IF %obuild_platform_result% == yes ( 424 SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include 425 ) 426 SET obuild_platform_result= 427 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 428 cd "%obuild_snovis_path%\%obuild_dir_bin%" 429 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 430 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 431 cd "%obuild_pwd_snovis_0%" 432 SET obuild_pwd_snovis_0= 433 IF %obuild_platform_result% == yes ( 434 SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include 435 ) 436 SET obuild_platform_result= 437 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 438 cd "%obuild_snovis_path%\%obuild_dir_bin%" 439 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 440 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 441 cd "%obuild_pwd_snovis_0%" 442 SET obuild_pwd_snovis_0= 443 IF %obuild_platform_result% == yes ( 444 SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include 445 ) 446 SET obuild_platform_result= 447 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 448 cd "%obuild_snovis_path%\%obuild_dir_bin%" 449 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 450 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 451 cd "%obuild_pwd_snovis_0%" 452 SET obuild_pwd_snovis_0= 453 IF %obuild_platform_result% == yes ( 347 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28 348 SET obuild_cxx_includes=-I${snova_home} 349 :end_if_platform_28 350 SET obuild_platform_result= 351 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 352 cd "%obuild_snovis_path%\%obuild_dir_bin%" 353 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 354 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 355 cd "%obuild_pwd_snovis_0%" 356 SET obuild_pwd_snovis_0= 357 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29 358 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include 359 :end_if_platform_29 360 SET obuild_platform_result= 361 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 362 cd "%obuild_snovis_path%\%obuild_dir_bin%" 363 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 364 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 365 cd "%obuild_pwd_snovis_0%" 366 SET obuild_pwd_snovis_0= 367 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 368 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include 369 :end_if_platform_30 370 SET obuild_platform_result= 371 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 372 cd "%obuild_snovis_path%\%obuild_dir_bin%" 373 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 374 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 375 cd "%obuild_pwd_snovis_0%" 376 SET obuild_pwd_snovis_0= 377 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31 378 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include 379 :end_if_platform_31 380 SET obuild_platform_result= 381 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 382 cd "%obuild_snovis_path%\%obuild_dir_bin%" 383 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 384 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 385 cd "%obuild_pwd_snovis_0%" 386 SET obuild_pwd_snovis_0= 387 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32 388 SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home} 389 :end_if_platform_32 390 SET obuild_platform_result= 391 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 392 cd "%obuild_snovis_path%\%obuild_dir_bin%" 393 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 394 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 395 cd "%obuild_pwd_snovis_0%" 396 SET obuild_pwd_snovis_0= 397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33 454 398 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 455 ) 456 SET obuild_platform_result= 457 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 458 cd "%obuild_snovis_path%\%obuild_dir_bin%" 459 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 460 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 461 cd "%obuild_pwd_snovis_0%" 462 SET obuild_pwd_snovis_0= 463 IF %obuild_platform_result% == yes (399 :end_if_platform_33 400 SET obuild_platform_result= 401 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 402 cd "%obuild_snovis_path%\%obuild_dir_bin%" 403 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 404 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 405 cd "%obuild_pwd_snovis_0%" 406 SET obuild_pwd_snovis_0= 407 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34 464 408 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include 465 ) 409 :end_if_platform_34 466 410 SET obuild_platform_result= 467 411 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include" … … 472 416 @IF %obuild_verbose% == yes @ECHO ON 473 417 cd "%obuild_snovis_path%\%obuild_dir_bin%" 474 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_prog_snova\prog_snova.obj /Tp..\applications\prog_snova.cc 475 @IF ERRORLEVEL 1 @GOTO obuild_return 418 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_prog_snova\prog_snova2.obj /Tp"..\applications\prog_snova2.cxx" 1> cl_exe_error 419 @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return 420 @IF NOT ERRORLEVEL 1 @DEL cl_exe_error 476 421 cd "%obuild_snovis_path%\obuild" 477 422 … … 484 429 cd "%obuild_pwd_snovis_0%" 485 430 SET obuild_pwd_snovis_0= 486 IF %obuild_platform_result% == yes (431 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 487 432 SET obuild_cxx_linker_command=c++ 488 ) 433 :end_if_platform_37 489 434 SET obuild_platform_result= 490 435 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 494 439 cd "%obuild_pwd_snovis_0%" 495 440 SET obuild_pwd_snovis_0= 496 IF %obuild_platform_result% == yes (441 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 497 442 SET obuild_cxx_linker_command=c++ 498 ) 443 :end_if_platform_38 499 444 SET obuild_platform_result= 500 445 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 504 449 cd "%obuild_pwd_snovis_0%" 505 450 SET obuild_pwd_snovis_0= 506 IF %obuild_platform_result% == yes (451 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39 507 452 SET obuild_cxx_linker_command=cxx 508 ) 509 SET obuild_platform_result= 510 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 511 cd "%obuild_snovis_path%\%obuild_dir_bin%" 512 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 513 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 514 cd "%obuild_pwd_snovis_0%" 515 SET obuild_pwd_snovis_0= 516 IF %obuild_platform_result% == yes (453 :end_if_platform_39 454 SET obuild_platform_result= 455 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 456 cd "%obuild_snovis_path%\%obuild_dir_bin%" 457 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 458 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 459 cd "%obuild_pwd_snovis_0%" 460 SET obuild_pwd_snovis_0= 461 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 517 462 SET obuild_cxx_linker_command=link.exe 518 ) 463 :end_if_platform_40 519 464 SET obuild_platform_result= 520 465 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 526 471 cd "%obuild_pwd_snovis_0%" 527 472 SET obuild_pwd_snovis_0= 528 IF %obuild_platform_result% == yes (473 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 529 474 SET obuild_cxx_linker_debug=-g 530 ) 475 :end_if_platform_41 531 476 SET obuild_platform_result= 532 477 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 536 481 cd "%obuild_pwd_snovis_0%" 537 482 SET obuild_pwd_snovis_0= 538 IF %obuild_platform_result% == yes (483 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 539 484 SET obuild_cxx_linker_debug=-g 540 ) 485 :end_if_platform_42 541 486 SET obuild_platform_result= 542 487 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 546 491 cd "%obuild_pwd_snovis_0%" 547 492 SET obuild_pwd_snovis_0= 548 IF %obuild_platform_result% == yes (493 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 549 494 SET obuild_cxx_linker_debug=-g 550 ) 551 SET obuild_platform_result= 552 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 553 cd "%obuild_snovis_path%\%obuild_dir_bin%" 554 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 555 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 556 cd "%obuild_pwd_snovis_0%" 557 SET obuild_pwd_snovis_0= 558 IF %obuild_platform_result% == yes (495 :end_if_platform_43 496 SET obuild_platform_result= 497 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 498 cd "%obuild_snovis_path%\%obuild_dir_bin%" 499 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 500 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 501 cd "%obuild_pwd_snovis_0%" 502 SET obuild_pwd_snovis_0= 503 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44 559 504 SET obuild_cxx_linker_debug=/DEBUG 560 ) 561 SET obuild_platform_result= 562 563 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 564 cd "%obuild_snovis_path%\%obuild_dir_bin%" 565 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 566 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 567 cd "%obuild_pwd_snovis_0%" 568 SET obuild_pwd_snovis_0= 569 IF %obuild_platform_result% == yes (505 :end_if_platform_44 506 SET obuild_platform_result= 507 508 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 509 cd "%obuild_snovis_path%\%obuild_dir_bin%" 510 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 511 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 512 cd "%obuild_pwd_snovis_0%" 513 SET obuild_pwd_snovis_0= 514 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45 570 515 SET obuild_cxx_linker_options=/nologo 571 ) 572 SET obuild_platform_result= 573 574 IF %obuild_debug% == yes (516 :end_if_platform_45 517 SET obuild_platform_result= 518 519 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_46 575 520 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 576 ) ELSE ( 521 GOTO end_if_db_build_app_prog_snova_sh_46 522 :else_if_db_build_app_prog_snova_sh_46 577 523 SET obuild_cxx_linker_debug_local= 578 ) 579 IF %obuild_optimize% == yes ( 524 :end_if_db_build_app_prog_snova_sh_46 525 526 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_47 580 527 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 581 ) ELSE ( 528 GOTO end_if_opt_build_app_prog_snova_sh_47 529 :else_if_opt_build_app_prog_snova_sh_47 582 530 SET obuild_cxx_linker_optimize_local= 583 ) 584 SET obuild_linked_libraries="%obuild_snovis_path%\%obuild_dir_bin%\snova.lib" 585 SET obuild_linked_libraries=%obuild_linked_libraries% -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom 586 SET obuild_linked_libraries=%obuild_linked_libraries% -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils 587 SET obuild_linked_libraries=%obuild_linked_libraries% -L${BHEP_ROOT}/Darwin/lib -lbhep 588 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_work}/lib/${Geant4_system} -lG4interfaces 589 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 590 cd "%obuild_snovis_path%\%obuild_dir_bin%" 591 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 592 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 593 cd "%obuild_pwd_snovis_0%" 594 SET obuild_pwd_snovis_0= 595 IF %obuild_platform_result% == yes ( 596 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_work}/lib/${Geant4_system} -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global 597 ) 598 SET obuild_platform_result= 599 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 600 cd "%obuild_snovis_path%\%obuild_dir_bin%" 601 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 602 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 603 cd "%obuild_pwd_snovis_0%" 604 SET obuild_pwd_snovis_0= 605 IF %obuild_platform_result% == yes ( 531 :end_if_opt_build_app_prog_snova_sh_47 532 533 SET obuild_linked_libraries=-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils 534 SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep 535 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces 536 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 537 cd "%obuild_snovis_path%\%obuild_dir_bin%" 538 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 539 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 540 cd "%obuild_pwd_snovis_0%" 541 SET obuild_pwd_snovis_0= 542 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51 543 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 544 :end_if_platform_51 545 SET obuild_platform_result= 546 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 547 cd "%obuild_snovis_path%\%obuild_dir_bin%" 548 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 549 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 550 cd "%obuild_pwd_snovis_0%" 551 SET obuild_pwd_snovis_0= 552 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52 606 553 SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP 607 ) 554 :end_if_platform_52 608 555 SET obuild_platform_result= 609 556 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib" -
snovis/head/obuild/DOS/build_app_snovis_session.bat
r6 r92 88 88 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 89 89 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" ( 90 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" 90 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 91 91 IF EXIST obuild_platform.obj DEL obuild_platform.obj 92 92 ) … … 98 98 cd "%obuild_pwd_snovis_0%" 99 99 SET obuild_pwd_snovis_0= 100 IF %obuild_platform_result% == yes (101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p 1102 ) 103 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snovis_0%" 109 SET obuild_pwd_snovis_0= 110 IF %obuild_platform_result% == yes (100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2 102 :end_if_platform_1 103 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snovis_0%" 109 SET obuild_pwd_snovis_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 111 SET bhep_platform=Darwin 112 ) 113 SET 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 %obuild_platform_result% == yes ( 121 SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils 122 ) 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% Darwin`) DO SET obuild_platform_result=%%j 128 cd "%obuild_pwd_snovis_0%" 129 SET obuild_pwd_snovis_0= 130 IF %obuild_platform_result% == yes ( 131 SET GeomUtils_platform=Darwin-i386 132 ) 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF %obuild_platform_result% == yes ( 141 SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2 142 ) 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF %obuild_platform_result% == yes ( 151 SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova 152 ) 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% UNIX`) DO SET obuild_platform_result=%%j 158 cd "%obuild_pwd_snovis_0%" 159 SET obuild_pwd_snovis_0= 160 IF %obuild_platform_result% == yes ( 112 :end_if_platform_3 113 SET 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 snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0 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% Darwin`) 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 snova_platform=Darwin 132 :end_if_platform_7 133 SET obuild_platform_result= 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 135 cd "%obuild_snovis_path%\%obuild_dir_bin%" 136 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 138 cd "%obuild_pwd_snovis_0%" 139 SET obuild_pwd_snovis_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 161 141 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 162 ) 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% UNIX`) DO SET obuild_platform_result=%%j 168 cd "%obuild_pwd_snovis_0%" 169 SET obuild_pwd_snovis_0= 170 IF %obuild_platform_result% == yes (171 SET Geant4_home=/ geant4/geant4.8.2172 ) 173 SET obuild_platform_result= 174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 175 cd "%obuild_snovis_path%\%obuild_dir_bin%" 176 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 178 cd "%obuild_pwd_snovis_0%" 179 SET obuild_pwd_snovis_0= 180 IF %obuild_platform_result% == yes (181 SET Geant4_work=${Geant4_home}/Darwin182 ) 142 :end_if_platform_9 143 SET obuild_platform_result= 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 145 cd "%obuild_snovis_path%\%obuild_dir_bin%" 146 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 148 cd "%obuild_pwd_snovis_0%" 149 SET obuild_pwd_snovis_0= 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 151 SET Geant4_home=/usr/local/geant4/8.2 152 :end_if_platform_11 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% Darwin`) 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_12 161 SET obuild_cxx_command=c++ 162 :end_if_platform_12 183 163 SET obuild_platform_result= 184 164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 188 168 cd "%obuild_pwd_snovis_0%" 189 169 SET obuild_pwd_snovis_0= 190 IF %obuild_platform_result% == yes ( 191 SET Geant4_work=${Geant4_home}/slc3_gcc323 192 ) 193 SET obuild_platform_result= 194 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 195 cd "%obuild_snovis_path%\%obuild_dir_bin%" 196 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 197 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 198 cd "%obuild_pwd_snovis_0%" 199 SET obuild_pwd_snovis_0= 200 IF %obuild_platform_result% == yes ( 201 SET Geant4_system=Darwin-g++ 202 ) 170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 171 SET obuild_cxx_command=c++ 172 :end_if_platform_13 173 SET obuild_platform_result= 174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 175 cd "%obuild_snovis_path%\%obuild_dir_bin%" 176 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 178 cd "%obuild_pwd_snovis_0%" 179 SET obuild_pwd_snovis_0= 180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 181 SET obuild_cxx_command=cxx 182 :end_if_platform_14 183 SET obuild_platform_result= 184 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 185 cd "%obuild_snovis_path%\%obuild_dir_bin%" 186 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 187 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 188 cd "%obuild_pwd_snovis_0%" 189 SET obuild_pwd_snovis_0= 190 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 191 SET obuild_cxx_command=cl.exe 192 :end_if_platform_15 193 SET obuild_platform_result= 194 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 195 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 197 cd "%obuild_snovis_path%\%obuild_dir_bin%" 198 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 200 cd "%obuild_pwd_snovis_0%" 201 SET obuild_pwd_snovis_0= 202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 203 SET obuild_cxx_optimize=-O 204 :end_if_platform_16 203 205 SET obuild_platform_result= 204 206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 208 210 cd "%obuild_pwd_snovis_0%" 209 211 SET obuild_pwd_snovis_0= 210 IF %obuild_platform_result% == yes ( 211 SET Geant4_system=Linux-g++ 212 ) 212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 213 SET obuild_cxx_optimize=-O 214 :end_if_platform_17 215 SET obuild_platform_result= 216 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 217 cd "%obuild_snovis_path%\%obuild_dir_bin%" 218 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 219 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 220 cd "%obuild_pwd_snovis_0%" 221 SET obuild_pwd_snovis_0= 222 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 223 SET obuild_cxx_optimize=-O 224 :end_if_platform_18 213 225 SET obuild_platform_result= 214 226 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 218 230 cd "%obuild_pwd_snovis_0%" 219 231 SET obuild_pwd_snovis_0= 220 IF %obuild_platform_result% == yes ( 221 SET Geant4_system=WIN32-VC 222 ) 223 SET obuild_platform_result= 224 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 225 cd "%obuild_snovis_path%\%obuild_dir_bin%" 226 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 227 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 228 cd "%obuild_pwd_snovis_0%" 229 SET obuild_pwd_snovis_0= 230 IF %obuild_platform_result% == yes ( 231 SET obuild_cxx_command=c++ 232 ) 232 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 233 SET obuild_cxx_optimize=/O2 234 :end_if_platform_19 235 SET obuild_platform_result= 236 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 238 cd "%obuild_snovis_path%\%obuild_dir_bin%" 239 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 241 cd "%obuild_pwd_snovis_0%" 242 SET obuild_pwd_snovis_0= 243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 244 SET obuild_cxx_debug=-g 245 :end_if_platform_20 233 246 SET obuild_platform_result= 234 247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 238 251 cd "%obuild_pwd_snovis_0%" 239 252 SET obuild_pwd_snovis_0= 240 IF %obuild_platform_result% == yes (241 SET obuild_cxx_ command=c++242 ) 253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 254 SET obuild_cxx_debug=-g 255 :end_if_platform_21 243 256 SET obuild_platform_result= 244 257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 248 261 cd "%obuild_pwd_snovis_0%" 249 262 SET obuild_pwd_snovis_0= 250 IF %obuild_platform_result% == yes (251 SET obuild_cxx_ command=cxx252 ) 263 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 264 SET obuild_cxx_debug=-g 265 :end_if_platform_22 253 266 SET obuild_platform_result= 254 267 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 258 271 cd "%obuild_pwd_snovis_0%" 259 272 SET obuild_pwd_snovis_0= 260 IF %obuild_platform_result% == yes ( 261 SET obuild_cxx_command=cl.exe 262 ) 263 SET obuild_platform_result= 264 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 265 266 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 267 cd "%obuild_snovis_path%\%obuild_dir_bin%" 268 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 269 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 270 cd "%obuild_pwd_snovis_0%" 271 SET obuild_pwd_snovis_0= 272 IF %obuild_platform_result% == yes ( 273 SET obuild_cxx_optimize=-O 274 ) 275 SET obuild_platform_result= 273 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23 274 SET obuild_cxx_debug=/ZI /Od 275 :end_if_platform_23 276 SET obuild_platform_result= 277 276 278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 277 279 cd "%obuild_snovis_path%\%obuild_dir_bin%" … … 280 282 cd "%obuild_pwd_snovis_0%" 281 283 SET obuild_pwd_snovis_0= 282 IF %obuild_platform_result% == yes ( 283 SET obuild_cxx_optimize=-O 284 ) 285 SET obuild_platform_result= 286 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 287 cd "%obuild_snovis_path%\%obuild_dir_bin%" 288 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 289 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 290 cd "%obuild_pwd_snovis_0%" 291 SET obuild_pwd_snovis_0= 292 IF %obuild_platform_result% == yes ( 293 SET obuild_cxx_optimize=-O 294 ) 284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 285 SET obuild_cxx_options=-fPIC 286 :end_if_platform_24 295 287 SET obuild_platform_result= 296 288 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 300 292 cd "%obuild_pwd_snovis_0%" 301 293 SET obuild_pwd_snovis_0= 302 IF %obuild_platform_result% == yes ( 303 SET obuild_cxx_optimize=/O2 304 ) 305 SET obuild_platform_result= 306 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% Darwin`) DO SET obuild_platform_result=%%j 311 cd "%obuild_pwd_snovis_0%" 312 SET obuild_pwd_snovis_0= 313 IF %obuild_platform_result% == yes ( 314 SET obuild_cxx_debug=-g 315 ) 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% Linux`) DO SET obuild_platform_result=%%j 321 cd "%obuild_pwd_snovis_0%" 322 SET obuild_pwd_snovis_0= 323 IF %obuild_platform_result% == yes ( 324 SET obuild_cxx_debug=-g 325 ) 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% OSF1`) DO SET obuild_platform_result=%%j 331 cd "%obuild_pwd_snovis_0%" 332 SET obuild_pwd_snovis_0= 333 IF %obuild_platform_result% == yes ( 334 SET obuild_cxx_debug=-g 335 ) 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% Windows_NT`) DO SET obuild_platform_result=%%j 341 cd "%obuild_pwd_snovis_0%" 342 SET obuild_pwd_snovis_0= 343 IF %obuild_platform_result% == yes ( 344 SET obuild_cxx_debug=/ZI /Od 345 ) 346 SET obuild_platform_result= 347 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% Linux`) DO SET obuild_platform_result=%%j 352 cd "%obuild_pwd_snovis_0%" 353 SET obuild_pwd_snovis_0= 354 IF %obuild_platform_result% == yes ( 355 SET obuild_cxx_options=-fPIC 356 ) 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% Windows_NT`) DO SET obuild_platform_result=%%j 362 cd "%obuild_pwd_snovis_0%" 363 SET obuild_pwd_snovis_0= 364 IF %obuild_platform_result% == yes ( 294 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 365 295 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 366 ) 367 SET obuild_platform_result= 368 369 IF %obuild_debug% == yes (296 :end_if_platform_25 297 SET obuild_platform_result= 298 299 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_26 370 300 SET obuild_cxx_debug_local=%obuild_cxx_debug% 371 ) ELSE ( 301 GOTO end_if_db_build_app_snovis_session_sh_26 302 :else_if_db_build_app_snovis_session_sh_26 372 303 SET obuild_cxx_debug_local= 373 ) 374 IF %obuild_optimize% == yes ( 304 :end_if_db_build_app_snovis_session_sh_26 305 306 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_27 375 307 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 376 ) ELSE ( 308 GOTO end_if_opt_build_app_snovis_session_sh_27 309 :else_if_opt_build_app_snovis_session_sh_27 377 310 SET obuild_cxx_optimize_local= 378 ) 311 :end_if_opt_build_app_snovis_session_sh_27 312 379 313 380 314 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 381 315 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( 382 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 316 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL 383 317 IF EXIST obuild_find.obj DEL obuild_find.obj 384 318 ) … … 530 464 cd "%obuild_pwd_snovis_0%" 531 465 SET obuild_pwd_snovis_0= 532 IF %obuild_platform_result% == yes ( 533 SET obuild_cxx_includes=-I${SNOVA_ROOT} 534 ) 535 SET obuild_platform_result= 536 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 537 cd "%obuild_snovis_path%\%obuild_dir_bin%" 538 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 539 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 540 cd "%obuild_pwd_snovis_0%" 541 SET obuild_pwd_snovis_0= 542 IF %obuild_platform_result% == yes ( 543 SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include 544 ) 545 SET obuild_platform_result= 546 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 547 cd "%obuild_snovis_path%\%obuild_dir_bin%" 548 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 549 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 550 cd "%obuild_pwd_snovis_0%" 551 SET obuild_pwd_snovis_0= 552 IF %obuild_platform_result% == yes ( 553 SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include 554 ) 555 SET obuild_platform_result= 556 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 557 cd "%obuild_snovis_path%\%obuild_dir_bin%" 558 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 559 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 560 cd "%obuild_pwd_snovis_0%" 561 SET obuild_pwd_snovis_0= 562 IF %obuild_platform_result% == yes ( 563 SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include 564 ) 565 SET obuild_platform_result= 566 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 567 cd "%obuild_snovis_path%\%obuild_dir_bin%" 568 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 569 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 570 cd "%obuild_pwd_snovis_0%" 571 SET obuild_pwd_snovis_0= 572 IF %obuild_platform_result% == yes ( 466 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28 467 SET obuild_cxx_includes=-I${snova_home} 468 :end_if_platform_28 469 SET obuild_platform_result= 470 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 471 cd "%obuild_snovis_path%\%obuild_dir_bin%" 472 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 473 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 474 cd "%obuild_pwd_snovis_0%" 475 SET obuild_pwd_snovis_0= 476 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29 477 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include 478 :end_if_platform_29 479 SET obuild_platform_result= 480 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 481 cd "%obuild_snovis_path%\%obuild_dir_bin%" 482 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 483 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 484 cd "%obuild_pwd_snovis_0%" 485 SET obuild_pwd_snovis_0= 486 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 487 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include 488 :end_if_platform_30 489 SET obuild_platform_result= 490 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 491 cd "%obuild_snovis_path%\%obuild_dir_bin%" 492 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 493 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 494 cd "%obuild_pwd_snovis_0%" 495 SET obuild_pwd_snovis_0= 496 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31 497 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include 498 :end_if_platform_31 499 SET obuild_platform_result= 500 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 501 cd "%obuild_snovis_path%\%obuild_dir_bin%" 502 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 503 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 504 cd "%obuild_pwd_snovis_0%" 505 SET obuild_pwd_snovis_0= 506 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32 507 SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home} 508 :end_if_platform_32 509 SET obuild_platform_result= 510 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 511 cd "%obuild_snovis_path%\%obuild_dir_bin%" 512 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 513 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 514 cd "%obuild_pwd_snovis_0%" 515 SET obuild_pwd_snovis_0= 516 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33 573 517 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 574 ) 575 SET obuild_platform_result= 576 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 577 cd "%obuild_snovis_path%\%obuild_dir_bin%" 578 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 579 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 580 cd "%obuild_pwd_snovis_0%" 581 SET obuild_pwd_snovis_0= 582 IF %obuild_platform_result% == yes (518 :end_if_platform_33 519 SET obuild_platform_result= 520 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 521 cd "%obuild_snovis_path%\%obuild_dir_bin%" 522 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 523 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 524 cd "%obuild_pwd_snovis_0%" 525 SET obuild_pwd_snovis_0= 526 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34 583 527 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include 584 ) 528 :end_if_platform_34 585 529 SET obuild_platform_result= 586 530 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include" … … 595 539 @IF %obuild_verbose% == yes @ECHO ON 596 540 cd "%obuild_snovis_path%\%obuild_dir_bin%" 597 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_snovis_session\snovis_session.obj /Tp..\applications\snovis_session.cc 598 @IF ERRORLEVEL 1 @GOTO obuild_return 541 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_snovis_session\snovis_session.obj /Tp"..\applications\snovis_session.cc" 1> cl_exe_error 542 @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return 543 @IF NOT ERRORLEVEL 1 @DEL cl_exe_error 599 544 cd "%obuild_snovis_path%\obuild" 600 545 … … 607 552 cd "%obuild_pwd_snovis_0%" 608 553 SET obuild_pwd_snovis_0= 609 IF %obuild_platform_result% == yes (554 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 610 555 SET obuild_cxx_linker_command=c++ 611 ) 556 :end_if_platform_41 612 557 SET obuild_platform_result= 613 558 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 617 562 cd "%obuild_pwd_snovis_0%" 618 563 SET obuild_pwd_snovis_0= 619 IF %obuild_platform_result% == yes (564 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 620 565 SET obuild_cxx_linker_command=c++ 621 ) 566 :end_if_platform_42 622 567 SET obuild_platform_result= 623 568 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 627 572 cd "%obuild_pwd_snovis_0%" 628 573 SET obuild_pwd_snovis_0= 629 IF %obuild_platform_result% == yes (574 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 630 575 SET obuild_cxx_linker_command=cxx 631 ) 576 :end_if_platform_43 632 577 SET obuild_platform_result= 633 578 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 637 582 cd "%obuild_pwd_snovis_0%" 638 583 SET obuild_pwd_snovis_0= 639 IF %obuild_platform_result% == yes (584 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44 640 585 SET obuild_cxx_linker_command=link.exe 641 ) 586 :end_if_platform_44 642 587 SET obuild_platform_result= 643 588 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 649 594 cd "%obuild_pwd_snovis_0%" 650 595 SET obuild_pwd_snovis_0= 651 IF %obuild_platform_result% == yes (596 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45 652 597 SET obuild_cxx_linker_debug=-g 653 ) 598 :end_if_platform_45 654 599 SET obuild_platform_result= 655 600 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 659 604 cd "%obuild_pwd_snovis_0%" 660 605 SET obuild_pwd_snovis_0= 661 IF %obuild_platform_result% == yes (606 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46 662 607 SET obuild_cxx_linker_debug=-g 663 ) 608 :end_if_platform_46 664 609 SET obuild_platform_result= 665 610 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 669 614 cd "%obuild_pwd_snovis_0%" 670 615 SET obuild_pwd_snovis_0= 671 IF %obuild_platform_result% == yes (616 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 672 617 SET obuild_cxx_linker_debug=-g 673 ) 618 :end_if_platform_47 674 619 SET obuild_platform_result= 675 620 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 679 624 cd "%obuild_pwd_snovis_0%" 680 625 SET obuild_pwd_snovis_0= 681 IF %obuild_platform_result% == yes (626 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48 682 627 SET obuild_cxx_linker_debug=/DEBUG 683 ) 628 :end_if_platform_48 684 629 SET obuild_platform_result= 685 630 … … 690 635 cd "%obuild_pwd_snovis_0%" 691 636 SET obuild_pwd_snovis_0= 692 IF %obuild_platform_result% == yes (637 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49 693 638 SET obuild_cxx_linker_options=/nologo 694 ) 695 SET obuild_platform_result= 696 697 IF %obuild_debug% == yes (639 :end_if_platform_49 640 SET obuild_platform_result= 641 642 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_50 698 643 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 699 ) ELSE ( 644 GOTO end_if_db_build_app_snovis_session_sh_50 645 :else_if_db_build_app_snovis_session_sh_50 700 646 SET obuild_cxx_linker_debug_local= 701 ) 702 IF %obuild_optimize% == yes ( 647 :end_if_db_build_app_snovis_session_sh_50 648 649 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_51 703 650 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 704 ) ELSE ( 651 GOTO end_if_opt_build_app_snovis_session_sh_51 652 :else_if_opt_build_app_snovis_session_sh_51 705 653 SET obuild_cxx_linker_optimize_local= 706 ) 654 :end_if_opt_build_app_snovis_session_sh_51 655 707 656 SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib" 708 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snovis_path%\%obuild_dir_bin%\snova.lib" 709 SET obuild_linked_libraries=%obuild_linked_libraries% -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom 710 SET obuild_linked_libraries=%obuild_linked_libraries% -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils 711 SET obuild_linked_libraries=%obuild_linked_libraries% -L${BHEP_ROOT}/Darwin/lib -lbhep 657 SET obuild_linked_libraries=%obuild_linked_libraries% -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils 658 SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep 712 659 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib" 713 660 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib" … … 719 666 cd "%obuild_pwd_snovis_0%" 720 667 SET obuild_pwd_snovis_0= 721 IF %obuild_platform_result% == yes (722 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_ work}/lib/${Geant4_system}-lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global723 ) 724 SET obuild_platform_result= 725 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 726 cd "%obuild_snovis_path%\%obuild_dir_bin%" 727 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 728 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 729 cd "%obuild_pwd_snovis_0%" 730 SET obuild_pwd_snovis_0= 731 IF %obuild_platform_result% == yes (668 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58 669 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 670 :end_if_platform_58 671 SET obuild_platform_result= 672 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 673 cd "%obuild_snovis_path%\%obuild_dir_bin%" 674 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 675 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 676 cd "%obuild_pwd_snovis_0%" 677 SET obuild_pwd_snovis_0= 678 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59 732 679 SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP 733 ) 680 :end_if_platform_59 734 681 SET obuild_platform_result= 735 682 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib" … … 750 697 cd "%obuild_pwd_snovis_0%" 751 698 SET obuild_pwd_snovis_0= 752 IF %obuild_platform_result% == yes (699 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71 753 700 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL 754 ) 755 SET obuild_platform_result= 756 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 757 cd "%obuild_snovis_path%\%obuild_dir_bin%" 758 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 759 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 760 cd "%obuild_pwd_snovis_0%" 761 SET obuild_pwd_snovis_0= 762 IF %obuild_platform_result% == yes (701 :end_if_platform_71 702 SET obuild_platform_result= 703 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 704 cd "%obuild_snovis_path%\%obuild_dir_bin%" 705 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 706 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 707 cd "%obuild_pwd_snovis_0%" 708 SET obuild_pwd_snovis_0= 709 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72 763 710 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices 764 ) 711 :end_if_platform_72 765 712 SET obuild_platform_result= 766 713 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 770 717 cd "%obuild_pwd_snovis_0%" 771 718 SET obuild_pwd_snovis_0= 772 IF %obuild_platform_result% == yes (719 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73 773 720 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm 774 ) 721 :end_if_platform_73 775 722 SET obuild_platform_result= 776 723 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 780 727 cd "%obuild_pwd_snovis_0%" 781 728 SET obuild_pwd_snovis_0= 782 IF %obuild_platform_result% == yes (729 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_74 783 730 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib 784 ) 731 :end_if_platform_74 785 732 SET obuild_platform_result= 786 733 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 790 737 cd "%obuild_pwd_snovis_0%" 791 738 SET obuild_pwd_snovis_0= 792 IF %obuild_platform_result% == yes (739 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_75 793 740 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm 794 ) 795 SET obuild_platform_result= 796 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 797 cd "%obuild_snovis_path%\%obuild_dir_bin%" 798 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 799 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 800 cd "%obuild_pwd_snovis_0%" 801 SET obuild_pwd_snovis_0= 802 IF %obuild_platform_result% == yes (741 :end_if_platform_75 742 SET obuild_platform_result= 743 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 744 cd "%obuild_snovis_path%\%obuild_dir_bin%" 745 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 746 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 747 cd "%obuild_pwd_snovis_0%" 748 SET obuild_pwd_snovis_0= 749 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_76 803 750 SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread 804 ) 751 :end_if_platform_76 805 752 SET obuild_platform_result= 806 753 -
snovis/head/obuild/DOS/build_dll_snovis.bat
r6 r92 88 88 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 89 89 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" ( 90 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" 90 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 91 91 IF EXIST obuild_platform.obj DEL obuild_platform.obj 92 92 ) … … 98 98 cd "%obuild_pwd_snovis_0%" 99 99 SET obuild_pwd_snovis_0= 100 IF %obuild_platform_result% == yes (101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p 1102 ) 103 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snovis_0%" 109 SET obuild_pwd_snovis_0= 110 IF %obuild_platform_result% == yes (100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2 102 :end_if_platform_1 103 SET obuild_platform_result= 104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 105 cd "%obuild_snovis_path%\%obuild_dir_bin%" 106 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 cd "%obuild_pwd_snovis_0%" 109 SET obuild_pwd_snovis_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 111 SET bhep_platform=Darwin 112 ) 112 :end_if_platform_3 113 113 SET obuild_platform_result= 114 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 118 118 cd "%obuild_pwd_snovis_0%" 119 119 SET obuild_pwd_snovis_0= 120 IF %obuild_platform_result% == yes (121 SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils122 ) 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% Darwin`) DO SET obuild_platform_result=%%j 128 cd "%obuild_pwd_snovis_0%" 129 SET obuild_pwd_snovis_0= 130 IF %obuild_platform_result% == yes (131 SET GeomUtils_platform=Darwin-i386132 ) 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0 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% Darwin`) 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 snova_platform=Darwin 132 :end_if_platform_7 133 133 SET obuild_platform_result= 134 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 138 138 cd "%obuild_pwd_snovis_0%" 139 139 SET obuild_pwd_snovis_0= 140 IF %obuild_platform_result% == yes (141 SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2142 ) 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 141 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 142 :end_if_platform_9 143 143 SET obuild_platform_result= 144 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 148 148 cd "%obuild_pwd_snovis_0%" 149 149 SET obuild_pwd_snovis_0= 150 IF %obuild_platform_result% == yes ( 151 SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova 152 ) 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% UNIX`) DO SET obuild_platform_result=%%j 158 cd "%obuild_pwd_snovis_0%" 159 SET obuild_pwd_snovis_0= 160 IF %obuild_platform_result% == yes ( 161 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 162 ) 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% UNIX`) DO SET obuild_platform_result=%%j 168 cd "%obuild_pwd_snovis_0%" 169 SET obuild_pwd_snovis_0= 170 IF %obuild_platform_result% == yes ( 171 SET Geant4_home=/geant4/geant4.8.2 172 ) 173 SET obuild_platform_result= 174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 175 cd "%obuild_snovis_path%\%obuild_dir_bin%" 176 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 178 cd "%obuild_pwd_snovis_0%" 179 SET obuild_pwd_snovis_0= 180 IF %obuild_platform_result% == yes ( 181 SET Geant4_work=${Geant4_home}/Darwin 182 ) 150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 151 SET Geant4_home=/usr/local/geant4/8.2 152 :end_if_platform_11 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% Darwin`) 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_12 161 SET obuild_cxx_command=c++ 162 :end_if_platform_12 183 163 SET obuild_platform_result= 184 164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 188 168 cd "%obuild_pwd_snovis_0%" 189 169 SET obuild_pwd_snovis_0= 190 IF %obuild_platform_result% == yes ( 191 SET Geant4_work=${Geant4_home}/slc3_gcc323 192 ) 193 SET obuild_platform_result= 194 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 195 cd "%obuild_snovis_path%\%obuild_dir_bin%" 196 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 197 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 198 cd "%obuild_pwd_snovis_0%" 199 SET obuild_pwd_snovis_0= 200 IF %obuild_platform_result% == yes ( 201 SET Geant4_system=Darwin-g++ 202 ) 170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 171 SET obuild_cxx_command=c++ 172 :end_if_platform_13 173 SET obuild_platform_result= 174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 175 cd "%obuild_snovis_path%\%obuild_dir_bin%" 176 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 178 cd "%obuild_pwd_snovis_0%" 179 SET obuild_pwd_snovis_0= 180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 181 SET obuild_cxx_command=cxx 182 :end_if_platform_14 183 SET obuild_platform_result= 184 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 185 cd "%obuild_snovis_path%\%obuild_dir_bin%" 186 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 187 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 188 cd "%obuild_pwd_snovis_0%" 189 SET obuild_pwd_snovis_0= 190 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 191 SET obuild_cxx_command=cl.exe 192 :end_if_platform_15 193 SET obuild_platform_result= 194 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 195 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 197 cd "%obuild_snovis_path%\%obuild_dir_bin%" 198 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 200 cd "%obuild_pwd_snovis_0%" 201 SET obuild_pwd_snovis_0= 202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 203 SET obuild_cxx_optimize=-O 204 :end_if_platform_16 203 205 SET obuild_platform_result= 204 206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 208 210 cd "%obuild_pwd_snovis_0%" 209 211 SET obuild_pwd_snovis_0= 210 IF %obuild_platform_result% == yes ( 211 SET Geant4_system=Linux-g++ 212 ) 212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 213 SET obuild_cxx_optimize=-O 214 :end_if_platform_17 215 SET obuild_platform_result= 216 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 217 cd "%obuild_snovis_path%\%obuild_dir_bin%" 218 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 219 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 220 cd "%obuild_pwd_snovis_0%" 221 SET obuild_pwd_snovis_0= 222 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 223 SET obuild_cxx_optimize=-O 224 :end_if_platform_18 213 225 SET obuild_platform_result= 214 226 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 218 230 cd "%obuild_pwd_snovis_0%" 219 231 SET obuild_pwd_snovis_0= 220 IF %obuild_platform_result% == yes ( 221 SET Geant4_system=WIN32-VC 222 ) 223 SET obuild_platform_result= 224 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 225 cd "%obuild_snovis_path%\%obuild_dir_bin%" 226 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 227 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 228 cd "%obuild_pwd_snovis_0%" 229 SET obuild_pwd_snovis_0= 230 IF %obuild_platform_result% == yes ( 231 SET obuild_cxx_command=c++ 232 ) 232 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 233 SET obuild_cxx_optimize=/O2 234 :end_if_platform_19 235 SET obuild_platform_result= 236 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 238 cd "%obuild_snovis_path%\%obuild_dir_bin%" 239 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 241 cd "%obuild_pwd_snovis_0%" 242 SET obuild_pwd_snovis_0= 243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 244 SET obuild_cxx_debug=-g 245 :end_if_platform_20 233 246 SET obuild_platform_result= 234 247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 238 251 cd "%obuild_pwd_snovis_0%" 239 252 SET obuild_pwd_snovis_0= 240 IF %obuild_platform_result% == yes (241 SET obuild_cxx_ command=c++242 ) 253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 254 SET obuild_cxx_debug=-g 255 :end_if_platform_21 243 256 SET obuild_platform_result= 244 257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 248 261 cd "%obuild_pwd_snovis_0%" 249 262 SET obuild_pwd_snovis_0= 250 IF %obuild_platform_result% == yes (251 SET obuild_cxx_ command=cxx252 ) 263 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 264 SET obuild_cxx_debug=-g 265 :end_if_platform_22 253 266 SET obuild_platform_result= 254 267 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 258 271 cd "%obuild_pwd_snovis_0%" 259 272 SET obuild_pwd_snovis_0= 260 IF %obuild_platform_result% == yes ( 261 SET obuild_cxx_command=cl.exe 262 ) 263 SET obuild_platform_result= 264 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 265 266 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 267 cd "%obuild_snovis_path%\%obuild_dir_bin%" 268 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 269 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 270 cd "%obuild_pwd_snovis_0%" 271 SET obuild_pwd_snovis_0= 272 IF %obuild_platform_result% == yes ( 273 SET obuild_cxx_optimize=-O 274 ) 275 SET obuild_platform_result= 273 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23 274 SET obuild_cxx_debug=/ZI /Od 275 :end_if_platform_23 276 SET obuild_platform_result= 277 276 278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 277 279 cd "%obuild_snovis_path%\%obuild_dir_bin%" … … 280 282 cd "%obuild_pwd_snovis_0%" 281 283 SET obuild_pwd_snovis_0= 282 IF %obuild_platform_result% == yes ( 283 SET obuild_cxx_optimize=-O 284 ) 285 SET obuild_platform_result= 286 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 287 cd "%obuild_snovis_path%\%obuild_dir_bin%" 288 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 289 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 290 cd "%obuild_pwd_snovis_0%" 291 SET obuild_pwd_snovis_0= 292 IF %obuild_platform_result% == yes ( 293 SET obuild_cxx_optimize=-O 294 ) 284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 285 SET obuild_cxx_options=-fPIC 286 :end_if_platform_24 295 287 SET obuild_platform_result= 296 288 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 300 292 cd "%obuild_pwd_snovis_0%" 301 293 SET obuild_pwd_snovis_0= 302 IF %obuild_platform_result% == yes ( 303 SET obuild_cxx_optimize=/O2 304 ) 305 SET obuild_platform_result= 306 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% Darwin`) DO SET obuild_platform_result=%%j 311 cd "%obuild_pwd_snovis_0%" 312 SET obuild_pwd_snovis_0= 313 IF %obuild_platform_result% == yes ( 314 SET obuild_cxx_debug=-g 315 ) 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% Linux`) DO SET obuild_platform_result=%%j 321 cd "%obuild_pwd_snovis_0%" 322 SET obuild_pwd_snovis_0= 323 IF %obuild_platform_result% == yes ( 324 SET obuild_cxx_debug=-g 325 ) 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% OSF1`) DO SET obuild_platform_result=%%j 331 cd "%obuild_pwd_snovis_0%" 332 SET obuild_pwd_snovis_0= 333 IF %obuild_platform_result% == yes ( 334 SET obuild_cxx_debug=-g 335 ) 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% Windows_NT`) DO SET obuild_platform_result=%%j 341 cd "%obuild_pwd_snovis_0%" 342 SET obuild_pwd_snovis_0= 343 IF %obuild_platform_result% == yes ( 344 SET obuild_cxx_debug=/ZI /Od 345 ) 346 SET obuild_platform_result= 347 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% Linux`) DO SET obuild_platform_result=%%j 352 cd "%obuild_pwd_snovis_0%" 353 SET obuild_pwd_snovis_0= 354 IF %obuild_platform_result% == yes ( 355 SET obuild_cxx_options=-fPIC 356 ) 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% Windows_NT`) DO SET obuild_platform_result=%%j 362 cd "%obuild_pwd_snovis_0%" 363 SET obuild_pwd_snovis_0= 364 IF %obuild_platform_result% == yes ( 294 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 365 295 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 366 ) 367 SET obuild_platform_result= 368 369 IF %obuild_debug% == yes (296 :end_if_platform_25 297 SET obuild_platform_result= 298 299 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_26 370 300 SET obuild_cxx_debug_local=%obuild_cxx_debug% 371 ) ELSE ( 301 GOTO end_if_db_build_dll_snovis_sh_26 302 :else_if_db_build_dll_snovis_sh_26 372 303 SET obuild_cxx_debug_local= 373 ) 374 IF %obuild_optimize% == yes ( 304 :end_if_db_build_dll_snovis_sh_26 305 306 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_27 375 307 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 376 ) ELSE ( 308 GOTO end_if_opt_build_dll_snovis_sh_27 309 :else_if_opt_build_dll_snovis_sh_27 377 310 SET obuild_cxx_optimize_local= 378 ) 311 :end_if_opt_build_dll_snovis_sh_27 312 379 313 380 314 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 381 315 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( 382 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 316 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL 383 317 IF EXIST obuild_find.obj DEL obuild_find.obj 384 318 ) … … 532 466 cd "%obuild_pwd_snovis_0%" 533 467 SET obuild_pwd_snovis_0= 534 IF %obuild_platform_result% == yes (468 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 535 469 SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers 536 ) 470 :end_if_platform_37 537 471 SET obuild_platform_result= 538 472 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 542 476 cd "%obuild_pwd_snovis_0%" 543 477 SET obuild_pwd_snovis_0= 544 IF %obuild_platform_result% == yes (478 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 545 479 SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include 546 ) 480 :end_if_platform_38 547 481 SET obuild_platform_result= 548 482 … … 552 486 @IF %obuild_verbose% == yes @ECHO ON 553 487 cd "%obuild_snovis_path%\%obuild_dir_bin%" 554 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Callbacks.obj /Tp..\source\Callbacks.cxx 555 @IF ERRORLEVEL 1 @GOTO obuild_return 488 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Callbacks.obj /Tp"..\source\Callbacks.cxx" 1> cl_exe_error 489 @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return 490 @IF NOT ERRORLEVEL 1 @DEL cl_exe_error 556 491 cd "%obuild_snovis_path%\obuild" 557 492 558 493 cd "%obuild_snovis_path%\%obuild_dir_bin%" 559 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\InventorCallbacks.obj /Tp..\source\InventorCallbacks.cxx 560 @IF ERRORLEVEL 1 @GOTO obuild_return 494 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\InventorCallbacks.obj /Tp"..\source\InventorCallbacks.cxx" 1> cl_exe_error 495 @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return 496 @IF NOT ERRORLEVEL 1 @DEL cl_exe_error 561 497 cd "%obuild_snovis_path%\obuild" 562 498 563 499 cd "%obuild_snovis_path%\%obuild_dir_bin%" 564 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Layouts.obj /Tp..\source\Layouts.cxx 565 @IF ERRORLEVEL 1 @GOTO obuild_return 500 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Layouts.obj /Tp"..\source\Layouts.cxx" 1> cl_exe_error 501 @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return 502 @IF NOT ERRORLEVEL 1 @DEL cl_exe_error 566 503 cd "%obuild_snovis_path%\obuild" 567 504 … … 585 522 cd "%obuild_pwd_snovis_0%" 586 523 SET obuild_pwd_snovis_0= 587 IF %obuild_platform_result% == yes (524 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53 588 525 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL 589 ) 590 SET obuild_platform_result= 591 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 592 cd "%obuild_snovis_path%\%obuild_dir_bin%" 593 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 594 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 595 cd "%obuild_pwd_snovis_0%" 596 SET obuild_pwd_snovis_0= 597 IF %obuild_platform_result% == yes (526 :end_if_platform_53 527 SET obuild_platform_result= 528 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 529 cd "%obuild_snovis_path%\%obuild_dir_bin%" 530 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 531 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 532 cd "%obuild_pwd_snovis_0%" 533 SET obuild_pwd_snovis_0= 534 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54 598 535 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices 599 ) 536 :end_if_platform_54 600 537 SET obuild_platform_result= 601 538 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 605 542 cd "%obuild_pwd_snovis_0%" 606 543 SET obuild_pwd_snovis_0= 607 IF %obuild_platform_result% == yes (544 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55 608 545 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm 609 ) 546 :end_if_platform_55 610 547 SET obuild_platform_result= 611 548 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 615 552 cd "%obuild_pwd_snovis_0%" 616 553 SET obuild_pwd_snovis_0= 617 IF %obuild_platform_result% == yes (554 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56 618 555 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib 619 ) 556 :end_if_platform_56 620 557 SET obuild_platform_result= 621 558 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 625 562 cd "%obuild_pwd_snovis_0%" 626 563 SET obuild_pwd_snovis_0= 627 IF %obuild_platform_result% == yes (564 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57 628 565 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm 629 ) 566 :end_if_platform_57 630 567 SET obuild_platform_result= 631 568 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 635 572 cd "%obuild_pwd_snovis_0%" 636 573 SET obuild_pwd_snovis_0= 637 IF %obuild_platform_result% == yes (574 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58 638 575 SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread 639 ) 576 :end_if_platform_58 640 577 SET obuild_platform_result= 641 578 … … 652 589 653 590 REM # Build the obuild_windef.exe utility program : 654 cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 591 cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL 655 592 IF EXIST obuild_windef.obj DEL obuild_windef.obj 656 593 657 594 REM # Building the .def file : 658 595 @IF %obuild_verbose% == yes @ECHO ON 659 dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc 596 dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc 1> dumpbin_exe_error .\dll_snovis\snovis.arc 597 @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return 598 @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error 660 599 @IF %obuild_verbose% == yes @ECHO OFF 661 600 .\obuild_windef.exe snovis < .\dll_snovis\tmp > .\dll_snovis\snovis.def … … 663 602 REM # It produces a .exp file. 664 603 @IF %obuild_verbose% == yes @ECHO ON 665 lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def 604 lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def 1> lib_exe_error 605 @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return 606 @IF NOT ERRORLEVEL 1 @DEL lib_exe_error 666 607 @IF %obuild_verbose% == yes @ECHO OFF 667 608 -
snovis/head/obuild/setup.bat
r6 r92 44 44 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 45 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" 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 47 IF EXIST obuild_platform.obj DEL obuild_platform.obj 48 48 ) … … 54 54 cd "%obuild_pwd_snovis_0%" 55 55 SET obuild_pwd_snovis_0= 56 IF %obuild_platform_result% == yes (57 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p 158 ) 56 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 57 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2 58 :end_if_platform_1 59 59 SET obuild_platform_result= 60 60 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 64 64 cd "%obuild_pwd_snovis_0%" 65 65 SET obuild_pwd_snovis_0= 66 IF %obuild_platform_result% == yes (66 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 67 67 SET bhep_platform=Darwin 68 ) 68 :end_if_platform_3 69 69 SET obuild_platform_result= 70 70 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 74 74 cd "%obuild_pwd_snovis_0%" 75 75 SET obuild_pwd_snovis_0= 76 IF %obuild_platform_result% == yes (77 SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils78 ) 76 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 77 SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0 78 :end_if_platform_5 79 79 SET obuild_platform_result= 80 80 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 84 84 cd "%obuild_pwd_snovis_0%" 85 85 SET obuild_pwd_snovis_0= 86 IF %obuild_platform_result% == yes (87 SET GeomUtils_platform=Darwin-i38688 ) 86 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 87 SET snova_platform=Darwin 88 :end_if_platform_7 89 89 SET obuild_platform_result= 90 90 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 94 94 cd "%obuild_pwd_snovis_0%" 95 95 SET obuild_pwd_snovis_0= 96 IF %obuild_platform_result% == yes (97 SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom298 ) 96 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 97 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 98 :end_if_platform_9 99 99 SET obuild_platform_result= 100 100 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d … … 104 104 cd "%obuild_pwd_snovis_0%" 105 105 SET obuild_pwd_snovis_0= 106 IF %obuild_platform_result% == yes ( 107 SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova 108 ) 109 SET obuild_platform_result= 110 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 111 cd "%obuild_snovis_path%\%obuild_dir_bin%" 112 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 113 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 114 cd "%obuild_pwd_snovis_0%" 115 SET obuild_pwd_snovis_0= 116 IF %obuild_platform_result% == yes ( 117 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 118 ) 119 SET obuild_platform_result= 120 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 121 cd "%obuild_snovis_path%\%obuild_dir_bin%" 122 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 123 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 124 cd "%obuild_pwd_snovis_0%" 125 SET obuild_pwd_snovis_0= 126 IF %obuild_platform_result% == yes ( 127 SET Geant4_home=/geant4/geant4.8.2 128 ) 129 SET obuild_platform_result= 130 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 131 cd "%obuild_snovis_path%\%obuild_dir_bin%" 132 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 133 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 134 cd "%obuild_pwd_snovis_0%" 135 SET obuild_pwd_snovis_0= 136 IF %obuild_platform_result% == yes ( 137 SET Geant4_work=${Geant4_home}/Darwin 138 ) 139 SET obuild_platform_result= 140 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 141 cd "%obuild_snovis_path%\%obuild_dir_bin%" 142 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 143 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 144 cd "%obuild_pwd_snovis_0%" 145 SET obuild_pwd_snovis_0= 146 IF %obuild_platform_result% == yes ( 147 SET Geant4_work=${Geant4_home}/slc3_gcc323 148 ) 149 SET obuild_platform_result= 150 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 151 cd "%obuild_snovis_path%\%obuild_dir_bin%" 152 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 153 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 154 cd "%obuild_pwd_snovis_0%" 155 SET obuild_pwd_snovis_0= 156 IF %obuild_platform_result% == yes ( 157 SET Geant4_system=Darwin-g++ 158 ) 159 SET obuild_platform_result= 160 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 161 cd "%obuild_snovis_path%\%obuild_dir_bin%" 162 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 163 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 164 cd "%obuild_pwd_snovis_0%" 165 SET obuild_pwd_snovis_0= 166 IF %obuild_platform_result% == yes ( 167 SET Geant4_system=Linux-g++ 168 ) 169 SET obuild_platform_result= 170 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d 171 cd "%obuild_snovis_path%\%obuild_dir_bin%" 172 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 173 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 174 cd "%obuild_pwd_snovis_0%" 175 SET obuild_pwd_snovis_0= 176 IF %obuild_platform_result% == yes ( 177 SET Geant4_system=WIN32-VC 178 ) 106 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 107 SET Geant4_home=/usr/local/geant4/8.2 108 :end_if_platform_11 179 109 SET obuild_platform_result= 180 110 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" 181 111 IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( 182 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 112 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL 183 113 IF EXIST obuild_find.obj DEL obuild_find.obj 184 114 ) … … 214 144 SET NeutronHPCrossSections=%Geant4_home%\data\G4NDL3.10 215 145 216 IF NOT DEFINED PATH (146 IF DEFINED PATH GOTO else_if_path_snovis_17 217 147 SET PATH=%obuild_snovis_path%\%obuild_dir_bin% 218 ) ELSE ( 148 GOTO end_if_path_snovis_17 149 :else_if_path_snovis_17 219 150 SET PATH=%PATH%;%obuild_snovis_path%\%obuild_dir_bin% 220 ) 151 :end_if_path_snovis_17 221 152 222 153 :obuild_return -
snovis/head/obuild/setup.csh
r6 r92 129 129 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 130 130 if ( ${obuild_platform_result} == yes ) then 131 set bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p 1"131 set bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2" 132 132 endif 133 133 unset obuild_platform_result … … 147 147 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 148 148 if ( ${obuild_platform_result} == yes ) then 149 set GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"150 endif 151 unset obuild_platform_result 152 if ( "${obuild_platform_exe}" == "" ) then 153 echo "Variable obuild_platform_exe not defined." 154 exit 155 endif 156 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin` 157 if ( ${obuild_platform_result} == yes ) then 158 set GeomUtils_platform="Darwin-i386"149 set snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0" 150 endif 151 unset obuild_platform_result 152 if ( "${obuild_platform_exe}" == "" ) then 153 echo "Variable obuild_platform_exe not defined." 154 exit 155 endif 156 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin` 157 if ( ${obuild_platform_result} == yes ) then 158 set snova_platform="Darwin" 159 159 endif 160 160 unset obuild_platform_result … … 165 165 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 166 166 if ( ${obuild_platform_result} == yes ) then 167 set SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"167 set CLHEP_home="/usr/local/CLHEP/2.0.3.1" 168 168 endif 169 169 unset obuild_platform_result … … 174 174 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 175 175 if ( ${obuild_platform_result} == yes ) then 176 set snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova" 177 endif 178 unset obuild_platform_result 179 if ( "${obuild_platform_exe}" == "" ) then 180 echo "Variable obuild_platform_exe not defined." 181 exit 182 endif 183 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 184 if ( ${obuild_platform_result} == yes ) then 185 set CLHEP_home="/usr/local/CLHEP/2.0.3.1" 186 endif 187 unset obuild_platform_result 188 if ( "${obuild_platform_exe}" == "" ) then 189 echo "Variable obuild_platform_exe not defined." 190 exit 191 endif 192 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX` 193 if ( ${obuild_platform_result} == yes ) then 194 set Geant4_home="/geant4/geant4.8.2" 195 endif 196 unset obuild_platform_result 197 if ( "${obuild_platform_exe}" == "" ) then 198 echo "Variable obuild_platform_exe not defined." 199 exit 200 endif 201 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin` 202 if ( ${obuild_platform_result} == yes ) then 203 set Geant4_work="${Geant4_home}/Darwin" 204 endif 205 unset obuild_platform_result 206 if ( "${obuild_platform_exe}" == "" ) then 207 echo "Variable obuild_platform_exe not defined." 208 exit 209 endif 210 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Linux` 211 if ( ${obuild_platform_result} == yes ) then 212 set Geant4_work="${Geant4_home}/slc3_gcc323" 213 endif 214 unset obuild_platform_result 215 if ( "${obuild_platform_exe}" == "" ) then 216 echo "Variable obuild_platform_exe not defined." 217 exit 218 endif 219 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin` 220 if ( ${obuild_platform_result} == yes ) then 221 set Geant4_system="Darwin-g++" 222 endif 223 unset obuild_platform_result 224 if ( "${obuild_platform_exe}" == "" ) then 225 echo "Variable obuild_platform_exe not defined." 226 exit 227 endif 228 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Linux` 229 if ( ${obuild_platform_result} == yes ) then 230 set Geant4_system="Linux-g++" 231 endif 232 unset obuild_platform_result 233 if ( "${obuild_platform_exe}" == "" ) then 234 echo "Variable obuild_platform_exe not defined." 235 exit 236 endif 237 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Windows_NT` 238 if ( ${obuild_platform_result} == yes ) then 239 set Geant4_system="WIN32-VC" 176 set Geant4_home="/usr/local/geant4/8.2" 240 177 endif 241 178 unset obuild_platform_result … … 302 239 if ( ${obuild_platform_result} == yes ) then 303 240 if ( $?DYLD_LIBRARY_PATH ) then 304 setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${ GeomUtils_home}/Darwin-i386/lib"305 else 306 setenv DYLD_LIBRARY_PATH "${ GeomUtils_home}/Darwin-i386/lib"241 setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin" 242 else 243 setenv DYLD_LIBRARY_PATH "${bhep_home}/Darwin" 307 244 endif 308 245 endif … … 316 253 if ( ${obuild_platform_result} == yes ) then 317 254 if ( $?LD_LIBRARY_PATH ) then 318 setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${ GeomUtils_home}/Darwin-i386/lib"319 else 320 setenv LD_LIBRARY_PATH "${ GeomUtils_home}/Darwin-i386/lib"255 setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${bhep_home}/Darwin" 256 else 257 setenv LD_LIBRARY_PATH "${bhep_home}/Darwin" 321 258 endif 322 259 endif … … 338 275 if ( ${obuild_platform_result} == yes ) then 339 276 if ( $?DYLD_LIBRARY_PATH ) then 340 setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${ SNgeom2_home}/Darwin-i386/lib"341 else 342 setenv DYLD_LIBRARY_PATH "${ SNgeom2_home}/Darwin-i386/lib"277 setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${snova_home}/Darwin" 278 else 279 setenv DYLD_LIBRARY_PATH "${snova_home}/Darwin" 343 280 endif 344 281 endif … … 352 289 if ( ${obuild_platform_result} == yes ) then 353 290 if ( $?LD_LIBRARY_PATH ) then 354 setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib" 355 else 356 setenv LD_LIBRARY_PATH "${SNgeom2_home}/Darwin-i386/lib" 357 endif 358 endif 359 unset obuild_platform_result 360 endif 361 unset obuild_platform_result 362 363 if ( "${obuild_platform_exe}" == "" ) then 364 echo "Variable obuild_platform_exe not defined." 365 exit 366 endif 367 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin` 368 if ( ${obuild_platform_result} == yes ) then 369 if ( "${obuild_platform_exe}" == "" ) then 370 echo "Variable obuild_platform_exe not defined." 371 exit 372 endif 373 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin` 374 if ( ${obuild_platform_result} == yes ) then 375 if ( $?DYLD_LIBRARY_PATH ) then 376 setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin/lib" 377 else 378 setenv DYLD_LIBRARY_PATH "${bhep_home}/Darwin/lib" 379 endif 380 endif 381 unset obuild_platform_result 382 else 383 if ( "${obuild_platform_exe}" == "" ) then 384 echo "Variable obuild_platform_exe not defined." 385 exit 386 endif 387 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin` 388 if ( ${obuild_platform_result} == yes ) then 389 if ( $?LD_LIBRARY_PATH ) then 390 setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${bhep_home}/Darwin/lib" 391 else 392 setenv LD_LIBRARY_PATH "${bhep_home}/Darwin/lib" 291 setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${snova_home}/Darwin" 292 else 293 setenv LD_LIBRARY_PATH "${snova_home}/Darwin" 393 294 endif 394 295 endif -
snovis/head/obuild/setup.sh
r6 r92 116 116 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 117 117 if [ ${obuild_platform_result} = yes ] ; then 118 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p 1"118 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2" 119 119 fi 120 120 unset obuild_platform_result … … 134 134 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 135 135 if [ ${obuild_platform_result} = yes ] ; then 136 GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"137 fi 138 unset obuild_platform_result 139 if [ "${obuild_platform_exe}" = "" ] ; then 140 echo "Variable obuild_platform_exe not defined." 141 return 142 fi 143 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 144 if [ ${obuild_platform_result} = yes ] ; then 145 GeomUtils_platform="Darwin-i386"136 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0" 137 fi 138 unset obuild_platform_result 139 if [ "${obuild_platform_exe}" = "" ] ; then 140 echo "Variable obuild_platform_exe not defined." 141 return 142 fi 143 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 144 if [ ${obuild_platform_result} = yes ] ; then 145 snova_platform="Darwin" 146 146 fi 147 147 unset obuild_platform_result … … 152 152 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 153 153 if [ ${obuild_platform_result} = yes ] ; then 154 SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"154 CLHEP_home="/usr/local/CLHEP/2.0.3.1" 155 155 fi 156 156 unset obuild_platform_result … … 161 161 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 162 162 if [ ${obuild_platform_result} = yes ] ; then 163 snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova" 164 fi 165 unset obuild_platform_result 166 if [ "${obuild_platform_exe}" = "" ] ; then 167 echo "Variable obuild_platform_exe not defined." 168 return 169 fi 170 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 171 if [ ${obuild_platform_result} = yes ] ; then 172 CLHEP_home="/usr/local/CLHEP/2.0.3.1" 173 fi 174 unset obuild_platform_result 175 if [ "${obuild_platform_exe}" = "" ] ; then 176 echo "Variable obuild_platform_exe not defined." 177 return 178 fi 179 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 180 if [ ${obuild_platform_result} = yes ] ; then 181 Geant4_home="/geant4/geant4.8.2" 182 fi 183 unset obuild_platform_result 184 if [ "${obuild_platform_exe}" = "" ] ; then 185 echo "Variable obuild_platform_exe not defined." 186 return 187 fi 188 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 189 if [ ${obuild_platform_result} = yes ] ; then 190 Geant4_work="${Geant4_home}/Darwin" 191 fi 192 unset obuild_platform_result 193 if [ "${obuild_platform_exe}" = "" ] ; then 194 echo "Variable obuild_platform_exe not defined." 195 return 196 fi 197 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 198 if [ ${obuild_platform_result} = yes ] ; then 199 Geant4_work="${Geant4_home}/slc3_gcc323" 200 fi 201 unset obuild_platform_result 202 if [ "${obuild_platform_exe}" = "" ] ; then 203 echo "Variable obuild_platform_exe not defined." 204 return 205 fi 206 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 207 if [ ${obuild_platform_result} = yes ] ; then 208 Geant4_system="Darwin-g++" 209 fi 210 unset obuild_platform_result 211 if [ "${obuild_platform_exe}" = "" ] ; then 212 echo "Variable obuild_platform_exe not defined." 213 return 214 fi 215 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 216 if [ ${obuild_platform_result} = yes ] ; then 217 Geant4_system="Linux-g++" 218 fi 219 unset obuild_platform_result 220 if [ "${obuild_platform_exe}" = "" ] ; then 221 echo "Variable obuild_platform_exe not defined." 222 return 223 fi 224 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` 225 if [ ${obuild_platform_result} = yes ] ; then 226 Geant4_system="WIN32-VC" 163 Geant4_home="/usr/local/geant4/8.2" 227 164 fi 228 165 unset obuild_platform_result … … 306 243 if [ ${obuild_platform_result} = yes ] ; then 307 244 if [ "${DYLD_LIBRARY_PATH}" = "" ] ; then 308 DYLD_LIBRARY_PATH="${ GeomUtils_home}/Darwin-i386/lib"309 export DYLD_LIBRARY_PATH 310 else 311 DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${ GeomUtils_home}/Darwin-i386/lib"245 DYLD_LIBRARY_PATH="${bhep_home}/Darwin" 246 export DYLD_LIBRARY_PATH 247 else 248 DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin" 312 249 export DYLD_LIBRARY_PATH 313 250 fi … … 322 259 if [ ${obuild_platform_result} = yes ] ; then 323 260 if [ "${LD_LIBRARY_PATH}" = "" ] ; then 324 LD_LIBRARY_PATH="${ GeomUtils_home}/Darwin-i386/lib"325 export LD_LIBRARY_PATH 326 else 327 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ GeomUtils_home}/Darwin-i386/lib"261 LD_LIBRARY_PATH="${bhep_home}/Darwin" 262 export LD_LIBRARY_PATH 263 else 264 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${bhep_home}/Darwin" 328 265 export LD_LIBRARY_PATH 329 266 fi … … 346 283 if [ ${obuild_platform_result} = yes ] ; then 347 284 if [ "${DYLD_LIBRARY_PATH}" = "" ] ; then 348 DYLD_LIBRARY_PATH="${ SNgeom2_home}/Darwin-i386/lib"349 export DYLD_LIBRARY_PATH 350 else 351 DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${ SNgeom2_home}/Darwin-i386/lib"285 DYLD_LIBRARY_PATH="${snova_home}/Darwin" 286 export DYLD_LIBRARY_PATH 287 else 288 DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${snova_home}/Darwin" 352 289 export DYLD_LIBRARY_PATH 353 290 fi … … 362 299 if [ ${obuild_platform_result} = yes ] ; then 363 300 if [ "${LD_LIBRARY_PATH}" = "" ] ; then 364 LD_LIBRARY_PATH="${SNgeom2_home}/Darwin-i386/lib" 365 export LD_LIBRARY_PATH 366 else 367 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib" 368 export LD_LIBRARY_PATH 369 fi 370 fi 371 unset obuild_platform_result 372 fi 373 unset obuild_platform_result 374 375 if [ "${obuild_platform_exe}" = "" ] ; then 376 echo "Variable obuild_platform_exe not defined." 377 return 378 fi 379 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 380 if [ ${obuild_platform_result} = yes ] ; then 381 if [ "${obuild_platform_exe}" = "" ] ; then 382 echo "Variable obuild_platform_exe not defined." 383 return 384 fi 385 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 386 if [ ${obuild_platform_result} = yes ] ; then 387 if [ "${DYLD_LIBRARY_PATH}" = "" ] ; then 388 DYLD_LIBRARY_PATH="${bhep_home}/Darwin/lib" 389 export DYLD_LIBRARY_PATH 390 else 391 DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin/lib" 392 export DYLD_LIBRARY_PATH 393 fi 394 fi 395 unset obuild_platform_result 396 else 397 if [ "${obuild_platform_exe}" = "" ] ; then 398 echo "Variable obuild_platform_exe not defined." 399 return 400 fi 401 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 402 if [ ${obuild_platform_result} = yes ] ; then 403 if [ "${LD_LIBRARY_PATH}" = "" ] ; then 404 LD_LIBRARY_PATH="${bhep_home}/Darwin/lib" 405 export LD_LIBRARY_PATH 406 else 407 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${bhep_home}/Darwin/lib" 301 LD_LIBRARY_PATH="${snova_home}/Darwin" 302 export LD_LIBRARY_PATH 303 else 304 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${snova_home}/Darwin" 408 305 export LD_LIBRARY_PATH 409 306 fi -
snovis/head/obuild/sh/build
r6 r92 115 115 fi 116 116 117 # Check foreign packages / resources :118 if [ -e ./sh/check_foreigns ] ; then119 ./sh/check_foreigns120 fi121 122 if [ "${obuild_group}" = main ] ; then123 if [ "${obuild_do_mains}" = yes ] ; then124 if [ -e ./sh/build_lib_snova ] ; then125 ./sh/build_lib_snova ${obuild_args}126 obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi127 fi128 fi129 fi130 131 117 if [ "${obuild_group}" = main ] ; then 132 118 if [ "${obuild_do_mains}" = yes ] ; then -
snovis/head/obuild/sh/build_app_prog_snova
r6 r92 109 109 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 110 110 if [ ${obuild_platform_result} = yes ] ; then 111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p 1"111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2" 112 112 fi 113 113 unset obuild_platform_result … … 127 127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 128 128 if [ ${obuild_platform_result} = yes ] ; then 129 GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils" 130 fi 131 unset obuild_platform_result 132 if [ "${obuild_platform_exe}" = "" ] ; then 133 echo "Variable obuild_platform_exe not defined." 134 exit 135 fi 136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 137 if [ ${obuild_platform_result} = yes ] ; then 138 GeomUtils_platform="Darwin-i386" 139 fi 140 unset obuild_platform_result 141 if [ "${obuild_platform_exe}" = "" ] ; then 142 echo "Variable obuild_platform_exe not defined." 143 exit 144 fi 145 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 146 if [ ${obuild_platform_result} = yes ] ; then 147 SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2" 148 fi 149 unset obuild_platform_result 150 if [ "${obuild_platform_exe}" = "" ] ; then 151 echo "Variable obuild_platform_exe not defined." 152 exit 153 fi 154 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 155 if [ ${obuild_platform_result} = yes ] ; then 156 snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova" 129 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0" 130 fi 131 unset obuild_platform_result 132 if [ "${obuild_platform_exe}" = "" ] ; then 133 echo "Variable obuild_platform_exe not defined." 134 exit 135 fi 136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 137 if [ ${obuild_platform_result} = yes ] ; then 138 snova_platform="Darwin" 157 139 fi 158 140 unset obuild_platform_result … … 172 154 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 173 155 if [ ${obuild_platform_result} = yes ] ; then 174 Geant4_home="/geant4/geant4.8.2" 175 fi 176 unset obuild_platform_result 177 if [ "${obuild_platform_exe}" = "" ] ; then 178 echo "Variable obuild_platform_exe not defined." 179 exit 180 fi 181 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 182 if [ ${obuild_platform_result} = yes ] ; then 183 Geant4_work="${Geant4_home}/Darwin" 184 fi 185 unset obuild_platform_result 186 if [ "${obuild_platform_exe}" = "" ] ; then 187 echo "Variable obuild_platform_exe not defined." 188 exit 189 fi 190 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 191 if [ ${obuild_platform_result} = yes ] ; then 192 Geant4_work="${Geant4_home}/slc3_gcc323" 193 fi 194 unset obuild_platform_result 195 if [ "${obuild_platform_exe}" = "" ] ; then 196 echo "Variable obuild_platform_exe not defined." 197 exit 198 fi 199 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 200 if [ ${obuild_platform_result} = yes ] ; then 201 Geant4_system="Darwin-g++" 202 fi 203 unset obuild_platform_result 204 if [ "${obuild_platform_exe}" = "" ] ; then 205 echo "Variable obuild_platform_exe not defined." 206 exit 207 fi 208 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 209 if [ ${obuild_platform_result} = yes ] ; then 210 Geant4_system="Linux-g++" 211 fi 212 unset obuild_platform_result 213 if [ "${obuild_platform_exe}" = "" ] ; then 214 echo "Variable obuild_platform_exe not defined." 215 exit 216 fi 217 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` 218 if [ ${obuild_platform_result} = yes ] ; then 219 Geant4_system="WIN32-VC" 156 Geant4_home="/usr/local/geant4/8.2" 220 157 fi 221 158 unset obuild_platform_result … … 422 359 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 423 360 if [ ${obuild_platform_result} = yes ] ; then 424 obuild_cxx_includes="-I${SNOVA_ROOT}" 425 fi 426 unset obuild_platform_result 427 if [ "${obuild_platform_exe}" = "" ] ; then 428 echo "Variable obuild_platform_exe not defined." 429 exit 430 fi 431 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 432 if [ ${obuild_platform_result} = yes ] ; then 433 obuild_cxx_includes="${obuild_cxx_includes} -I${SNGEOM2_ROOT}/include" 434 fi 435 unset obuild_platform_result 436 if [ "${obuild_platform_exe}" = "" ] ; then 437 echo "Variable obuild_platform_exe not defined." 438 exit 439 fi 440 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 441 if [ ${obuild_platform_result} = yes ] ; then 442 obuild_cxx_includes="${obuild_cxx_includes} -I${GEOMUTILS_ROOT}/include" 443 fi 444 unset obuild_platform_result 445 if [ "${obuild_platform_exe}" = "" ] ; then 446 echo "Variable obuild_platform_exe not defined." 447 exit 448 fi 449 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 450 if [ ${obuild_platform_result} = yes ] ; then 451 obuild_cxx_includes="${obuild_cxx_includes} -I${BHEP_ROOT}/Darwin/include" 361 obuild_cxx_includes="-I${snova_home}" 362 fi 363 unset obuild_platform_result 364 if [ "${obuild_platform_exe}" = "" ] ; then 365 echo "Variable obuild_platform_exe not defined." 366 exit 367 fi 368 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 369 if [ ${obuild_platform_result} = yes ] ; then 370 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/GeomUtils/include" 371 fi 372 unset obuild_platform_result 373 if [ "${obuild_platform_exe}" = "" ] ; then 374 echo "Variable obuild_platform_exe not defined." 375 exit 376 fi 377 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 378 if [ ${obuild_platform_result} = yes ] ; then 379 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNgeom2/include" 380 fi 381 unset obuild_platform_result 382 if [ "${obuild_platform_exe}" = "" ] ; then 383 echo "Variable obuild_platform_exe not defined." 384 exit 385 fi 386 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 387 if [ ${obuild_platform_result} = yes ] ; then 388 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNvertex/include" 389 fi 390 unset obuild_platform_result 391 if [ "${obuild_platform_exe}" = "" ] ; then 392 echo "Variable obuild_platform_exe not defined." 393 exit 394 fi 395 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 396 if [ ${obuild_platform_result} = yes ] ; then 397 obuild_cxx_includes="${obuild_cxx_includes} -I${bhep_home}" 452 398 fi 453 399 unset obuild_platform_result … … 483 429 if [ ${obuild_verbose} = yes ] ; then set -x;fi 484 430 cd "${obuild_snovis_path}/${obuild_dir_bin}" 485 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./app_prog_snova/prog_snova .o ../applications/prog_snova.cc431 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./app_prog_snova/prog_snova2.o \"../applications/prog_snova2.cxx\" 486 432 obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi 487 433 cd "${obuild_snovis_path}/obuild" … … 590 536 obuild_cxx_linker_optimize_local= 591 537 fi 592 obuild_linked_paths="-L\"${obuild_snovis_path}/${obuild_dir_bin}\"" 593 obuild_linked_libraries=" -lsnova" 594 obuild_linked_libraries="${obuild_linked_libraries} -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom" 595 obuild_linked_libraries="${obuild_linked_libraries} -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils" 596 obuild_linked_libraries="${obuild_linked_libraries} -L${BHEP_ROOT}/Darwin/lib -lbhep" 597 obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_work}/lib/${Geant4_system} -lG4interfaces" 598 if [ "${obuild_platform_exe}" = "" ] ; then 599 echo "Variable obuild_platform_exe not defined." 600 exit 601 fi 602 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 603 if [ ${obuild_platform_result} = yes ] ; then 604 obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_work}/lib/${Geant4_system} -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global" 538 obuild_linked_libraries="-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils" 539 obuild_linked_libraries="${obuild_linked_libraries} -L${bhep_home}/Darwin -lbhep" 540 obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_home}/lib -lG4interfaces" 541 if [ "${obuild_platform_exe}" = "" ] ; then 542 echo "Variable obuild_platform_exe not defined." 543 exit 544 fi 545 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 546 if [ ${obuild_platform_result} = yes ] ; then 547 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" 605 548 fi 606 549 unset obuild_platform_result -
snovis/head/obuild/sh/build_app_snovis_session
r6 r92 109 109 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 110 110 if [ ${obuild_platform_result} = yes ] ; then 111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p 1"111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2" 112 112 fi 113 113 unset obuild_platform_result … … 127 127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 128 128 if [ ${obuild_platform_result} = yes ] ; then 129 GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"129 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0" 130 130 fi 131 131 unset obuild_platform_result … … 136 136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 137 137 if [ ${obuild_platform_result} = yes ] ; then 138 GeomUtils_platform="Darwin-i386" 139 fi 140 unset obuild_platform_result 141 if [ "${obuild_platform_exe}" = "" ] ; then 142 echo "Variable obuild_platform_exe not defined." 143 exit 144 fi 145 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 146 if [ ${obuild_platform_result} = yes ] ; then 147 SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2" 148 fi 149 unset obuild_platform_result 150 if [ "${obuild_platform_exe}" = "" ] ; then 151 echo "Variable obuild_platform_exe not defined." 152 exit 153 fi 154 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 155 if [ ${obuild_platform_result} = yes ] ; then 156 snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova" 138 snova_platform="Darwin" 157 139 fi 158 140 unset obuild_platform_result … … 172 154 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 173 155 if [ ${obuild_platform_result} = yes ] ; then 174 Geant4_home="/geant4/geant4.8.2" 175 fi 176 unset obuild_platform_result 177 if [ "${obuild_platform_exe}" = "" ] ; then 178 echo "Variable obuild_platform_exe not defined." 179 exit 180 fi 181 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 182 if [ ${obuild_platform_result} = yes ] ; then 183 Geant4_work="${Geant4_home}/Darwin" 184 fi 185 unset obuild_platform_result 186 if [ "${obuild_platform_exe}" = "" ] ; then 187 echo "Variable obuild_platform_exe not defined." 188 exit 189 fi 190 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 191 if [ ${obuild_platform_result} = yes ] ; then 192 Geant4_work="${Geant4_home}/slc3_gcc323" 193 fi 194 unset obuild_platform_result 195 if [ "${obuild_platform_exe}" = "" ] ; then 196 echo "Variable obuild_platform_exe not defined." 197 exit 198 fi 199 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 200 if [ ${obuild_platform_result} = yes ] ; then 201 Geant4_system="Darwin-g++" 202 fi 203 unset obuild_platform_result 204 if [ "${obuild_platform_exe}" = "" ] ; then 205 echo "Variable obuild_platform_exe not defined." 206 exit 207 fi 208 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 209 if [ ${obuild_platform_result} = yes ] ; then 210 Geant4_system="Linux-g++" 211 fi 212 unset obuild_platform_result 213 if [ "${obuild_platform_exe}" = "" ] ; then 214 echo "Variable obuild_platform_exe not defined." 215 exit 216 fi 217 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` 218 if [ ${obuild_platform_result} = yes ] ; then 219 Geant4_system="WIN32-VC" 156 Geant4_home="/usr/local/geant4/8.2" 220 157 fi 221 158 unset obuild_platform_result … … 575 512 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 576 513 if [ ${obuild_platform_result} = yes ] ; then 577 obuild_cxx_includes="-I${SNOVA_ROOT}" 578 fi 579 unset obuild_platform_result 580 if [ "${obuild_platform_exe}" = "" ] ; then 581 echo "Variable obuild_platform_exe not defined." 582 exit 583 fi 584 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 585 if [ ${obuild_platform_result} = yes ] ; then 586 obuild_cxx_includes="${obuild_cxx_includes} -I${SNGEOM2_ROOT}/include" 587 fi 588 unset obuild_platform_result 589 if [ "${obuild_platform_exe}" = "" ] ; then 590 echo "Variable obuild_platform_exe not defined." 591 exit 592 fi 593 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 594 if [ ${obuild_platform_result} = yes ] ; then 595 obuild_cxx_includes="${obuild_cxx_includes} -I${GEOMUTILS_ROOT}/include" 596 fi 597 unset obuild_platform_result 598 if [ "${obuild_platform_exe}" = "" ] ; then 599 echo "Variable obuild_platform_exe not defined." 600 exit 601 fi 602 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 603 if [ ${obuild_platform_result} = yes ] ; then 604 obuild_cxx_includes="${obuild_cxx_includes} -I${BHEP_ROOT}/Darwin/include" 514 obuild_cxx_includes="-I${snova_home}" 515 fi 516 unset obuild_platform_result 517 if [ "${obuild_platform_exe}" = "" ] ; then 518 echo "Variable obuild_platform_exe not defined." 519 exit 520 fi 521 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 522 if [ ${obuild_platform_result} = yes ] ; then 523 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/GeomUtils/include" 524 fi 525 unset obuild_platform_result 526 if [ "${obuild_platform_exe}" = "" ] ; then 527 echo "Variable obuild_platform_exe not defined." 528 exit 529 fi 530 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 531 if [ ${obuild_platform_result} = yes ] ; then 532 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNgeom2/include" 533 fi 534 unset obuild_platform_result 535 if [ "${obuild_platform_exe}" = "" ] ; then 536 echo "Variable obuild_platform_exe not defined." 537 exit 538 fi 539 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 540 if [ ${obuild_platform_result} = yes ] ; then 541 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNvertex/include" 542 fi 543 unset obuild_platform_result 544 if [ "${obuild_platform_exe}" = "" ] ; then 545 echo "Variable obuild_platform_exe not defined." 546 exit 547 fi 548 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 549 if [ ${obuild_platform_result} = yes ] ; then 550 obuild_cxx_includes="${obuild_cxx_includes} -I${bhep_home}" 605 551 fi 606 552 unset obuild_platform_result … … 640 586 if [ ${obuild_verbose} = yes ] ; then set -x;fi 641 587 cd "${obuild_snovis_path}/${obuild_dir_bin}" 642 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./app_snovis_session/snovis_session.o ../applications/snovis_session.cc588 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./app_snovis_session/snovis_session.o \"../applications/snovis_session.cc\" 643 589 obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi 644 590 cd "${obuild_snovis_path}/obuild" … … 749 695 obuild_linked_paths="-L\"${obuild_OnX_path}/${obuild_dir_bin}\"" 750 696 obuild_linked_libraries=" -lOnXCore" 751 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snovis_path}/${obuild_dir_bin}\"" 752 obuild_linked_libraries="${obuild_linked_libraries} -lsnova" 753 obuild_linked_libraries="${obuild_linked_libraries} -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom" 754 obuild_linked_libraries="${obuild_linked_libraries} -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils" 755 obuild_linked_libraries="${obuild_linked_libraries} -L${BHEP_ROOT}/Darwin/lib -lbhep" 697 obuild_linked_libraries="${obuild_linked_libraries} -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils" 698 obuild_linked_libraries="${obuild_linked_libraries} -L${bhep_home}/Darwin -lbhep" 756 699 obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HDF5_path}/${obuild_dir_bin}\"" 757 700 obuild_linked_libraries="${obuild_linked_libraries} -losc_HDF5" … … 766 709 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 767 710 if [ ${obuild_platform_result} = yes ] ; then 768 obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_ work}/lib/${Geant4_system}-lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global"711 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" 769 712 fi 770 713 unset obuild_platform_result -
snovis/head/obuild/sh/build_dll_snovis
r6 r92 109 109 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 110 110 if [ ${obuild_platform_result} = yes ] ; then 111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p 1"111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2" 112 112 fi 113 113 unset obuild_platform_result … … 127 127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 128 128 if [ ${obuild_platform_result} = yes ] ; then 129 GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"130 fi 131 unset obuild_platform_result 132 if [ "${obuild_platform_exe}" = "" ] ; then 133 echo "Variable obuild_platform_exe not defined." 134 exit 135 fi 136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 137 if [ ${obuild_platform_result} = yes ] ; then 138 GeomUtils_platform="Darwin-i386"129 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0" 130 fi 131 unset obuild_platform_result 132 if [ "${obuild_platform_exe}" = "" ] ; then 133 echo "Variable obuild_platform_exe not defined." 134 exit 135 fi 136 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 137 if [ ${obuild_platform_result} = yes ] ; then 138 snova_platform="Darwin" 139 139 fi 140 140 unset obuild_platform_result … … 145 145 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 146 146 if [ ${obuild_platform_result} = yes ] ; then 147 SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"147 CLHEP_home="/usr/local/CLHEP/2.0.3.1" 148 148 fi 149 149 unset obuild_platform_result … … 154 154 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 155 155 if [ ${obuild_platform_result} = yes ] ; then 156 snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova" 157 fi 158 unset obuild_platform_result 159 if [ "${obuild_platform_exe}" = "" ] ; then 160 echo "Variable obuild_platform_exe not defined." 161 exit 162 fi 163 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 164 if [ ${obuild_platform_result} = yes ] ; then 165 CLHEP_home="/usr/local/CLHEP/2.0.3.1" 166 fi 167 unset 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} 'UNIX'` 173 if [ ${obuild_platform_result} = yes ] ; then 174 Geant4_home="/geant4/geant4.8.2" 175 fi 176 unset obuild_platform_result 177 if [ "${obuild_platform_exe}" = "" ] ; then 178 echo "Variable obuild_platform_exe not defined." 179 exit 180 fi 181 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 182 if [ ${obuild_platform_result} = yes ] ; then 183 Geant4_work="${Geant4_home}/Darwin" 184 fi 185 unset obuild_platform_result 186 if [ "${obuild_platform_exe}" = "" ] ; then 187 echo "Variable obuild_platform_exe not defined." 188 exit 189 fi 190 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 191 if [ ${obuild_platform_result} = yes ] ; then 192 Geant4_work="${Geant4_home}/slc3_gcc323" 193 fi 194 unset obuild_platform_result 195 if [ "${obuild_platform_exe}" = "" ] ; then 196 echo "Variable obuild_platform_exe not defined." 197 exit 198 fi 199 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 200 if [ ${obuild_platform_result} = yes ] ; then 201 Geant4_system="Darwin-g++" 202 fi 203 unset obuild_platform_result 204 if [ "${obuild_platform_exe}" = "" ] ; then 205 echo "Variable obuild_platform_exe not defined." 206 exit 207 fi 208 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 209 if [ ${obuild_platform_result} = yes ] ; then 210 Geant4_system="Linux-g++" 211 fi 212 unset obuild_platform_result 213 if [ "${obuild_platform_exe}" = "" ] ; then 214 echo "Variable obuild_platform_exe not defined." 215 exit 216 fi 217 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` 218 if [ ${obuild_platform_result} = yes ] ; then 219 Geant4_system="WIN32-VC" 156 Geant4_home="/usr/local/geant4/8.2" 220 157 fi 221 158 unset obuild_platform_result … … 599 536 if [ ${obuild_verbose} = yes ] ; then set -x;fi 600 537 cd "${obuild_snovis_path}/${obuild_dir_bin}" 601 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Callbacks.o ../source/Callbacks.cxx538 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Callbacks.o \"../source/Callbacks.cxx\" 602 539 obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi 603 540 cd "${obuild_snovis_path}/obuild" 604 541 605 542 cd "${obuild_snovis_path}/${obuild_dir_bin}" 606 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/InventorCallbacks.o ../source/InventorCallbacks.cxx543 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/InventorCallbacks.o \"../source/InventorCallbacks.cxx\" 607 544 obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi 608 545 cd "${obuild_snovis_path}/obuild" 609 546 610 547 cd "${obuild_snovis_path}/${obuild_dir_bin}" 611 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Layouts.o ../source/Layouts.cxx548 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Layouts.o \"../source/Layouts.cxx\" 612 549 obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi 613 550 cd "${obuild_snovis_path}/obuild"
Note: See TracChangeset
for help on using the changeset viewer.