[130] | 1 | @ECHO OFF |
---|
| 2 | SETLOCAL |
---|
| 3 | |
---|
| 4 | REM # |
---|
| 5 | REM # File produced by the obuild tool version 1.0 |
---|
[144] | 6 | REM # for the package snova with version v2r0p0. |
---|
[130] | 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 |
---|
[241] | 117 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 118 | cd "%obuild_pwd_snova_0%" |
---|
| 119 | SET obuild_pwd_snova_0= |
---|
| 120 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 |
---|
| 121 | SET HDF5_home=/usr/local/HDF5/1.6.5 |
---|
| 122 | :end_if_platform_5 |
---|
| 123 | SET obuild_platform_result= |
---|
| 124 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_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% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 128 | cd "%obuild_pwd_snova_0%" |
---|
| 129 | SET obuild_pwd_snova_0= |
---|
| 130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 |
---|
| 131 | SET zlib_home=/usr |
---|
| 132 | :end_if_platform_7 |
---|
| 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 |
---|
[130] | 137 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 138 | cd "%obuild_pwd_snova_0%" |
---|
| 139 | SET obuild_pwd_snova_0= |
---|
[241] | 140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 |
---|
[130] | 141 | SET obuild_cxx_command=c++ |
---|
[241] | 142 | :end_if_platform_8 |
---|
[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% Linux`) DO SET obuild_platform_result=%%j |
---|
| 148 | cd "%obuild_pwd_snova_0%" |
---|
| 149 | SET obuild_pwd_snova_0= |
---|
[241] | 150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 |
---|
[130] | 151 | SET obuild_cxx_command=c++ |
---|
[241] | 152 | :end_if_platform_9 |
---|
[130] | 153 | SET obuild_platform_result= |
---|
| 154 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 155 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 156 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 157 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 158 | cd "%obuild_pwd_snova_0%" |
---|
| 159 | SET obuild_pwd_snova_0= |
---|
[241] | 160 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 |
---|
[130] | 161 | SET obuild_cxx_command=cxx |
---|
[241] | 162 | :end_if_platform_10 |
---|
[130] | 163 | SET obuild_platform_result= |
---|
| 164 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 165 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 166 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 167 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 168 | cd "%obuild_pwd_snova_0%" |
---|
| 169 | SET obuild_pwd_snova_0= |
---|
[241] | 170 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 |
---|
[130] | 171 | SET obuild_cxx_command=cl.exe |
---|
[241] | 172 | :end_if_platform_11 |
---|
[130] | 173 | SET obuild_platform_result= |
---|
| 174 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
| 175 | |
---|
| 176 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_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% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 180 | cd "%obuild_pwd_snova_0%" |
---|
| 181 | SET obuild_pwd_snova_0= |
---|
[241] | 182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 |
---|
[130] | 183 | SET obuild_cxx_optimize=-O |
---|
[241] | 184 | :end_if_platform_12 |
---|
[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% Linux`) DO SET obuild_platform_result=%%j |
---|
| 190 | cd "%obuild_pwd_snova_0%" |
---|
| 191 | SET obuild_pwd_snova_0= |
---|
[241] | 192 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 |
---|
[130] | 193 | SET obuild_cxx_optimize=-O |
---|
[241] | 194 | :end_if_platform_13 |
---|
[130] | 195 | SET obuild_platform_result= |
---|
| 196 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 197 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 198 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 199 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 200 | cd "%obuild_pwd_snova_0%" |
---|
| 201 | SET obuild_pwd_snova_0= |
---|
[241] | 202 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
[130] | 203 | SET obuild_cxx_optimize=-O |
---|
[241] | 204 | :end_if_platform_14 |
---|
[130] | 205 | SET obuild_platform_result= |
---|
| 206 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 207 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 208 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 209 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 210 | cd "%obuild_pwd_snova_0%" |
---|
| 211 | SET obuild_pwd_snova_0= |
---|
[241] | 212 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 |
---|
[130] | 213 | SET obuild_cxx_optimize=/O2 |
---|
[241] | 214 | :end_if_platform_15 |
---|
[130] | 215 | SET obuild_platform_result= |
---|
| 216 | |
---|
| 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% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 221 | cd "%obuild_pwd_snova_0%" |
---|
| 222 | SET obuild_pwd_snova_0= |
---|
[241] | 223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 |
---|
[130] | 224 | SET obuild_cxx_debug=-g |
---|
[241] | 225 | :end_if_platform_16 |
---|
[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% Linux`) DO SET obuild_platform_result=%%j |
---|
| 231 | cd "%obuild_pwd_snova_0%" |
---|
| 232 | SET obuild_pwd_snova_0= |
---|
[241] | 233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 |
---|
[130] | 234 | SET obuild_cxx_debug=-g |
---|
[241] | 235 | :end_if_platform_17 |
---|
[130] | 236 | SET obuild_platform_result= |
---|
| 237 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 238 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 239 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 240 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 241 | cd "%obuild_pwd_snova_0%" |
---|
| 242 | SET obuild_pwd_snova_0= |
---|
[241] | 243 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 |
---|
[130] | 244 | SET obuild_cxx_debug=-g |
---|
[241] | 245 | :end_if_platform_18 |
---|
[130] | 246 | SET obuild_platform_result= |
---|
| 247 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 248 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 249 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 250 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 251 | cd "%obuild_pwd_snova_0%" |
---|
| 252 | SET obuild_pwd_snova_0= |
---|
[241] | 253 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 |
---|
[130] | 254 | SET obuild_cxx_debug=/ZI /Od |
---|
[241] | 255 | :end_if_platform_19 |
---|
[130] | 256 | SET obuild_platform_result= |
---|
| 257 | |
---|
| 258 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 259 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 260 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 261 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 262 | cd "%obuild_pwd_snova_0%" |
---|
| 263 | SET obuild_pwd_snova_0= |
---|
[241] | 264 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 |
---|
[130] | 265 | SET obuild_cxx_options=-fPIC |
---|
[241] | 266 | :end_if_platform_20 |
---|
[130] | 267 | SET obuild_platform_result= |
---|
| 268 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 269 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 270 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 271 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 272 | cd "%obuild_pwd_snova_0%" |
---|
| 273 | SET obuild_pwd_snova_0= |
---|
[241] | 274 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 |
---|
[130] | 275 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
[241] | 276 | :end_if_platform_21 |
---|
[130] | 277 | SET obuild_platform_result= |
---|
| 278 | |
---|
[241] | 279 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_22 |
---|
[130] | 280 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
[241] | 281 | GOTO end_if_db_build_lib_snova_sh_22 |
---|
| 282 | :else_if_db_build_lib_snova_sh_22 |
---|
[130] | 283 | SET obuild_cxx_debug_local= |
---|
[241] | 284 | :end_if_db_build_lib_snova_sh_22 |
---|
[130] | 285 | |
---|
[241] | 286 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_23 |
---|
[130] | 287 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
[241] | 288 | GOTO end_if_opt_build_lib_snova_sh_23 |
---|
| 289 | :else_if_opt_build_lib_snova_sh_23 |
---|
[130] | 290 | SET obuild_cxx_optimize_local= |
---|
[241] | 291 | :end_if_opt_build_lib_snova_sh_23 |
---|
[130] | 292 | |
---|
| 293 | |
---|
[132] | 294 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 295 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" ( |
---|
| 296 | 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 |
---|
| 297 | IF EXIST obuild_find.obj DEL obuild_find.obj |
---|
| 298 | ) |
---|
| 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_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return |
---|
| 302 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j |
---|
| 303 | cd "%obuild_pwd_snova_0%" |
---|
| 304 | SET obuild_pwd_snova_0= |
---|
| 305 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return |
---|
[130] | 306 | |
---|
| 307 | SET obuild_cxx_includes=/I"%obuild_snova_path%" |
---|
| 308 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include" |
---|
| 309 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include" |
---|
| 310 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include" |
---|
[132] | 311 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" |
---|
[130] | 312 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 313 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 314 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 315 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 316 | cd "%obuild_pwd_snova_0%" |
---|
| 317 | SET obuild_pwd_snova_0= |
---|
[241] | 318 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29 |
---|
[130] | 319 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
[241] | 320 | :end_if_platform_29 |
---|
[130] | 321 | SET obuild_platform_result= |
---|
[132] | 322 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 323 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 324 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 325 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 326 | cd "%obuild_pwd_snova_0%" |
---|
| 327 | SET obuild_pwd_snova_0= |
---|
[241] | 328 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 |
---|
[132] | 329 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include |
---|
[241] | 330 | :end_if_platform_30 |
---|
[132] | 331 | SET obuild_platform_result= |
---|
[241] | 332 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 333 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 334 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 335 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 336 | cd "%obuild_pwd_snova_0%" |
---|
| 337 | SET obuild_pwd_snova_0= |
---|
| 338 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31 |
---|
| 339 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include |
---|
| 340 | :end_if_platform_31 |
---|
| 341 | SET obuild_platform_result= |
---|
[130] | 342 | |
---|
| 343 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" |
---|
| 344 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" |
---|
| 345 | |
---|
| 346 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 347 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 348 | %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 |
---|
| 349 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 350 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 351 | cd "%obuild_snova_path%\obuild" |
---|
| 352 | |
---|
| 353 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 354 | %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 |
---|
| 355 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 356 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 357 | cd "%obuild_snova_path%\obuild" |
---|
| 358 | |
---|
| 359 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 360 | %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 |
---|
| 361 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 362 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 363 | cd "%obuild_snova_path%\obuild" |
---|
| 364 | |
---|
| 365 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 366 | %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 |
---|
| 367 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 368 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 369 | cd "%obuild_snova_path%\obuild" |
---|
| 370 | |
---|
| 371 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 372 | %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 |
---|
| 373 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 374 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 375 | cd "%obuild_snova_path%\obuild" |
---|
| 376 | |
---|
| 377 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
[199] | 378 | %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_utils.obj /Tp"..\source\snova\base\snova_utils.cc" 1> cl_exe_error |
---|
| 379 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 380 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 381 | cd "%obuild_snova_path%\obuild" |
---|
| 382 | |
---|
| 383 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
[130] | 384 | %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 |
---|
| 385 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 386 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 387 | cd "%obuild_snova_path%\obuild" |
---|
| 388 | |
---|
| 389 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 390 | %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 |
---|
| 391 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 392 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 393 | cd "%obuild_snova_path%\obuild" |
---|
| 394 | |
---|
| 395 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 396 | %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 |
---|
| 397 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 398 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 399 | cd "%obuild_snova_path%\obuild" |
---|
| 400 | |
---|
| 401 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 402 | %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 |
---|
| 403 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 404 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 405 | cd "%obuild_snova_path%\obuild" |
---|
| 406 | |
---|
| 407 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 408 | %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 |
---|
| 409 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 410 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 411 | cd "%obuild_snova_path%\obuild" |
---|
| 412 | |
---|
| 413 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 414 | %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 |
---|
| 415 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 416 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 417 | cd "%obuild_snova_path%\obuild" |
---|
| 418 | |
---|
| 419 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 420 | %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 |
---|
| 421 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 422 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 423 | cd "%obuild_snova_path%\obuild" |
---|
| 424 | |
---|
| 425 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 426 | %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 |
---|
| 427 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 428 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 429 | cd "%obuild_snova_path%\obuild" |
---|
| 430 | |
---|
| 431 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 432 | %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 |
---|
| 433 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 434 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 435 | cd "%obuild_snova_path%\obuild" |
---|
| 436 | |
---|
| 437 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 438 | |
---|
| 439 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 440 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 441 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 442 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 443 | cd "%obuild_pwd_snova_0%" |
---|
| 444 | SET obuild_pwd_snova_0= |
---|
[241] | 445 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47 |
---|
[130] | 446 | SET obuild_cxx_linker_command=c++ |
---|
[241] | 447 | :end_if_platform_47 |
---|
[130] | 448 | SET obuild_platform_result= |
---|
| 449 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 450 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 451 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 452 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 453 | cd "%obuild_pwd_snova_0%" |
---|
| 454 | SET obuild_pwd_snova_0= |
---|
[241] | 455 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48 |
---|
[130] | 456 | SET obuild_cxx_linker_command=c++ |
---|
[241] | 457 | :end_if_platform_48 |
---|
[130] | 458 | SET obuild_platform_result= |
---|
| 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% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 463 | cd "%obuild_pwd_snova_0%" |
---|
| 464 | SET obuild_pwd_snova_0= |
---|
[241] | 465 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49 |
---|
[130] | 466 | SET obuild_cxx_linker_command=cxx |
---|
[241] | 467 | :end_if_platform_49 |
---|
[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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 473 | cd "%obuild_pwd_snova_0%" |
---|
| 474 | SET obuild_pwd_snova_0= |
---|
[241] | 475 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50 |
---|
[130] | 476 | SET obuild_cxx_linker_command=link.exe |
---|
[241] | 477 | :end_if_platform_50 |
---|
[130] | 478 | SET obuild_platform_result= |
---|
| 479 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
| 480 | |
---|
| 481 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 482 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 483 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 484 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 485 | cd "%obuild_pwd_snova_0%" |
---|
| 486 | SET obuild_pwd_snova_0= |
---|
[241] | 487 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51 |
---|
[130] | 488 | SET obuild_cxx_linker_debug=-g |
---|
[241] | 489 | :end_if_platform_51 |
---|
[130] | 490 | SET obuild_platform_result= |
---|
| 491 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 492 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 493 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 494 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 495 | cd "%obuild_pwd_snova_0%" |
---|
| 496 | SET obuild_pwd_snova_0= |
---|
[241] | 497 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52 |
---|
[130] | 498 | SET obuild_cxx_linker_debug=-g |
---|
[241] | 499 | :end_if_platform_52 |
---|
[130] | 500 | SET obuild_platform_result= |
---|
| 501 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 502 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 503 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 504 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 505 | cd "%obuild_pwd_snova_0%" |
---|
| 506 | SET obuild_pwd_snova_0= |
---|
[241] | 507 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53 |
---|
[130] | 508 | SET obuild_cxx_linker_debug=-g |
---|
[241] | 509 | :end_if_platform_53 |
---|
[130] | 510 | SET obuild_platform_result= |
---|
| 511 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 512 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 513 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 514 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 515 | cd "%obuild_pwd_snova_0%" |
---|
| 516 | SET obuild_pwd_snova_0= |
---|
[241] | 517 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54 |
---|
[130] | 518 | SET obuild_cxx_linker_debug=/DEBUG |
---|
[241] | 519 | :end_if_platform_54 |
---|
[130] | 520 | SET obuild_platform_result= |
---|
| 521 | |
---|
| 522 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 523 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 524 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 525 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 526 | cd "%obuild_pwd_snova_0%" |
---|
| 527 | SET obuild_pwd_snova_0= |
---|
[241] | 528 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55 |
---|
[130] | 529 | SET obuild_cxx_linker_options=/nologo |
---|
[241] | 530 | :end_if_platform_55 |
---|
[130] | 531 | SET obuild_platform_result= |
---|
| 532 | |
---|
[241] | 533 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_56 |
---|
[130] | 534 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
[241] | 535 | GOTO end_if_db_build_lib_snova_sh_56 |
---|
| 536 | :else_if_db_build_lib_snova_sh_56 |
---|
[130] | 537 | SET obuild_cxx_linker_debug_local= |
---|
[241] | 538 | :end_if_db_build_lib_snova_sh_56 |
---|
[130] | 539 | |
---|
[241] | 540 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_57 |
---|
[130] | 541 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
[241] | 542 | GOTO end_if_opt_build_lib_snova_sh_57 |
---|
| 543 | :else_if_opt_build_lib_snova_sh_57 |
---|
[130] | 544 | SET obuild_cxx_linker_optimize_local= |
---|
[241] | 545 | :end_if_opt_build_lib_snova_sh_57 |
---|
[130] | 546 | |
---|
| 547 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 548 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 549 | IF EXIST .\lib_snova\tmp_objs DEL .\lib_snova\tmp_objs |
---|
| 550 | FOR %%f IN (.\lib_snova\*.obj) DO ECHO %%f >> .\lib_snova\tmp_objs |
---|
| 551 | |
---|
| 552 | REM # Create the archive library snova : |
---|
| 553 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 554 | lib.exe /nologo /machine:ix86 /out:.\lib_snova\snova.arc @.\lib_snova\tmp_objs |
---|
| 555 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
| 556 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 557 | |
---|
| 558 | REM # Build the obuild_windef.exe utility program : |
---|
| 559 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
| 560 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
| 561 | |
---|
| 562 | REM # Building the .def file : |
---|
| 563 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 564 | dumpbin.exe /symbols /out:.\lib_snova\tmp .\lib_snova\snova.arc 1> dumpbin_exe_error .\lib_snova\snova.arc |
---|
| 565 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
| 566 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
| 567 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 568 | .\obuild_windef.exe snova < .\lib_snova\tmp > .\lib_snova\snova.def |
---|
| 569 | REM # Building the linking library : |
---|
| 570 | REM # It produces a .exp file. |
---|
| 571 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 572 | lib.exe /nologo /machine:ix86 /out:.\snova.lib /def:.\lib_snova\snova.def 1> lib_exe_error |
---|
| 573 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
| 574 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
| 575 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 576 | |
---|
| 577 | REM # Building the DLL : |
---|
| 578 | IF EXIST .\snova.dll DEL .\snova.dll |
---|
| 579 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 580 | link.exe /nologo /dll /out:.\snova.dll .\snova.exp .\lib_snova\snova.arc %obuild_linked_libraries% |
---|
| 581 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 582 | |
---|
| 583 | cd "%obuild_pwd_snova_0%" |
---|
| 584 | SET obuild_pwd_snova_0= |
---|
| 585 | REM # Some cleanup : |
---|
| 586 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs" |
---|
| 587 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\snova.exp" |
---|
| 588 | |
---|
| 589 | :obuild_return |
---|
| 590 | ENDLOCAL |
---|
| 591 | @ECHO ON |
---|