[130] | 1 | @ECHO OFF |
---|
| 2 | SETLOCAL |
---|
| 3 | |
---|
| 4 | REM # |
---|
| 5 | REM # File produced by the obuild tool version 1.0 |
---|
| 6 | REM # for the package snova with version v2r0p0. |
---|
| 7 | REM # |
---|
| 8 | |
---|
| 9 | REM #//////////////////////////////////////////////// |
---|
| 10 | REM # Usage : |
---|
| 11 | REM # DOS> CD some_path\pack\version\obuild |
---|
| 12 | REM # DOS> DOS\build_snova |
---|
| 13 | REM # |
---|
| 14 | REM #//////////////////////////////////////////////// |
---|
| 15 | |
---|
| 16 | REM #//////////////////////////////////////////////// |
---|
| 17 | REM #/// Get path of this file : |
---|
| 18 | REM #//////////////////////////////////////////////// |
---|
| 19 | SET obuild_snova_path=%~dp0 |
---|
| 20 | REM # Remove ending \obuild\DOS\ |
---|
| 21 | SET obuild_snova_path=%obuild_snova_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_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 87 | |
---|
| 88 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 89 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" ( |
---|
| 90 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snova_path%\obuild\cpp\obuild_platform.cpp" 1> NUL |
---|
| 91 | IF EXIST obuild_platform.obj DEL obuild_platform.obj |
---|
| 92 | ) |
---|
| 93 | |
---|
| 94 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 95 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 96 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 97 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 98 | cd "%obuild_pwd_snova_0%" |
---|
| 99 | SET obuild_pwd_snova_0= |
---|
| 100 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 |
---|
| 101 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 |
---|
| 102 | :end_if_platform_1 |
---|
| 103 | SET obuild_platform_result= |
---|
| 104 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 105 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 106 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
[132] | 107 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 108 | cd "%obuild_pwd_snova_0%" |
---|
| 109 | SET obuild_pwd_snova_0= |
---|
| 110 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 |
---|
| 111 | SET Geant4_home=/usr/local/geant4/8.2 |
---|
| 112 | :end_if_platform_3 |
---|
| 113 | SET obuild_platform_result= |
---|
| 114 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 115 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 116 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
[130] | 117 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 118 | cd "%obuild_pwd_snova_0%" |
---|
| 119 | SET obuild_pwd_snova_0= |
---|
[132] | 120 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 |
---|
[130] | 121 | SET obuild_cxx_command=c++ |
---|
[132] | 122 | :end_if_platform_4 |
---|
[130] | 123 | SET obuild_platform_result= |
---|
| 124 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 125 | cd "%obuild_snova_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_snova_0%" |
---|
| 129 | SET obuild_pwd_snova_0= |
---|
[132] | 130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 |
---|
[130] | 131 | SET obuild_cxx_command=c++ |
---|
[132] | 132 | :end_if_platform_5 |
---|
[130] | 133 | SET obuild_platform_result= |
---|
| 134 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 135 | cd "%obuild_snova_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_snova_0%" |
---|
| 139 | SET obuild_pwd_snova_0= |
---|
[132] | 140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 |
---|
[130] | 141 | SET obuild_cxx_command=cxx |
---|
[132] | 142 | :end_if_platform_6 |
---|
[130] | 143 | SET obuild_platform_result= |
---|
| 144 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 145 | cd "%obuild_snova_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_snova_0%" |
---|
| 149 | SET obuild_pwd_snova_0= |
---|
[132] | 150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 |
---|
[130] | 151 | SET obuild_cxx_command=cl.exe |
---|
[132] | 152 | :end_if_platform_7 |
---|
[130] | 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_snova_0=%%d |
---|
| 157 | cd "%obuild_snova_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_snova_0%" |
---|
| 161 | SET obuild_pwd_snova_0= |
---|
[132] | 162 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 |
---|
[130] | 163 | SET obuild_cxx_optimize=-O |
---|
[132] | 164 | :end_if_platform_8 |
---|
[130] | 165 | SET obuild_platform_result= |
---|
| 166 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 167 | cd "%obuild_snova_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_snova_0%" |
---|
| 171 | SET obuild_pwd_snova_0= |
---|
[132] | 172 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 |
---|
[130] | 173 | SET obuild_cxx_optimize=-O |
---|
[132] | 174 | :end_if_platform_9 |
---|
[130] | 175 | SET obuild_platform_result= |
---|
| 176 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 177 | cd "%obuild_snova_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_snova_0%" |
---|
| 181 | SET obuild_pwd_snova_0= |
---|
[132] | 182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 |
---|
[130] | 183 | SET obuild_cxx_optimize=-O |
---|
[132] | 184 | :end_if_platform_10 |
---|
[130] | 185 | SET obuild_platform_result= |
---|
| 186 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 187 | cd "%obuild_snova_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_snova_0%" |
---|
| 191 | SET obuild_pwd_snova_0= |
---|
[132] | 192 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 |
---|
[130] | 193 | SET obuild_cxx_optimize=/O2 |
---|
[132] | 194 | :end_if_platform_11 |
---|
[130] | 195 | SET obuild_platform_result= |
---|
| 196 | |
---|
| 197 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 198 | cd "%obuild_snova_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_snova_0%" |
---|
| 202 | SET obuild_pwd_snova_0= |
---|
[132] | 203 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 |
---|
[130] | 204 | SET obuild_cxx_debug=-g |
---|
[132] | 205 | :end_if_platform_12 |
---|
[130] | 206 | SET obuild_platform_result= |
---|
| 207 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 208 | cd "%obuild_snova_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_snova_0%" |
---|
| 212 | SET obuild_pwd_snova_0= |
---|
[132] | 213 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 |
---|
[130] | 214 | SET obuild_cxx_debug=-g |
---|
[132] | 215 | :end_if_platform_13 |
---|
[130] | 216 | SET obuild_platform_result= |
---|
| 217 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 218 | cd "%obuild_snova_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_snova_0%" |
---|
| 222 | SET obuild_pwd_snova_0= |
---|
[132] | 223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
[130] | 224 | SET obuild_cxx_debug=-g |
---|
[132] | 225 | :end_if_platform_14 |
---|
[130] | 226 | SET obuild_platform_result= |
---|
| 227 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 228 | cd "%obuild_snova_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_snova_0%" |
---|
| 232 | SET obuild_pwd_snova_0= |
---|
[132] | 233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 |
---|
[130] | 234 | SET obuild_cxx_debug=/ZI /Od |
---|
[132] | 235 | :end_if_platform_15 |
---|
[130] | 236 | SET obuild_platform_result= |
---|
| 237 | |
---|
| 238 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 239 | cd "%obuild_snova_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_snova_0%" |
---|
| 243 | SET obuild_pwd_snova_0= |
---|
[132] | 244 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 |
---|
[130] | 245 | SET obuild_cxx_options=-fPIC |
---|
[132] | 246 | :end_if_platform_16 |
---|
[130] | 247 | SET obuild_platform_result= |
---|
| 248 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 249 | cd "%obuild_snova_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_snova_0%" |
---|
| 253 | SET obuild_pwd_snova_0= |
---|
[132] | 254 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 |
---|
[130] | 255 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
[132] | 256 | :end_if_platform_17 |
---|
[130] | 257 | SET obuild_platform_result= |
---|
| 258 | |
---|
[132] | 259 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_18 |
---|
[130] | 260 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
[132] | 261 | GOTO end_if_db_build_lib_snova_sh_18 |
---|
| 262 | :else_if_db_build_lib_snova_sh_18 |
---|
[130] | 263 | SET obuild_cxx_debug_local= |
---|
[132] | 264 | :end_if_db_build_lib_snova_sh_18 |
---|
[130] | 265 | |
---|
[132] | 266 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_19 |
---|
[130] | 267 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
[132] | 268 | GOTO end_if_opt_build_lib_snova_sh_19 |
---|
| 269 | :else_if_opt_build_lib_snova_sh_19 |
---|
[130] | 270 | SET obuild_cxx_optimize_local= |
---|
[132] | 271 | :end_if_opt_build_lib_snova_sh_19 |
---|
[130] | 272 | |
---|
| 273 | |
---|
[132] | 274 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 275 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
| 276 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snova_path%\obuild\cpp\obuild_find.cpp" 1> NUL |
---|
| 277 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
| 278 | ) |
---|
| 279 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 280 | cd "%obuild_snova_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 bhep v1r4p2`) DO SET obuild_bhep_path=%%j |
---|
| 283 | cd "%obuild_pwd_snova_0%" |
---|
| 284 | SET obuild_pwd_snova_0= |
---|
| 285 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return |
---|
| 286 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 287 | cd "%obuild_snova_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 HDF5 v1r*`) DO SET obuild_HDF5_path=%%j |
---|
| 290 | cd "%obuild_pwd_snova_0%" |
---|
| 291 | SET obuild_pwd_snova_0= |
---|
| 292 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return |
---|
[130] | 293 | |
---|
| 294 | SET obuild_cxx_includes=/I"%obuild_snova_path%" |
---|
| 295 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include" |
---|
| 296 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include" |
---|
| 297 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include" |
---|
[132] | 298 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" |
---|
[130] | 299 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 300 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 301 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 302 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 303 | cd "%obuild_pwd_snova_0%" |
---|
| 304 | SET obuild_pwd_snova_0= |
---|
[132] | 305 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 |
---|
[130] | 306 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
[132] | 307 | :end_if_platform_25 |
---|
[130] | 308 | SET obuild_platform_result= |
---|
[132] | 309 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 310 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 311 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 312 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 313 | cd "%obuild_pwd_snova_0%" |
---|
| 314 | SET obuild_pwd_snova_0= |
---|
| 315 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26 |
---|
| 316 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include |
---|
| 317 | :end_if_platform_26 |
---|
| 318 | SET obuild_platform_result= |
---|
| 319 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include" |
---|
[130] | 320 | |
---|
| 321 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" |
---|
| 322 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" |
---|
| 323 | |
---|
| 324 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 325 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 326 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\event.obj /Tp"..\source\snova\base\event.cc" 1> cl_exe_error |
---|
| 327 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 328 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 329 | cd "%obuild_snova_path%\obuild" |
---|
| 330 | |
---|
| 331 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 332 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\generator.obj /Tp"..\source\snova\base\generator.cc" 1> cl_exe_error |
---|
| 333 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 334 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 335 | cd "%obuild_snova_path%\obuild" |
---|
| 336 | |
---|
| 337 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 338 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\run.obj /Tp"..\source\snova\base\run.cc" 1> cl_exe_error |
---|
| 339 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 340 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 341 | cd "%obuild_snova_path%\obuild" |
---|
| 342 | |
---|
| 343 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 344 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\snova_const.obj /Tp"..\source\snova\base\snova_const.cc" 1> cl_exe_error |
---|
| 345 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 346 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 347 | cd "%obuild_snova_path%\obuild" |
---|
| 348 | |
---|
| 349 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 350 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\snova_mgr.obj /Tp"..\source\snova\base\snova_mgr.cc" 1> cl_exe_error |
---|
| 351 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 352 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 353 | cd "%obuild_snova_path%\obuild" |
---|
| 354 | |
---|
| 355 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 356 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stacking.obj /Tp"..\source\snova\base\stacking.cc" 1> cl_exe_error |
---|
| 357 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 358 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 359 | cd "%obuild_snova_path%\obuild" |
---|
| 360 | |
---|
| 361 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 362 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stepping.obj /Tp"..\source\snova\base\stepping.cc" 1> cl_exe_error |
---|
| 363 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 364 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 365 | cd "%obuild_snova_path%\obuild" |
---|
| 366 | |
---|
| 367 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 368 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stepping_verbose.obj /Tp"..\source\snova\base\stepping_verbose.cc" 1> cl_exe_error |
---|
| 369 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 370 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 371 | cd "%obuild_snova_path%\obuild" |
---|
| 372 | |
---|
| 373 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 374 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\tracking.obj /Tp"..\source\snova\base\tracking.cc" 1> cl_exe_error |
---|
| 375 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 376 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 377 | cd "%obuild_snova_path%\obuild" |
---|
| 378 | |
---|
| 379 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 380 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\gen_vtx.obj /Tp"..\source\snova\vertex\gen_vtx.cc" 1> cl_exe_error |
---|
| 381 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 382 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 383 | cd "%obuild_snova_path%\obuild" |
---|
| 384 | |
---|
| 385 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 386 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\geometry2.obj /Tp"..\source\snova\geom\geometry2.cc" 1> cl_exe_error |
---|
| 387 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 388 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 389 | cd "%obuild_snova_path%\obuild" |
---|
| 390 | |
---|
| 391 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 392 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\materials.obj /Tp"..\source\snova\geom\materials.cc" 1> cl_exe_error |
---|
| 393 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 394 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 395 | cd "%obuild_snova_path%\obuild" |
---|
| 396 | |
---|
| 397 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 398 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\nemo_field2.obj /Tp"..\source\snova\geom\nemo_field2.cc" 1> cl_exe_error |
---|
| 399 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 400 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 401 | cd "%obuild_snova_path%\obuild" |
---|
| 402 | |
---|
| 403 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 404 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\visibilities2.obj /Tp"..\source\snova\geom\visibilities2.cc" 1> cl_exe_error |
---|
| 405 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 406 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 407 | cd "%obuild_snova_path%\obuild" |
---|
| 408 | |
---|
| 409 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 410 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\physics.obj /Tp"..\source\snova\physics\physics.cc" 1> cl_exe_error |
---|
| 411 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 412 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 413 | cd "%obuild_snova_path%\obuild" |
---|
| 414 | |
---|
| 415 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 416 | |
---|
| 417 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 418 | cd "%obuild_snova_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% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 421 | cd "%obuild_pwd_snova_0%" |
---|
| 422 | SET obuild_pwd_snova_0= |
---|
[132] | 423 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 |
---|
[130] | 424 | SET obuild_cxx_linker_command=c++ |
---|
[132] | 425 | :end_if_platform_43 |
---|
[130] | 426 | SET obuild_platform_result= |
---|
| 427 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 428 | cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j |
---|
| 431 | cd "%obuild_pwd_snova_0%" |
---|
| 432 | SET obuild_pwd_snova_0= |
---|
[132] | 433 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44 |
---|
[130] | 434 | SET obuild_cxx_linker_command=c++ |
---|
[132] | 435 | :end_if_platform_44 |
---|
[130] | 436 | SET obuild_platform_result= |
---|
| 437 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 438 | cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 441 | cd "%obuild_pwd_snova_0%" |
---|
| 442 | SET obuild_pwd_snova_0= |
---|
[132] | 443 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45 |
---|
[130] | 444 | SET obuild_cxx_linker_command=cxx |
---|
[132] | 445 | :end_if_platform_45 |
---|
[130] | 446 | SET obuild_platform_result= |
---|
| 447 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 448 | cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 451 | cd "%obuild_pwd_snova_0%" |
---|
| 452 | SET obuild_pwd_snova_0= |
---|
[132] | 453 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46 |
---|
[130] | 454 | SET obuild_cxx_linker_command=link.exe |
---|
[132] | 455 | :end_if_platform_46 |
---|
[130] | 456 | SET obuild_platform_result= |
---|
| 457 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
| 458 | |
---|
| 459 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 460 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 461 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 462 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 463 | cd "%obuild_pwd_snova_0%" |
---|
| 464 | SET obuild_pwd_snova_0= |
---|
[132] | 465 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 |
---|
[130] | 466 | SET obuild_cxx_linker_debug=-g |
---|
[132] | 467 | :end_if_platform_47 |
---|
[130] | 468 | SET obuild_platform_result= |
---|
| 469 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 470 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 471 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 472 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 473 | cd "%obuild_pwd_snova_0%" |
---|
| 474 | SET obuild_pwd_snova_0= |
---|
[132] | 475 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48 |
---|
[130] | 476 | SET obuild_cxx_linker_debug=-g |
---|
[132] | 477 | :end_if_platform_48 |
---|
[130] | 478 | SET obuild_platform_result= |
---|
| 479 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 480 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 481 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 482 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 483 | cd "%obuild_pwd_snova_0%" |
---|
| 484 | SET obuild_pwd_snova_0= |
---|
[132] | 485 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49 |
---|
[130] | 486 | SET obuild_cxx_linker_debug=-g |
---|
[132] | 487 | :end_if_platform_49 |
---|
[130] | 488 | SET obuild_platform_result= |
---|
| 489 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 490 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 491 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 492 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 493 | cd "%obuild_pwd_snova_0%" |
---|
| 494 | SET obuild_pwd_snova_0= |
---|
[132] | 495 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50 |
---|
[130] | 496 | SET obuild_cxx_linker_debug=/DEBUG |
---|
[132] | 497 | :end_if_platform_50 |
---|
[130] | 498 | SET obuild_platform_result= |
---|
| 499 | |
---|
| 500 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 501 | cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 504 | cd "%obuild_pwd_snova_0%" |
---|
| 505 | SET obuild_pwd_snova_0= |
---|
[132] | 506 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51 |
---|
[130] | 507 | SET obuild_cxx_linker_options=/nologo |
---|
[132] | 508 | :end_if_platform_51 |
---|
[130] | 509 | SET obuild_platform_result= |
---|
| 510 | |
---|
[132] | 511 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_52 |
---|
[130] | 512 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
[132] | 513 | GOTO end_if_db_build_lib_snova_sh_52 |
---|
| 514 | :else_if_db_build_lib_snova_sh_52 |
---|
[130] | 515 | SET obuild_cxx_linker_debug_local= |
---|
[132] | 516 | :end_if_db_build_lib_snova_sh_52 |
---|
[130] | 517 | |
---|
[132] | 518 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_53 |
---|
[130] | 519 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
[132] | 520 | GOTO end_if_opt_build_lib_snova_sh_53 |
---|
| 521 | :else_if_opt_build_lib_snova_sh_53 |
---|
[130] | 522 | SET obuild_cxx_linker_optimize_local= |
---|
[132] | 523 | :end_if_opt_build_lib_snova_sh_53 |
---|
[130] | 524 | |
---|
| 525 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 526 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 527 | IF EXIST .\lib_snova\tmp_objs DEL .\lib_snova\tmp_objs |
---|
| 528 | FOR %%f IN (.\lib_snova\*.obj) DO ECHO %%f >> .\lib_snova\tmp_objs |
---|
| 529 | |
---|
| 530 | REM # Create the archive library snova : |
---|
| 531 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 532 | lib.exe /nologo /machine:ix86 /out:.\lib_snova\snova.arc @.\lib_snova\tmp_objs |
---|
| 533 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
| 534 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 535 | |
---|
| 536 | REM # Build the obuild_windef.exe utility program : |
---|
| 537 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
| 538 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
| 539 | |
---|
| 540 | REM # Building the .def file : |
---|
| 541 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 542 | dumpbin.exe /symbols /out:.\lib_snova\tmp .\lib_snova\snova.arc 1> dumpbin_exe_error .\lib_snova\snova.arc |
---|
| 543 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
| 544 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
| 545 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 546 | .\obuild_windef.exe snova < .\lib_snova\tmp > .\lib_snova\snova.def |
---|
| 547 | REM # Building the linking library : |
---|
| 548 | REM # It produces a .exp file. |
---|
| 549 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 550 | lib.exe /nologo /machine:ix86 /out:.\snova.lib /def:.\lib_snova\snova.def 1> lib_exe_error |
---|
| 551 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
| 552 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
| 553 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 554 | |
---|
| 555 | REM # Building the DLL : |
---|
| 556 | IF EXIST .\snova.dll DEL .\snova.dll |
---|
| 557 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 558 | link.exe /nologo /dll /out:.\snova.dll .\snova.exp .\lib_snova\snova.arc %obuild_linked_libraries% |
---|
| 559 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 560 | |
---|
| 561 | cd "%obuild_pwd_snova_0%" |
---|
| 562 | SET obuild_pwd_snova_0= |
---|
| 563 | REM # Some cleanup : |
---|
| 564 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs" |
---|
| 565 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\snova.exp" |
---|
| 566 | |
---|
| 567 | :obuild_return |
---|
| 568 | ENDLOCAL |
---|
| 569 | @ECHO ON |
---|