| 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
|
|---|
| 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
|
|---|
| 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=
|
|---|
| 120 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4
|
|---|
| 121 | SET obuild_cxx_command=c++
|
|---|
| 122 | :end_if_platform_4
|
|---|
| 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=
|
|---|
| 130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
|
|---|
| 131 | SET obuild_cxx_command=c++
|
|---|
| 132 | :end_if_platform_5
|
|---|
| 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=
|
|---|
| 140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6
|
|---|
| 141 | SET obuild_cxx_command=cxx
|
|---|
| 142 | :end_if_platform_6
|
|---|
| 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=
|
|---|
| 150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
|
|---|
| 151 | SET obuild_cxx_command=cl.exe
|
|---|
| 152 | :end_if_platform_7
|
|---|
| 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=
|
|---|
| 162 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
|
|---|
| 163 | SET obuild_cxx_optimize=-O
|
|---|
| 164 | :end_if_platform_8
|
|---|
| 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=
|
|---|
| 172 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
|
|---|
| 173 | SET obuild_cxx_optimize=-O
|
|---|
| 174 | :end_if_platform_9
|
|---|
| 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=
|
|---|
| 182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
|
|---|
| 183 | SET obuild_cxx_optimize=-O
|
|---|
| 184 | :end_if_platform_10
|
|---|
| 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=
|
|---|
| 192 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
|
|---|
| 193 | SET obuild_cxx_optimize=/O2
|
|---|
| 194 | :end_if_platform_11
|
|---|
| 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=
|
|---|
| 203 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
|
|---|
| 204 | SET obuild_cxx_debug=-g
|
|---|
| 205 | :end_if_platform_12
|
|---|
| 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=
|
|---|
| 213 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
|
|---|
| 214 | SET obuild_cxx_debug=-g
|
|---|
| 215 | :end_if_platform_13
|
|---|
| 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=
|
|---|
| 223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
|
|---|
| 224 | SET obuild_cxx_debug=-g
|
|---|
| 225 | :end_if_platform_14
|
|---|
| 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=
|
|---|
| 233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
|
|---|
| 234 | SET obuild_cxx_debug=/ZI /Od
|
|---|
| 235 | :end_if_platform_15
|
|---|
| 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=
|
|---|
| 244 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
|
|---|
| 245 | SET obuild_cxx_options=-fPIC
|
|---|
| 246 | :end_if_platform_16
|
|---|
| 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=
|
|---|
| 254 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
|
|---|
| 255 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
|
|---|
| 256 | :end_if_platform_17
|
|---|
| 257 | SET obuild_platform_result=
|
|---|
| 258 |
|
|---|
| 259 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_18
|
|---|
| 260 | SET obuild_cxx_debug_local=%obuild_cxx_debug%
|
|---|
| 261 | GOTO end_if_db_build_lib_geomutils_sh_18
|
|---|
| 262 | :else_if_db_build_lib_geomutils_sh_18
|
|---|
| 263 | SET obuild_cxx_debug_local=
|
|---|
| 264 | :end_if_db_build_lib_geomutils_sh_18
|
|---|
| 265 |
|
|---|
| 266 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_19
|
|---|
| 267 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
|
|---|
| 268 | GOTO end_if_opt_build_lib_geomutils_sh_19
|
|---|
| 269 | :else_if_opt_build_lib_geomutils_sh_19
|
|---|
| 270 | SET obuild_cxx_optimize_local=
|
|---|
| 271 | :end_if_opt_build_lib_geomutils_sh_19
|
|---|
| 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=
|
|---|
| 282 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
|
|---|
| 283 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
|
|---|
| 284 | :end_if_platform_21
|
|---|
| 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=
|
|---|
| 377 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
|
|---|
| 378 | SET obuild_cxx_linker_command=c++
|
|---|
| 379 | :end_if_platform_35
|
|---|
| 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=
|
|---|
| 387 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
|
|---|
| 388 | SET obuild_cxx_linker_command=c++
|
|---|
| 389 | :end_if_platform_36
|
|---|
| 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=
|
|---|
| 397 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
|
|---|
| 398 | SET obuild_cxx_linker_command=cxx
|
|---|
| 399 | :end_if_platform_37
|
|---|
| 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=
|
|---|
| 407 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
|
|---|
| 408 | SET obuild_cxx_linker_command=link.exe
|
|---|
| 409 | :end_if_platform_38
|
|---|
| 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=
|
|---|
| 419 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
|
|---|
| 420 | SET obuild_cxx_linker_debug=-g
|
|---|
| 421 | :end_if_platform_39
|
|---|
| 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=
|
|---|
| 429 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
|
|---|
| 430 | SET obuild_cxx_linker_debug=-g
|
|---|
| 431 | :end_if_platform_40
|
|---|
| 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=
|
|---|
| 439 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
|
|---|
| 440 | SET obuild_cxx_linker_debug=-g
|
|---|
| 441 | :end_if_platform_41
|
|---|
| 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=
|
|---|
| 449 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
|
|---|
| 450 | SET obuild_cxx_linker_debug=/DEBUG
|
|---|
| 451 | :end_if_platform_42
|
|---|
| 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=
|
|---|
| 460 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
|
|---|
| 461 | SET obuild_cxx_linker_options=/nologo
|
|---|
| 462 | :end_if_platform_43
|
|---|
| 463 | SET obuild_platform_result=
|
|---|
| 464 |
|
|---|
| 465 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_44
|
|---|
| 466 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
|
|---|
| 467 | GOTO end_if_db_build_lib_geomutils_sh_44
|
|---|
| 468 | :else_if_db_build_lib_geomutils_sh_44
|
|---|
| 469 | SET obuild_cxx_linker_debug_local=
|
|---|
| 470 | :end_if_db_build_lib_geomutils_sh_44
|
|---|
| 471 |
|
|---|
| 472 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_45
|
|---|
| 473 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
|
|---|
| 474 | GOTO end_if_opt_build_lib_geomutils_sh_45
|
|---|
| 475 | :else_if_opt_build_lib_geomutils_sh_45
|
|---|
| 476 | SET obuild_cxx_linker_optimize_local=
|
|---|
| 477 | :end_if_opt_build_lib_geomutils_sh_45
|
|---|
| 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
|
|---|