[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_geomutils |
---|
| 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_geomutils_sh_18 |
---|
[130] | 260 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
[132] | 261 | GOTO end_if_db_build_lib_geomutils_sh_18 |
---|
| 262 | :else_if_db_build_lib_geomutils_sh_18 |
---|
[130] | 263 | SET obuild_cxx_debug_local= |
---|
[132] | 264 | :end_if_db_build_lib_geomutils_sh_18 |
---|
[130] | 265 | |
---|
[132] | 266 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_19 |
---|
[130] | 267 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
[132] | 268 | GOTO end_if_opt_build_lib_geomutils_sh_19 |
---|
| 269 | :else_if_opt_build_lib_geomutils_sh_19 |
---|
[130] | 270 | SET obuild_cxx_optimize_local= |
---|
[132] | 271 | :end_if_opt_build_lib_geomutils_sh_19 |
---|
[130] | 272 | |
---|
| 273 | |
---|
| 274 | |
---|
| 275 | SET obuild_cxx_includes=/I"%obuild_snova_path%\source\GeomUtils\include" |
---|
| 276 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 277 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 278 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 279 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
| 280 | cd "%obuild_pwd_snova_0%" |
---|
| 281 | SET obuild_pwd_snova_0= |
---|
[132] | 282 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 |
---|
[130] | 283 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
[132] | 284 | :end_if_platform_21 |
---|
[130] | 285 | SET obuild_platform_result= |
---|
| 286 | |
---|
| 287 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" |
---|
| 288 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" |
---|
| 289 | |
---|
| 290 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 291 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 292 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\box_data.obj /Tp"..\source\GeomUtils\src\box_data.cc" 1> cl_exe_error |
---|
| 293 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 294 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 295 | cd "%obuild_snova_path%\obuild" |
---|
| 296 | |
---|
| 297 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 298 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\cat_dictionary.obj /Tp"..\source\GeomUtils\src\cat_dictionary.cc" 1> cl_exe_error |
---|
| 299 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 300 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 301 | cd "%obuild_snova_path%\obuild" |
---|
| 302 | |
---|
| 303 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 304 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\cylinder_data.obj /Tp"..\source\GeomUtils\src\cylinder_data.cc" 1> cl_exe_error |
---|
| 305 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 306 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 307 | cd "%obuild_snova_path%\obuild" |
---|
| 308 | |
---|
| 309 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 310 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_consts.obj /Tp"..\source\GeomUtils\src\geom_consts.cc" 1> cl_exe_error |
---|
| 311 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 312 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 313 | cd "%obuild_snova_path%\obuild" |
---|
| 314 | |
---|
| 315 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 316 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_data.obj /Tp"..\source\GeomUtils\src\geom_data.cc" 1> cl_exe_error |
---|
| 317 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 318 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 319 | cd "%obuild_snova_path%\obuild" |
---|
| 320 | |
---|
| 321 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 322 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_id.obj /Tp"..\source\GeomUtils\src\geom_id.cc" 1> cl_exe_error |
---|
| 323 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 324 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 325 | cd "%obuild_snova_path%\obuild" |
---|
| 326 | |
---|
| 327 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 328 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_locator.obj /Tp"..\source\GeomUtils\src\geom_locator.cc" 1> cl_exe_error |
---|
| 329 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 330 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 331 | cd "%obuild_snova_path%\obuild" |
---|
| 332 | |
---|
| 333 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 334 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_tools.obj /Tp"..\source\GeomUtils\src\geom_tools.cc" 1> cl_exe_error |
---|
| 335 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 336 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 337 | cd "%obuild_snova_path%\obuild" |
---|
| 338 | |
---|
| 339 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 340 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\gnuplot_tools.obj /Tp"..\source\GeomUtils\src\gnuplot_tools.cc" 1> cl_exe_error |
---|
| 341 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 342 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 343 | cd "%obuild_snova_path%\obuild" |
---|
| 344 | |
---|
| 345 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 346 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\shape_data.obj /Tp"..\source\GeomUtils\src\shape_data.cc" 1> cl_exe_error |
---|
| 347 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 348 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 349 | cd "%obuild_snova_path%\obuild" |
---|
| 350 | |
---|
| 351 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 352 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\sphere_data.obj /Tp"..\source\GeomUtils\src\sphere_data.cc" 1> cl_exe_error |
---|
| 353 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 354 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 355 | cd "%obuild_snova_path%\obuild" |
---|
| 356 | |
---|
| 357 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 358 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\string_tools.obj /Tp"..\source\GeomUtils\src\string_tools.cc" 1> cl_exe_error |
---|
| 359 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 360 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 361 | cd "%obuild_snova_path%\obuild" |
---|
| 362 | |
---|
| 363 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 364 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\tube_data.obj /Tp"..\source\GeomUtils\src\tube_data.cc" 1> cl_exe_error |
---|
| 365 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 366 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 367 | cd "%obuild_snova_path%\obuild" |
---|
| 368 | |
---|
| 369 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 370 | |
---|
| 371 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 372 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 373 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 374 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 375 | cd "%obuild_pwd_snova_0%" |
---|
| 376 | SET obuild_pwd_snova_0= |
---|
[132] | 377 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35 |
---|
[130] | 378 | SET obuild_cxx_linker_command=c++ |
---|
[132] | 379 | :end_if_platform_35 |
---|
[130] | 380 | SET obuild_platform_result= |
---|
| 381 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 382 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 383 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 384 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 385 | cd "%obuild_pwd_snova_0%" |
---|
| 386 | SET obuild_pwd_snova_0= |
---|
[132] | 387 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36 |
---|
[130] | 388 | SET obuild_cxx_linker_command=c++ |
---|
[132] | 389 | :end_if_platform_36 |
---|
[130] | 390 | SET obuild_platform_result= |
---|
| 391 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 392 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 393 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 394 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 395 | cd "%obuild_pwd_snova_0%" |
---|
| 396 | SET obuild_pwd_snova_0= |
---|
[132] | 397 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37 |
---|
[130] | 398 | SET obuild_cxx_linker_command=cxx |
---|
[132] | 399 | :end_if_platform_37 |
---|
[130] | 400 | SET obuild_platform_result= |
---|
| 401 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 402 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 403 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 404 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 405 | cd "%obuild_pwd_snova_0%" |
---|
| 406 | SET obuild_pwd_snova_0= |
---|
[132] | 407 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38 |
---|
[130] | 408 | SET obuild_cxx_linker_command=link.exe |
---|
[132] | 409 | :end_if_platform_38 |
---|
[130] | 410 | SET obuild_platform_result= |
---|
| 411 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
| 412 | |
---|
| 413 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 414 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 415 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 416 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 417 | cd "%obuild_pwd_snova_0%" |
---|
| 418 | SET obuild_pwd_snova_0= |
---|
[132] | 419 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39 |
---|
[130] | 420 | SET obuild_cxx_linker_debug=-g |
---|
[132] | 421 | :end_if_platform_39 |
---|
[130] | 422 | SET obuild_platform_result= |
---|
| 423 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 424 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 425 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 426 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 427 | cd "%obuild_pwd_snova_0%" |
---|
| 428 | SET obuild_pwd_snova_0= |
---|
[132] | 429 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40 |
---|
[130] | 430 | SET obuild_cxx_linker_debug=-g |
---|
[132] | 431 | :end_if_platform_40 |
---|
[130] | 432 | SET obuild_platform_result= |
---|
| 433 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 434 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 435 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 436 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 437 | cd "%obuild_pwd_snova_0%" |
---|
| 438 | SET obuild_pwd_snova_0= |
---|
[132] | 439 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41 |
---|
[130] | 440 | SET obuild_cxx_linker_debug=-g |
---|
[132] | 441 | :end_if_platform_41 |
---|
[130] | 442 | SET obuild_platform_result= |
---|
| 443 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 444 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 445 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 446 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 447 | cd "%obuild_pwd_snova_0%" |
---|
| 448 | SET obuild_pwd_snova_0= |
---|
[132] | 449 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42 |
---|
[130] | 450 | SET obuild_cxx_linker_debug=/DEBUG |
---|
[132] | 451 | :end_if_platform_42 |
---|
[130] | 452 | SET obuild_platform_result= |
---|
| 453 | |
---|
| 454 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
| 455 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
| 456 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 457 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 458 | cd "%obuild_pwd_snova_0%" |
---|
| 459 | SET obuild_pwd_snova_0= |
---|
[132] | 460 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43 |
---|
[130] | 461 | SET obuild_cxx_linker_options=/nologo |
---|
[132] | 462 | :end_if_platform_43 |
---|
[130] | 463 | SET obuild_platform_result= |
---|
| 464 | |
---|
[132] | 465 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_44 |
---|
[130] | 466 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
[132] | 467 | GOTO end_if_db_build_lib_geomutils_sh_44 |
---|
| 468 | :else_if_db_build_lib_geomutils_sh_44 |
---|
[130] | 469 | SET obuild_cxx_linker_debug_local= |
---|
[132] | 470 | :end_if_db_build_lib_geomutils_sh_44 |
---|
[130] | 471 | |
---|
[132] | 472 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_45 |
---|
[130] | 473 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
[132] | 474 | GOTO end_if_opt_build_lib_geomutils_sh_45 |
---|
| 475 | :else_if_opt_build_lib_geomutils_sh_45 |
---|
[130] | 476 | SET obuild_cxx_linker_optimize_local= |
---|
[132] | 477 | :end_if_opt_build_lib_geomutils_sh_45 |
---|
[130] | 478 | |
---|
| 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 EXIST .\lib_geomutils\tmp_objs DEL .\lib_geomutils\tmp_objs |
---|
| 482 | FOR %%f IN (.\lib_geomutils\*.obj) DO ECHO %%f >> .\lib_geomutils\tmp_objs |
---|
| 483 | |
---|
| 484 | REM # Create the archive library geomutils : |
---|
| 485 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 486 | lib.exe /nologo /machine:ix86 /out:.\lib_geomutils\geomutils.arc @.\lib_geomutils\tmp_objs |
---|
| 487 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
| 488 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 489 | |
---|
| 490 | REM # Build the obuild_windef.exe utility program : |
---|
| 491 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
| 492 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
| 493 | |
---|
| 494 | REM # Building the .def file : |
---|
| 495 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 496 | dumpbin.exe /symbols /out:.\lib_geomutils\tmp .\lib_geomutils\geomutils.arc 1> dumpbin_exe_error .\lib_geomutils\geomutils.arc |
---|
| 497 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
| 498 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
| 499 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 500 | .\obuild_windef.exe geomutils < .\lib_geomutils\tmp > .\lib_geomutils\geomutils.def |
---|
| 501 | REM # Building the linking library : |
---|
| 502 | REM # It produces a .exp file. |
---|
| 503 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 504 | lib.exe /nologo /machine:ix86 /out:.\geomutils.lib /def:.\lib_geomutils\geomutils.def 1> lib_exe_error |
---|
| 505 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
| 506 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
| 507 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 508 | |
---|
| 509 | REM # Building the DLL : |
---|
| 510 | IF EXIST .\geomutils.dll DEL .\geomutils.dll |
---|
| 511 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 512 | link.exe /nologo /dll /out:.\geomutils.dll .\geomutils.exp .\lib_geomutils\geomutils.arc %obuild_linked_libraries% |
---|
| 513 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 514 | |
---|
| 515 | cd "%obuild_pwd_snova_0%" |
---|
| 516 | SET obuild_pwd_snova_0= |
---|
| 517 | REM # Some cleanup : |
---|
| 518 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils\tmp_objs" |
---|
| 519 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\geomutils.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\geomutils.exp" |
---|
| 520 | |
---|
| 521 | :obuild_return |
---|
| 522 | ENDLOCAL |
---|
| 523 | @ECHO ON |
---|