| 1 | @ECHO OFF
|
|---|
| 2 | SETLOCAL
|
|---|
| 3 |
|
|---|
| 4 | REM #
|
|---|
| 5 | REM # File produced by the obuild tool version 1.0
|
|---|
| 6 | REM # for the package snovis with version v1r1.
|
|---|
| 7 | REM #
|
|---|
| 8 |
|
|---|
| 9 | REM #////////////////////////////////////////////////
|
|---|
| 10 | REM # Usage :
|
|---|
| 11 | REM # DOS> CD some_path\pack\version\obuild
|
|---|
| 12 | REM # DOS> DOS\build_snovis_session
|
|---|
| 13 | REM #
|
|---|
| 14 | REM #////////////////////////////////////////////////
|
|---|
| 15 |
|
|---|
| 16 | REM #////////////////////////////////////////////////
|
|---|
| 17 | REM #/// Get path of this file :
|
|---|
| 18 | REM #////////////////////////////////////////////////
|
|---|
| 19 | SET obuild_snovis_path=%~dp0
|
|---|
| 20 | REM # Remove ending \obuild\DOS\
|
|---|
| 21 | SET obuild_snovis_path=%obuild_snovis_path:~0,-12%
|
|---|
| 22 |
|
|---|
| 23 | REM #////////////////////////////////////////////////
|
|---|
| 24 | REM #/// Treat arguments :
|
|---|
| 25 | REM #////////////////////////////////////////////////
|
|---|
| 26 |
|
|---|
| 27 | SET obuild_verbose=no
|
|---|
| 28 | SET obuild_debug=no
|
|---|
| 29 | SET obuild_optimize=yes
|
|---|
| 30 | SET obuild_set_x=no
|
|---|
| 31 |
|
|---|
| 32 | :next_arg
|
|---|
| 33 | IF "%1%" == "" GOTO end_args
|
|---|
| 34 |
|
|---|
| 35 | IF NOT "%1%" == "-v" GOTO end_if_v
|
|---|
| 36 | SET obuild_verbose=yes
|
|---|
| 37 | SHIFT
|
|---|
| 38 | GOTO next_arg
|
|---|
| 39 | :end_if_v
|
|---|
| 40 |
|
|---|
| 41 | IF NOT "%1%" == "-g" GOTO end_if_g
|
|---|
| 42 | SET obuild_debug=yes
|
|---|
| 43 | SHIFT
|
|---|
| 44 | GOTO next_arg
|
|---|
| 45 | :end_if_g
|
|---|
| 46 |
|
|---|
| 47 | IF NOT "%1%" == "-x" GOTO end_if_x
|
|---|
| 48 | SET obuild_set_x=yes
|
|---|
| 49 | SHIFT
|
|---|
| 50 | GOTO next_arg
|
|---|
| 51 | :end_if_x
|
|---|
| 52 |
|
|---|
| 53 | :end_args
|
|---|
| 54 |
|
|---|
| 55 | REM #////////////////////////////////////////////////
|
|---|
| 56 | REM #/// End arguments.
|
|---|
| 57 | REM #////////////////////////////////////////////////
|
|---|
| 58 |
|
|---|
| 59 | IF %obuild_set_x% == yes ECHO ON
|
|---|
| 60 |
|
|---|
| 61 | IF %obuild_debug% == yes SET obuild_optimize=no
|
|---|
| 62 |
|
|---|
| 63 | IF "%OBUILD_PLATFORM%" == "" (
|
|---|
| 64 | IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return
|
|---|
| 65 | SET obuild_platform=%OS%
|
|---|
| 66 | ) ELSE (
|
|---|
| 67 | SET obuild_platform=%OBUILD_PLATFORM%
|
|---|
| 68 | )
|
|---|
| 69 |
|
|---|
| 70 | IF "%obuild_platform%" == "" (
|
|---|
| 71 | ECHO obuild_platform variable not defined.
|
|---|
| 72 | GOTO obuild_return
|
|---|
| 73 | )
|
|---|
| 74 |
|
|---|
| 75 | IF "%OBUILD_DIR_BIN%" == "" (
|
|---|
| 76 | SET obuild_dir_bin=%obuild_platform%_obuild
|
|---|
| 77 | ) ELSE (
|
|---|
| 78 | SET obuild_dir_bin=%OBUILD_DIR_BIN%
|
|---|
| 79 | )
|
|---|
| 80 |
|
|---|
| 81 | IF "%obuild_dir_bin%" == "" (
|
|---|
| 82 | ECHO obuild_dir_bin variable not defined.
|
|---|
| 83 | GOTO obuild_return
|
|---|
| 84 | )
|
|---|
| 85 |
|
|---|
| 86 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 87 |
|
|---|
| 88 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 89 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
|
|---|
| 90 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL
|
|---|
| 91 | IF EXIST obuild_platform.obj DEL obuild_platform.obj
|
|---|
| 92 | )
|
|---|
| 93 |
|
|---|
| 94 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 95 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 96 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 97 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 98 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 99 | SET obuild_pwd_snovis_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_snovis_0=%%d
|
|---|
| 105 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 106 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 107 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 108 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 109 | SET obuild_pwd_snovis_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_snovis_0=%%d
|
|---|
| 115 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 116 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 117 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 118 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 119 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 125 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 126 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 127 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 128 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 129 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 135 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 136 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 137 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 138 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 139 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 145 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 146 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 147 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 148 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 149 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 157 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 158 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 159 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 160 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 161 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 167 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 168 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 169 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 170 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 171 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 177 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 178 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 179 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 180 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 181 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 187 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 188 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 189 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 190 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 191 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 198 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 199 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 200 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 201 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 202 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 208 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 209 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 210 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 211 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 212 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 218 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 219 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 220 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 221 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 222 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 228 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 229 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 230 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 231 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 232 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 239 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 240 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 241 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 242 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 243 | SET obuild_pwd_snovis_0=
|
|---|
| 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_snovis_0=%%d
|
|---|
| 249 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 250 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 251 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 252 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 253 | SET obuild_pwd_snovis_0=
|
|---|
| 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_app_snovis_session_sh_18
|
|---|
| 260 | SET obuild_cxx_debug_local=%obuild_cxx_debug%
|
|---|
| 261 | GOTO end_if_db_build_app_snovis_session_sh_18
|
|---|
| 262 | :else_if_db_build_app_snovis_session_sh_18
|
|---|
| 263 | SET obuild_cxx_debug_local=
|
|---|
| 264 | :end_if_db_build_app_snovis_session_sh_18
|
|---|
| 265 |
|
|---|
| 266 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_19
|
|---|
| 267 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
|
|---|
| 268 | GOTO end_if_opt_build_app_snovis_session_sh_19
|
|---|
| 269 | :else_if_opt_build_app_snovis_session_sh_19
|
|---|
| 270 | SET obuild_cxx_optimize_local=
|
|---|
| 271 | :end_if_opt_build_app_snovis_session_sh_19
|
|---|
| 272 |
|
|---|
| 273 |
|
|---|
| 274 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 275 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
|
|---|
| 276 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL
|
|---|
| 277 | IF EXIST obuild_find.obj DEL obuild_find.obj
|
|---|
| 278 | )
|
|---|
| 279 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 280 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 281 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 282 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 283 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 284 | SET obuild_pwd_snovis_0=
|
|---|
| 285 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 286 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 287 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 288 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 289 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 290 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 291 | SET obuild_pwd_snovis_0=
|
|---|
| 292 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 293 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 294 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 295 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 296 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 297 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 298 | SET obuild_pwd_snovis_0=
|
|---|
| 299 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 300 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 301 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 302 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 303 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 304 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 305 | SET obuild_pwd_snovis_0=
|
|---|
| 306 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 307 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 308 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 309 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 310 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j
|
|---|
| 311 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 312 | SET obuild_pwd_snovis_0=
|
|---|
| 313 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return
|
|---|
| 314 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 315 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 316 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 317 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
|
|---|
| 318 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 319 | SET obuild_pwd_snovis_0=
|
|---|
| 320 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return
|
|---|
| 321 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 322 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 323 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 324 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
|
|---|
| 325 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 326 | SET obuild_pwd_snovis_0=
|
|---|
| 327 | IF NOT DEFINED obuild_AIDA_path ECHO Can't find AIDA package. && GOTO obuild_return
|
|---|
| 328 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 329 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 330 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 331 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
|
|---|
| 332 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 333 | SET obuild_pwd_snovis_0=
|
|---|
| 334 | IF NOT DEFINED obuild_G4Lab_path ECHO Can't find G4Lab package. && GOTO obuild_return
|
|---|
| 335 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 336 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 337 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 338 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j
|
|---|
| 339 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 340 | SET obuild_pwd_snovis_0=
|
|---|
| 341 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return
|
|---|
| 342 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 343 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 344 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 345 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Slash v1r*`) DO SET obuild_Slash_path=%%j
|
|---|
| 346 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 347 | SET obuild_pwd_snovis_0=
|
|---|
| 348 | IF NOT DEFINED obuild_Slash_path ECHO Can't find Slash package. && GOTO obuild_return
|
|---|
| 349 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 350 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 351 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 352 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe OnX v17r*`) DO SET obuild_OnX_path=%%j
|
|---|
| 353 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 354 | SET obuild_pwd_snovis_0=
|
|---|
| 355 | IF NOT DEFINED obuild_OnX_path ECHO Can't find OnX package. && GOTO obuild_return
|
|---|
| 356 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 357 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 358 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 359 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 360 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 361 | SET obuild_pwd_snovis_0=
|
|---|
| 362 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 363 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 364 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 365 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 366 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 367 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 368 | SET obuild_pwd_snovis_0=
|
|---|
| 369 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 370 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 371 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 372 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 373 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 374 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 375 | SET obuild_pwd_snovis_0=
|
|---|
| 376 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 377 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 378 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 379 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 380 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 381 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 382 | SET obuild_pwd_snovis_0=
|
|---|
| 383 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 384 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 385 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 386 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 387 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j
|
|---|
| 388 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 389 | SET obuild_pwd_snovis_0=
|
|---|
| 390 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return
|
|---|
| 391 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 392 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 393 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 394 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
|
|---|
| 395 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 396 | SET obuild_pwd_snovis_0=
|
|---|
| 397 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return
|
|---|
| 398 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 399 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 400 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 401 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
|
|---|
| 402 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 403 | SET obuild_pwd_snovis_0=
|
|---|
| 404 | IF NOT DEFINED obuild_G4Lab_path ECHO Can't find G4Lab package. && GOTO obuild_return
|
|---|
| 405 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 406 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 407 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 408 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
|
|---|
| 409 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 410 | SET obuild_pwd_snovis_0=
|
|---|
| 411 | IF NOT DEFINED obuild_G4Lab_path ECHO Can't find G4Lab package. && GOTO obuild_return
|
|---|
| 412 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 413 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 414 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 415 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j
|
|---|
| 416 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 417 | SET obuild_pwd_snovis_0=
|
|---|
| 418 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return
|
|---|
| 419 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 420 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 421 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 422 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe expat v1r*`) DO SET obuild_expat_path=%%j
|
|---|
| 423 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 424 | SET obuild_pwd_snovis_0=
|
|---|
| 425 | IF NOT DEFINED obuild_expat_path ECHO Can't find expat package. && GOTO obuild_return
|
|---|
| 426 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 427 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 428 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 429 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j
|
|---|
| 430 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 431 | SET obuild_pwd_snovis_0=
|
|---|
| 432 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return
|
|---|
| 433 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 434 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 435 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 436 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j
|
|---|
| 437 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 438 | SET obuild_pwd_snovis_0=
|
|---|
| 439 | IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return
|
|---|
| 440 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 441 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 442 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 443 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j
|
|---|
| 444 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 445 | SET obuild_pwd_snovis_0=
|
|---|
| 446 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return
|
|---|
| 447 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 448 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 449 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 450 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
|
|---|
| 451 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 452 | SET obuild_pwd_snovis_0=
|
|---|
| 453 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return
|
|---|
| 454 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 455 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 456 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 457 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
|
|---|
| 458 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 459 | SET obuild_pwd_snovis_0=
|
|---|
| 460 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return
|
|---|
| 461 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 462 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 463 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 464 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe jpeg v1r*`) DO SET obuild_jpeg_path=%%j
|
|---|
| 465 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 466 | SET obuild_pwd_snovis_0=
|
|---|
| 467 | IF NOT DEFINED obuild_jpeg_path ECHO Can't find jpeg package. && GOTO obuild_return
|
|---|
| 468 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 469 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 470 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 471 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
|
|---|
| 472 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 473 | SET obuild_pwd_snovis_0=
|
|---|
| 474 | IF NOT DEFINED obuild_dvi2bitmap_path ECHO Can't find dvi2bitmap package. && GOTO obuild_return
|
|---|
| 475 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 476 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 477 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 478 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
|
|---|
| 479 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 480 | SET obuild_pwd_snovis_0=
|
|---|
| 481 | IF NOT DEFINED obuild_freetype2_path ECHO Can't find freetype2 package. && GOTO obuild_return
|
|---|
| 482 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 483 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 484 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 485 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
|
|---|
| 486 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 487 | SET obuild_pwd_snovis_0=
|
|---|
| 488 | IF NOT DEFINED obuild_CoinGL_path ECHO Can't find CoinGL package. && GOTO obuild_return
|
|---|
| 489 |
|
|---|
| 490 | SET obuild_cxx_includes=/I"%obuild_snova_path%"
|
|---|
| 491 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
|
|---|
| 492 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
|
|---|
| 493 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
|
|---|
| 494 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
|
|---|
| 495 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 496 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 497 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 498 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 499 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 500 | SET obuild_pwd_snovis_0=
|
|---|
| 501 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
|
|---|
| 502 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
|
|---|
| 503 | :end_if_platform_25
|
|---|
| 504 | SET obuild_platform_result=
|
|---|
| 505 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 506 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 507 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 508 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 509 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 510 | SET obuild_pwd_snovis_0=
|
|---|
| 511 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
|
|---|
| 512 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
|
|---|
| 513 | :end_if_platform_26
|
|---|
| 514 | SET obuild_platform_result=
|
|---|
| 515 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
|
|---|
| 516 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
|
|---|
| 517 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
|
|---|
| 518 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
|
|---|
| 519 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
|
|---|
| 520 |
|
|---|
| 521 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
|
|---|
| 522 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
|
|---|
| 523 |
|
|---|
| 524 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 525 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 526 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_snovis_session\snovis_session.obj /Tp"..\applications\snovis_session.cc" 1> cl_exe_error
|
|---|
| 527 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
|
|---|
| 528 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error
|
|---|
| 529 | cd "%obuild_snovis_path%\obuild"
|
|---|
| 530 |
|
|---|
| 531 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 532 |
|
|---|
| 533 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 534 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 535 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 536 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 537 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 538 | SET obuild_pwd_snovis_0=
|
|---|
| 539 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
|
|---|
| 540 | SET obuild_cxx_linker_command=c++
|
|---|
| 541 | :end_if_platform_33
|
|---|
| 542 | SET obuild_platform_result=
|
|---|
| 543 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 544 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 545 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 546 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 547 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 548 | SET obuild_pwd_snovis_0=
|
|---|
| 549 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
|
|---|
| 550 | SET obuild_cxx_linker_command=c++
|
|---|
| 551 | :end_if_platform_34
|
|---|
| 552 | SET obuild_platform_result=
|
|---|
| 553 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 554 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 555 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 556 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 557 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 558 | SET obuild_pwd_snovis_0=
|
|---|
| 559 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
|
|---|
| 560 | SET obuild_cxx_linker_command=cxx
|
|---|
| 561 | :end_if_platform_35
|
|---|
| 562 | SET obuild_platform_result=
|
|---|
| 563 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 564 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 565 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 566 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 567 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 568 | SET obuild_pwd_snovis_0=
|
|---|
| 569 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
|
|---|
| 570 | SET obuild_cxx_linker_command=link.exe
|
|---|
| 571 | :end_if_platform_36
|
|---|
| 572 | SET obuild_platform_result=
|
|---|
| 573 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return
|
|---|
| 574 |
|
|---|
| 575 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 576 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 577 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 578 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 579 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 580 | SET obuild_pwd_snovis_0=
|
|---|
| 581 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
|
|---|
| 582 | SET obuild_cxx_linker_debug=-g
|
|---|
| 583 | :end_if_platform_37
|
|---|
| 584 | SET obuild_platform_result=
|
|---|
| 585 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 586 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 587 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 588 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 589 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 590 | SET obuild_pwd_snovis_0=
|
|---|
| 591 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
|
|---|
| 592 | SET obuild_cxx_linker_debug=-g
|
|---|
| 593 | :end_if_platform_38
|
|---|
| 594 | SET obuild_platform_result=
|
|---|
| 595 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 596 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 597 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 598 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 599 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 600 | SET obuild_pwd_snovis_0=
|
|---|
| 601 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
|
|---|
| 602 | SET obuild_cxx_linker_debug=-g
|
|---|
| 603 | :end_if_platform_39
|
|---|
| 604 | SET obuild_platform_result=
|
|---|
| 605 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 606 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 607 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 608 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 609 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 610 | SET obuild_pwd_snovis_0=
|
|---|
| 611 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
|
|---|
| 612 | SET obuild_cxx_linker_debug=/DEBUG
|
|---|
| 613 | :end_if_platform_40
|
|---|
| 614 | SET obuild_platform_result=
|
|---|
| 615 |
|
|---|
| 616 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 617 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 618 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 619 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 620 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 621 | SET obuild_pwd_snovis_0=
|
|---|
| 622 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
|
|---|
| 623 | SET obuild_cxx_linker_options=/nologo
|
|---|
| 624 | :end_if_platform_41
|
|---|
| 625 | SET obuild_platform_result=
|
|---|
| 626 |
|
|---|
| 627 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_42
|
|---|
| 628 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
|
|---|
| 629 | GOTO end_if_db_build_app_snovis_session_sh_42
|
|---|
| 630 | :else_if_db_build_app_snovis_session_sh_42
|
|---|
| 631 | SET obuild_cxx_linker_debug_local=
|
|---|
| 632 | :end_if_db_build_app_snovis_session_sh_42
|
|---|
| 633 |
|
|---|
| 634 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_43
|
|---|
| 635 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
|
|---|
| 636 | GOTO end_if_opt_build_app_snovis_session_sh_43
|
|---|
| 637 | :else_if_opt_build_app_snovis_session_sh_43
|
|---|
| 638 | SET obuild_cxx_linker_optimize_local=
|
|---|
| 639 | :end_if_opt_build_app_snovis_session_sh_43
|
|---|
| 640 |
|
|---|
| 641 | SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
|
|---|
| 642 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snova.lib"
|
|---|
| 643 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snvertex.lib"
|
|---|
| 644 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\sngeom.lib"
|
|---|
| 645 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib"
|
|---|
| 646 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib"
|
|---|
| 647 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
|
|---|
| 648 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
|
|---|
| 649 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabCore.lib"
|
|---|
| 650 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 651 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 652 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 653 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 654 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 655 | SET obuild_pwd_snovis_0=
|
|---|
| 656 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
|
|---|
| 657 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
|
|---|
| 658 | :end_if_platform_53
|
|---|
| 659 | SET obuild_platform_result=
|
|---|
| 660 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 661 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 662 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 663 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 664 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 665 | SET obuild_pwd_snovis_0=
|
|---|
| 666 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
|
|---|
| 667 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1
|
|---|
| 668 | :end_if_platform_54
|
|---|
| 669 | SET obuild_platform_result=
|
|---|
| 670 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
|
|---|
| 671 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
|
|---|
| 672 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
|
|---|
| 673 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
|
|---|
| 674 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
|
|---|
| 675 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
|
|---|
| 676 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
|
|---|
| 677 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
|
|---|
| 678 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
|
|---|
| 679 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
|
|---|
| 680 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
|
|---|
| 681 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 682 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 683 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 684 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 685 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 686 | SET obuild_pwd_snovis_0=
|
|---|
| 687 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66
|
|---|
| 688 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
|
|---|
| 689 | :end_if_platform_66
|
|---|
| 690 | SET obuild_platform_result=
|
|---|
| 691 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 692 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 693 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 694 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 695 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 696 | SET obuild_pwd_snovis_0=
|
|---|
| 697 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67
|
|---|
| 698 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
|
|---|
| 699 | :end_if_platform_67
|
|---|
| 700 | SET obuild_platform_result=
|
|---|
| 701 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 702 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 703 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 704 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 705 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 706 | SET obuild_pwd_snovis_0=
|
|---|
| 707 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_68
|
|---|
| 708 | SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
|
|---|
| 709 | :end_if_platform_68
|
|---|
| 710 | SET obuild_platform_result=
|
|---|
| 711 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 712 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 713 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 714 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 715 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 716 | SET obuild_pwd_snovis_0=
|
|---|
| 717 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69
|
|---|
| 718 | SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
|
|---|
| 719 | :end_if_platform_69
|
|---|
| 720 | SET obuild_platform_result=
|
|---|
| 721 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 722 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 723 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 724 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 725 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 726 | SET obuild_pwd_snovis_0=
|
|---|
| 727 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_70
|
|---|
| 728 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
|
|---|
| 729 | :end_if_platform_70
|
|---|
| 730 | SET obuild_platform_result=
|
|---|
| 731 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 732 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 733 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 734 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 735 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 736 | SET obuild_pwd_snovis_0=
|
|---|
| 737 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
|
|---|
| 738 | SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
|
|---|
| 739 | :end_if_platform_71
|
|---|
| 740 | SET obuild_platform_result=
|
|---|
| 741 |
|
|---|
| 742 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 743 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 744 | IF EXIST .\app_snovis_session\tmp_objs DEL .\app_snovis_session\tmp_objs
|
|---|
| 745 | FOR %%f IN (.\app_snovis_session\*.obj) DO ECHO %%f >> .\app_snovis_session\tmp_objs
|
|---|
| 746 | REM # Link snovis_session :
|
|---|
| 747 | IF EXIST .\snovis_session.exe DEL .\snovis_session.exe
|
|---|
| 748 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 749 | %obuild_cxx_linker_command% %obuild_cxx_linker_debug_local% %obuild_cxx_linker_optimize_local% %obuild_cxx_linker_options% /out:.\snovis_session.exe @.\app_snovis_session\tmp_objs %obuild_linked_libraries%
|
|---|
| 750 | @IF ERRORLEVEL 1 @GOTO obuild_return
|
|---|
| 751 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 752 |
|
|---|
| 753 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 754 | SET obuild_pwd_snovis_0=
|
|---|
| 755 | REM # Some cleanup :
|
|---|
| 756 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
|
|---|
| 757 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk"
|
|---|
| 758 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb"
|
|---|
| 759 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session\tmp_objs"
|
|---|
| 760 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp"
|
|---|
| 761 |
|
|---|
| 762 | :obuild_return
|
|---|
| 763 | ENDLOCAL
|
|---|
| 764 | @ECHO ON
|
|---|