Changeset 92 for snovis/head/obuild/DOS/build_dll_snovis.bat
- Timestamp:
- Feb 9, 2007, 10:24:37 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.