[6] | 1 | @ECHO OFF |
---|
| 2 | SETLOCAL |
---|
| 3 | |
---|
| 4 | REM # |
---|
| 5 | REM # File produced by the obuild tool version 1.0 |
---|
[101] | 6 | REM # for the package snovis with version v1r1. |
---|
[6] | 7 | REM # |
---|
| 8 | |
---|
| 9 | REM #//////////////////////////////////////////////// |
---|
| 10 | REM # Usage : |
---|
| 11 | REM # DOS> CD some_path\pack\version\obuild |
---|
| 12 | REM # DOS> DOS\build_snovis |
---|
| 13 | REM # |
---|
| 14 | REM #//////////////////////////////////////////////// |
---|
| 15 | |
---|
| 16 | REM #//////////////////////////////////////////////// |
---|
| 17 | REM #/// Get path of this file : |
---|
| 18 | REM #//////////////////////////////////////////////// |
---|
| 19 | SET obuild_snovis_path=%~dp0 |
---|
| 20 | REM # Remove ending \obuild\DOS\ |
---|
| 21 | SET obuild_snovis_path=%obuild_snovis_path:~0,-12% |
---|
| 22 | |
---|
| 23 | REM #//////////////////////////////////////////////// |
---|
| 24 | REM #/// Treat arguments : |
---|
| 25 | REM #//////////////////////////////////////////////// |
---|
| 26 | |
---|
| 27 | SET obuild_verbose=no |
---|
| 28 | SET obuild_debug=no |
---|
| 29 | SET obuild_optimize=yes |
---|
| 30 | SET obuild_set_x=no |
---|
| 31 | |
---|
| 32 | :next_arg |
---|
| 33 | IF "%1%" == "" GOTO end_args |
---|
| 34 | |
---|
| 35 | IF NOT "%1%" == "-v" GOTO end_if_v |
---|
| 36 | SET obuild_verbose=yes |
---|
| 37 | SHIFT |
---|
| 38 | GOTO next_arg |
---|
| 39 | :end_if_v |
---|
| 40 | |
---|
| 41 | IF NOT "%1%" == "-g" GOTO end_if_g |
---|
| 42 | SET obuild_debug=yes |
---|
| 43 | SHIFT |
---|
| 44 | GOTO next_arg |
---|
| 45 | :end_if_g |
---|
| 46 | |
---|
| 47 | IF NOT "%1%" == "-x" GOTO end_if_x |
---|
| 48 | SET obuild_set_x=yes |
---|
| 49 | SHIFT |
---|
| 50 | GOTO next_arg |
---|
| 51 | :end_if_x |
---|
| 52 | |
---|
| 53 | :end_args |
---|
| 54 | |
---|
| 55 | REM #//////////////////////////////////////////////// |
---|
| 56 | REM #/// End arguments. |
---|
| 57 | REM #//////////////////////////////////////////////// |
---|
| 58 | |
---|
| 59 | IF %obuild_set_x% == yes ECHO ON |
---|
| 60 | |
---|
| 61 | IF %obuild_debug% == yes SET obuild_optimize=no |
---|
| 62 | |
---|
| 63 | IF "%OBUILD_PLATFORM%" == "" ( |
---|
| 64 | IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return |
---|
| 65 | SET obuild_platform=%OS% |
---|
| 66 | ) ELSE ( |
---|
| 67 | SET obuild_platform=%OBUILD_PLATFORM% |
---|
| 68 | ) |
---|
| 69 | |
---|
| 70 | IF "%obuild_platform%" == "" ( |
---|
| 71 | ECHO obuild_platform variable not defined. |
---|
| 72 | GOTO obuild_return |
---|
| 73 | ) |
---|
| 74 | |
---|
| 75 | IF "%OBUILD_DIR_BIN%" == "" ( |
---|
| 76 | SET obuild_dir_bin=%obuild_platform%_obuild |
---|
| 77 | ) ELSE ( |
---|
| 78 | SET obuild_dir_bin=%OBUILD_DIR_BIN% |
---|
| 79 | ) |
---|
| 80 | |
---|
| 81 | IF "%obuild_dir_bin%" == "" ( |
---|
| 82 | ECHO obuild_dir_bin variable not defined. |
---|
| 83 | GOTO obuild_return |
---|
| 84 | ) |
---|
| 85 | |
---|
| 86 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 87 | |
---|
| 88 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 89 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" ( |
---|
[92] | 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 |
---|
[6] | 91 | IF EXIST obuild_platform.obj DEL obuild_platform.obj |
---|
| 92 | ) |
---|
| 93 | |
---|
| 94 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 95 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 96 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
[137] | 97 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
[6] | 98 | cd "%obuild_pwd_snovis_0%" |
---|
| 99 | SET obuild_pwd_snovis_0= |
---|
[92] | 100 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 |
---|
[137] | 101 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 |
---|
[92] | 102 | :end_if_platform_1 |
---|
[6] | 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 |
---|
[134] | 107 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
[6] | 108 | cd "%obuild_pwd_snovis_0%" |
---|
| 109 | SET obuild_pwd_snovis_0= |
---|
[92] | 110 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 |
---|
[137] | 111 | SET Geant4_home=/usr/local/geant4/8.2 |
---|
[92] | 112 | :end_if_platform_3 |
---|
[6] | 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% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 118 | cd "%obuild_pwd_snovis_0%" |
---|
| 119 | SET obuild_pwd_snovis_0= |
---|
[137] | 120 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 |
---|
[6] | 121 | SET obuild_cxx_command=c++ |
---|
[137] | 122 | :end_if_platform_4 |
---|
[6] | 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% Linux`) DO SET obuild_platform_result=%%j |
---|
| 128 | cd "%obuild_pwd_snovis_0%" |
---|
| 129 | SET obuild_pwd_snovis_0= |
---|
[137] | 130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 |
---|
[6] | 131 | SET obuild_cxx_command=c++ |
---|
[137] | 132 | :end_if_platform_5 |
---|
[6] | 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% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 138 | cd "%obuild_pwd_snovis_0%" |
---|
| 139 | SET obuild_pwd_snovis_0= |
---|
[137] | 140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 |
---|
[6] | 141 | SET obuild_cxx_command=cxx |
---|
[137] | 142 | :end_if_platform_6 |
---|
[6] | 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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 148 | cd "%obuild_pwd_snovis_0%" |
---|
| 149 | SET obuild_pwd_snovis_0= |
---|
[137] | 150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 |
---|
[6] | 151 | SET obuild_cxx_command=cl.exe |
---|
[137] | 152 | :end_if_platform_7 |
---|
[6] | 153 | SET obuild_platform_result= |
---|
| 154 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
| 155 | |
---|
| 156 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 157 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 158 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 159 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 160 | cd "%obuild_pwd_snovis_0%" |
---|
| 161 | SET obuild_pwd_snovis_0= |
---|
[137] | 162 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 |
---|
[6] | 163 | SET obuild_cxx_optimize=-O |
---|
[137] | 164 | :end_if_platform_8 |
---|
[6] | 165 | SET obuild_platform_result= |
---|
| 166 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 167 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 168 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 169 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 170 | cd "%obuild_pwd_snovis_0%" |
---|
| 171 | SET obuild_pwd_snovis_0= |
---|
[137] | 172 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 |
---|
[6] | 173 | SET obuild_cxx_optimize=-O |
---|
[137] | 174 | :end_if_platform_9 |
---|
[6] | 175 | SET obuild_platform_result= |
---|
| 176 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 177 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 178 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 179 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 180 | cd "%obuild_pwd_snovis_0%" |
---|
| 181 | SET obuild_pwd_snovis_0= |
---|
[137] | 182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 |
---|
[6] | 183 | SET obuild_cxx_optimize=-O |
---|
[137] | 184 | :end_if_platform_10 |
---|
[6] | 185 | SET obuild_platform_result= |
---|
| 186 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 187 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 188 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 189 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 190 | cd "%obuild_pwd_snovis_0%" |
---|
| 191 | SET obuild_pwd_snovis_0= |
---|
[137] | 192 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 |
---|
[6] | 193 | SET obuild_cxx_optimize=/O2 |
---|
[137] | 194 | :end_if_platform_11 |
---|
[6] | 195 | SET obuild_platform_result= |
---|
| 196 | |
---|
| 197 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 198 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 199 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 200 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 201 | cd "%obuild_pwd_snovis_0%" |
---|
| 202 | SET obuild_pwd_snovis_0= |
---|
[137] | 203 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 |
---|
[6] | 204 | SET obuild_cxx_debug=-g |
---|
[137] | 205 | :end_if_platform_12 |
---|
[6] | 206 | SET obuild_platform_result= |
---|
| 207 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 208 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 209 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 210 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 211 | cd "%obuild_pwd_snovis_0%" |
---|
| 212 | SET obuild_pwd_snovis_0= |
---|
[137] | 213 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 |
---|
[6] | 214 | SET obuild_cxx_debug=-g |
---|
[137] | 215 | :end_if_platform_13 |
---|
[6] | 216 | SET obuild_platform_result= |
---|
| 217 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 218 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 219 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 220 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 221 | cd "%obuild_pwd_snovis_0%" |
---|
| 222 | SET obuild_pwd_snovis_0= |
---|
[137] | 223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
[6] | 224 | SET obuild_cxx_debug=-g |
---|
[137] | 225 | :end_if_platform_14 |
---|
[6] | 226 | SET obuild_platform_result= |
---|
| 227 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 228 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 229 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 230 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 231 | cd "%obuild_pwd_snovis_0%" |
---|
| 232 | SET obuild_pwd_snovis_0= |
---|
[137] | 233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 |
---|
[6] | 234 | SET obuild_cxx_debug=/ZI /Od |
---|
[137] | 235 | :end_if_platform_15 |
---|
[6] | 236 | SET obuild_platform_result= |
---|
| 237 | |
---|
| 238 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 239 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 240 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 241 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 242 | cd "%obuild_pwd_snovis_0%" |
---|
| 243 | SET obuild_pwd_snovis_0= |
---|
[137] | 244 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 |
---|
[6] | 245 | SET obuild_cxx_options=-fPIC |
---|
[137] | 246 | :end_if_platform_16 |
---|
[6] | 247 | SET obuild_platform_result= |
---|
| 248 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 249 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 250 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 251 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 252 | cd "%obuild_pwd_snovis_0%" |
---|
| 253 | SET obuild_pwd_snovis_0= |
---|
[137] | 254 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 |
---|
[6] | 255 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
[137] | 256 | :end_if_platform_17 |
---|
[6] | 257 | SET obuild_platform_result= |
---|
| 258 | |
---|
[137] | 259 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_18 |
---|
[6] | 260 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
[137] | 261 | GOTO end_if_db_build_dll_snovis_sh_18 |
---|
| 262 | :else_if_db_build_dll_snovis_sh_18 |
---|
[6] | 263 | SET obuild_cxx_debug_local= |
---|
[137] | 264 | :end_if_db_build_dll_snovis_sh_18 |
---|
[92] | 265 | |
---|
[137] | 266 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_19 |
---|
[6] | 267 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
[137] | 268 | GOTO end_if_opt_build_dll_snovis_sh_19 |
---|
| 269 | :else_if_opt_build_dll_snovis_sh_19 |
---|
[6] | 270 | SET obuild_cxx_optimize_local= |
---|
[137] | 271 | :end_if_opt_build_dll_snovis_sh_19 |
---|
[6] | 272 | |
---|
[92] | 273 | |
---|
[6] | 274 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 275 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
[92] | 276 | 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 |
---|
[6] | 277 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
| 278 | ) |
---|
| 279 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 280 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 281 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 282 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j |
---|
| 283 | cd "%obuild_pwd_snovis_0%" |
---|
| 284 | SET obuild_pwd_snovis_0= |
---|
| 285 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return |
---|
| 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_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 289 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Slash v1r*`) DO SET obuild_Slash_path=%%j |
---|
| 290 | cd "%obuild_pwd_snovis_0%" |
---|
| 291 | SET obuild_pwd_snovis_0= |
---|
| 292 | IF NOT DEFINED obuild_Slash_path ECHO Can't find Slash package. && GOTO obuild_return |
---|
| 293 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 294 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 295 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 296 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j |
---|
| 297 | cd "%obuild_pwd_snovis_0%" |
---|
| 298 | SET obuild_pwd_snovis_0= |
---|
| 299 | IF NOT DEFINED obuild_AIDA_path ECHO Can't find AIDA package. && GOTO obuild_return |
---|
| 300 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 301 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 302 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 303 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe OnX v17r*`) DO SET obuild_OnX_path=%%j |
---|
| 304 | cd "%obuild_pwd_snovis_0%" |
---|
| 305 | SET obuild_pwd_snovis_0= |
---|
| 306 | IF NOT DEFINED obuild_OnX_path ECHO Can't find OnX package. && GOTO obuild_return |
---|
| 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_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 310 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j |
---|
| 311 | cd "%obuild_pwd_snovis_0%" |
---|
| 312 | SET obuild_pwd_snovis_0= |
---|
| 313 | IF NOT DEFINED obuild_G4Lab_path ECHO Can't find G4Lab package. && GOTO obuild_return |
---|
| 314 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 315 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 316 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 317 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe BatchLab v1r*`) DO SET obuild_BatchLab_path=%%j |
---|
| 318 | cd "%obuild_pwd_snovis_0%" |
---|
| 319 | SET obuild_pwd_snovis_0= |
---|
| 320 | IF NOT DEFINED obuild_BatchLab_path ECHO Can't find BatchLab package. && GOTO obuild_return |
---|
| 321 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 322 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 323 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 324 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j |
---|
| 325 | cd "%obuild_pwd_snovis_0%" |
---|
| 326 | SET obuild_pwd_snovis_0= |
---|
| 327 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return |
---|
| 328 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 329 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 330 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 331 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j |
---|
| 332 | cd "%obuild_pwd_snovis_0%" |
---|
| 333 | SET obuild_pwd_snovis_0= |
---|
| 334 | IF NOT DEFINED obuild_CoinGL_path ECHO Can't find CoinGL package. && GOTO obuild_return |
---|
| 335 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 336 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 337 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 338 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j |
---|
| 339 | cd "%obuild_pwd_snovis_0%" |
---|
| 340 | SET obuild_pwd_snovis_0= |
---|
| 341 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return |
---|
| 342 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 343 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 344 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 345 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe expat v1r*`) DO SET obuild_expat_path=%%j |
---|
| 346 | cd "%obuild_pwd_snovis_0%" |
---|
| 347 | SET obuild_pwd_snovis_0= |
---|
| 348 | IF NOT DEFINED obuild_expat_path ECHO Can't find expat package. && GOTO obuild_return |
---|
| 349 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 350 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 351 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 352 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j |
---|
| 353 | cd "%obuild_pwd_snovis_0%" |
---|
| 354 | SET obuild_pwd_snovis_0= |
---|
| 355 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return |
---|
| 356 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 357 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 358 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 359 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j |
---|
| 360 | cd "%obuild_pwd_snovis_0%" |
---|
| 361 | SET obuild_pwd_snovis_0= |
---|
| 362 | IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return |
---|
| 363 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 364 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 365 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 366 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j |
---|
| 367 | cd "%obuild_pwd_snovis_0%" |
---|
| 368 | SET obuild_pwd_snovis_0= |
---|
| 369 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return |
---|
| 370 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 371 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 372 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 373 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j |
---|
| 374 | cd "%obuild_pwd_snovis_0%" |
---|
| 375 | SET obuild_pwd_snovis_0= |
---|
| 376 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return |
---|
| 377 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 378 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 379 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 380 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j |
---|
| 381 | cd "%obuild_pwd_snovis_0%" |
---|
| 382 | SET obuild_pwd_snovis_0= |
---|
| 383 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return |
---|
| 384 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 385 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 386 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 387 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe jpeg v1r*`) DO SET obuild_jpeg_path=%%j |
---|
| 388 | cd "%obuild_pwd_snovis_0%" |
---|
| 389 | SET obuild_pwd_snovis_0= |
---|
| 390 | IF NOT DEFINED obuild_jpeg_path ECHO Can't find jpeg package. && GOTO obuild_return |
---|
| 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_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 394 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j |
---|
| 395 | cd "%obuild_pwd_snovis_0%" |
---|
| 396 | SET obuild_pwd_snovis_0= |
---|
| 397 | IF NOT DEFINED obuild_dvi2bitmap_path ECHO Can't find dvi2bitmap package. && GOTO obuild_return |
---|
| 398 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 399 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 400 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 401 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe freetype2 v1r*`) DO SET obuild_freetype2_path=%%j |
---|
| 402 | cd "%obuild_pwd_snovis_0%" |
---|
| 403 | SET obuild_pwd_snovis_0= |
---|
| 404 | IF NOT DEFINED obuild_freetype2_path ECHO Can't find freetype2 package. && GOTO obuild_return |
---|
| 405 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 406 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 407 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 408 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j |
---|
| 409 | cd "%obuild_pwd_snovis_0%" |
---|
| 410 | SET obuild_pwd_snovis_0= |
---|
| 411 | IF NOT DEFINED obuild_CoinGL_path ECHO Can't find CoinGL package. && GOTO obuild_return |
---|
| 412 | |
---|
| 413 | SET obuild_cxx_includes=/I"%obuild_snovis_path%" |
---|
| 414 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include" |
---|
| 415 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%" |
---|
| 416 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp" |
---|
| 417 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_OnX_path%\include" |
---|
| 418 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include" |
---|
| 419 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_BatchLab_path%" |
---|
| 420 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HEPVis_path%\include" |
---|
| 421 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_CoinGL_path%\include" |
---|
| 422 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 423 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 424 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 425 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 426 | cd "%obuild_pwd_snovis_0%" |
---|
| 427 | SET obuild_pwd_snovis_0= |
---|
[137] | 428 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29 |
---|
[6] | 429 | SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers |
---|
[137] | 430 | :end_if_platform_29 |
---|
[6] | 431 | SET obuild_platform_result= |
---|
| 432 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 433 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 434 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 435 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 436 | cd "%obuild_pwd_snovis_0%" |
---|
| 437 | SET obuild_pwd_snovis_0= |
---|
[137] | 438 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 |
---|
[6] | 439 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include |
---|
[137] | 440 | :end_if_platform_30 |
---|
[6] | 441 | SET obuild_platform_result= |
---|
| 442 | |
---|
| 443 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" |
---|
| 444 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" |
---|
| 445 | |
---|
| 446 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 447 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
[92] | 448 | %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 |
---|
| 449 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 450 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
[6] | 451 | cd "%obuild_snovis_path%\obuild" |
---|
| 452 | |
---|
| 453 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
[92] | 454 | %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 |
---|
| 455 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 456 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
[6] | 457 | cd "%obuild_snovis_path%\obuild" |
---|
| 458 | |
---|
| 459 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
[92] | 460 | %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 |
---|
| 461 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 462 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
[6] | 463 | cd "%obuild_snovis_path%\obuild" |
---|
| 464 | |
---|
| 465 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 466 | |
---|
| 467 | SET obuild_linked_libraries="%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib" |
---|
| 468 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib" |
---|
| 469 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib" |
---|
| 470 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib" |
---|
| 471 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib" |
---|
| 472 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib" |
---|
| 473 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib" |
---|
| 474 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib" |
---|
| 475 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib" |
---|
| 476 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib" |
---|
| 477 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib" |
---|
| 478 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 479 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 480 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 481 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 482 | cd "%obuild_pwd_snovis_0%" |
---|
| 483 | SET obuild_pwd_snovis_0= |
---|
[137] | 484 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45 |
---|
[6] | 485 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL |
---|
[137] | 486 | :end_if_platform_45 |
---|
[6] | 487 | SET obuild_platform_result= |
---|
| 488 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 489 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 490 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 491 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 492 | cd "%obuild_pwd_snovis_0%" |
---|
| 493 | SET obuild_pwd_snovis_0= |
---|
[137] | 494 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46 |
---|
[6] | 495 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices |
---|
[137] | 496 | :end_if_platform_46 |
---|
[6] | 497 | SET obuild_platform_result= |
---|
| 498 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 499 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 500 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 501 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 502 | cd "%obuild_pwd_snovis_0%" |
---|
| 503 | SET obuild_pwd_snovis_0= |
---|
[137] | 504 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 |
---|
[6] | 505 | SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm |
---|
[137] | 506 | :end_if_platform_47 |
---|
[6] | 507 | SET obuild_platform_result= |
---|
| 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= |
---|
[137] | 514 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48 |
---|
[6] | 515 | SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib |
---|
[137] | 516 | :end_if_platform_48 |
---|
[6] | 517 | SET obuild_platform_result= |
---|
| 518 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 519 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 520 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 521 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 522 | cd "%obuild_pwd_snovis_0%" |
---|
| 523 | SET obuild_pwd_snovis_0= |
---|
[137] | 524 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49 |
---|
[6] | 525 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm |
---|
[137] | 526 | :end_if_platform_49 |
---|
[6] | 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% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 532 | cd "%obuild_pwd_snovis_0%" |
---|
| 533 | SET obuild_pwd_snovis_0= |
---|
[137] | 534 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50 |
---|
[6] | 535 | SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread |
---|
[137] | 536 | :end_if_platform_50 |
---|
[6] | 537 | SET obuild_platform_result= |
---|
| 538 | |
---|
| 539 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d |
---|
| 540 | cd "%obuild_snovis_path%\%obuild_dir_bin%" |
---|
| 541 | IF EXIST .\dll_snovis\tmp_objs DEL .\dll_snovis\tmp_objs |
---|
| 542 | FOR %%f IN (.\dll_snovis\*.obj) DO ECHO %%f >> .\dll_snovis\tmp_objs |
---|
| 543 | |
---|
| 544 | REM # Create the archive library snovis : |
---|
| 545 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 546 | lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.arc @.\dll_snovis\tmp_objs |
---|
| 547 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
| 548 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 549 | |
---|
| 550 | REM # Build the obuild_windef.exe utility program : |
---|
[92] | 551 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
[6] | 552 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
| 553 | |
---|
| 554 | REM # Building the .def file : |
---|
| 555 | @IF %obuild_verbose% == yes @ECHO ON |
---|
[92] | 556 | dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc 1> dumpbin_exe_error .\dll_snovis\snovis.arc |
---|
| 557 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
| 558 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
[6] | 559 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 560 | .\obuild_windef.exe snovis < .\dll_snovis\tmp > .\dll_snovis\snovis.def |
---|
| 561 | REM # Building the linking library : |
---|
| 562 | REM # It produces a .exp file. |
---|
| 563 | @IF %obuild_verbose% == yes @ECHO ON |
---|
[92] | 564 | lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def 1> lib_exe_error |
---|
| 565 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
| 566 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
[6] | 567 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 568 | |
---|
| 569 | REM # Building the DLL : |
---|
| 570 | IF EXIST .\snovis.dll DEL .\snovis.dll |
---|
| 571 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 572 | link.exe /nologo /dll /out:.\snovis.dll .\dll_snovis\snovis.exp .\dll_snovis\snovis.arc %obuild_linked_libraries% |
---|
| 573 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 574 | |
---|
| 575 | cd "%obuild_pwd_snovis_0%" |
---|
| 576 | SET obuild_pwd_snovis_0= |
---|
| 577 | REM # Some cleanup : |
---|
| 578 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs" |
---|
| 579 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp" |
---|
| 580 | |
---|
| 581 | :obuild_return |
---|
| 582 | ENDLOCAL |
---|
| 583 | @ECHO ON |
---|