| 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 bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
|
|---|
| 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% Darwin`) 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 bhep_platform=Darwin
|
|---|
| 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% UNIX`) 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_5
|
|---|
| 121 | SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
|
|---|
| 122 | :end_if_platform_5
|
|---|
| 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% Darwin`) 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_7
|
|---|
| 131 | SET snova_platform=Darwin
|
|---|
| 132 | :end_if_platform_7
|
|---|
| 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% UNIX`) 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_9
|
|---|
| 141 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
|
|---|
| 142 | :end_if_platform_9
|
|---|
| 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% UNIX`) 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_11
|
|---|
| 151 | SET Geant4_home=/usr/local/geant4/8.2
|
|---|
| 152 | :end_if_platform_11
|
|---|
| 153 | SET obuild_platform_result=
|
|---|
| 154 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 155 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 156 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 157 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 158 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 159 | SET obuild_pwd_snovis_0=
|
|---|
| 160 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
|
|---|
| 161 | SET obuild_cxx_command=c++
|
|---|
| 162 | :end_if_platform_12
|
|---|
| 163 | SET obuild_platform_result=
|
|---|
| 164 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 165 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 166 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 167 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 168 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 169 | SET obuild_pwd_snovis_0=
|
|---|
| 170 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
|
|---|
| 171 | SET obuild_cxx_command=c++
|
|---|
| 172 | :end_if_platform_13
|
|---|
| 173 | SET obuild_platform_result=
|
|---|
| 174 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 175 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 176 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 177 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 178 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 179 | SET obuild_pwd_snovis_0=
|
|---|
| 180 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
|
|---|
| 181 | SET obuild_cxx_command=cxx
|
|---|
| 182 | :end_if_platform_14
|
|---|
| 183 | SET obuild_platform_result=
|
|---|
| 184 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 185 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 186 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 187 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 188 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 189 | SET obuild_pwd_snovis_0=
|
|---|
| 190 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
|
|---|
| 191 | SET obuild_cxx_command=cl.exe
|
|---|
| 192 | :end_if_platform_15
|
|---|
| 193 | SET obuild_platform_result=
|
|---|
| 194 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return
|
|---|
| 195 |
|
|---|
| 196 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 197 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 198 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 199 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 200 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 201 | SET obuild_pwd_snovis_0=
|
|---|
| 202 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
|
|---|
| 203 | SET obuild_cxx_optimize=-O
|
|---|
| 204 | :end_if_platform_16
|
|---|
| 205 | SET obuild_platform_result=
|
|---|
| 206 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 207 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 208 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 209 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 210 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 211 | SET obuild_pwd_snovis_0=
|
|---|
| 212 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
|
|---|
| 213 | SET obuild_cxx_optimize=-O
|
|---|
| 214 | :end_if_platform_17
|
|---|
| 215 | SET obuild_platform_result=
|
|---|
| 216 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 217 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 218 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 219 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 220 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 221 | SET obuild_pwd_snovis_0=
|
|---|
| 222 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
|
|---|
| 223 | SET obuild_cxx_optimize=-O
|
|---|
| 224 | :end_if_platform_18
|
|---|
| 225 | SET obuild_platform_result=
|
|---|
| 226 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 227 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 228 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 229 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 230 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 231 | SET obuild_pwd_snovis_0=
|
|---|
| 232 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
|
|---|
| 233 | SET obuild_cxx_optimize=/O2
|
|---|
| 234 | :end_if_platform_19
|
|---|
| 235 | SET obuild_platform_result=
|
|---|
| 236 |
|
|---|
| 237 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 238 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 239 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 240 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 241 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 242 | SET obuild_pwd_snovis_0=
|
|---|
| 243 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
|
|---|
| 244 | SET obuild_cxx_debug=-g
|
|---|
| 245 | :end_if_platform_20
|
|---|
| 246 | SET obuild_platform_result=
|
|---|
| 247 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 248 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 249 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 250 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 251 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 252 | SET obuild_pwd_snovis_0=
|
|---|
| 253 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
|
|---|
| 254 | SET obuild_cxx_debug=-g
|
|---|
| 255 | :end_if_platform_21
|
|---|
| 256 | SET obuild_platform_result=
|
|---|
| 257 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 258 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 259 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 260 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 261 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 262 | SET obuild_pwd_snovis_0=
|
|---|
| 263 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
|
|---|
| 264 | SET obuild_cxx_debug=-g
|
|---|
| 265 | :end_if_platform_22
|
|---|
| 266 | SET obuild_platform_result=
|
|---|
| 267 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 268 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 269 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 270 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 271 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 272 | SET obuild_pwd_snovis_0=
|
|---|
| 273 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
|
|---|
| 274 | SET obuild_cxx_debug=/ZI /Od
|
|---|
| 275 | :end_if_platform_23
|
|---|
| 276 | SET obuild_platform_result=
|
|---|
| 277 |
|
|---|
| 278 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 279 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 280 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 281 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 282 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 283 | SET obuild_pwd_snovis_0=
|
|---|
| 284 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
|
|---|
| 285 | SET obuild_cxx_options=-fPIC
|
|---|
| 286 | :end_if_platform_24
|
|---|
| 287 | SET obuild_platform_result=
|
|---|
| 288 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 289 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 290 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 291 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 292 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 293 | SET obuild_pwd_snovis_0=
|
|---|
| 294 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
|
|---|
| 295 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
|
|---|
| 296 | :end_if_platform_25
|
|---|
| 297 | SET obuild_platform_result=
|
|---|
| 298 |
|
|---|
| 299 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_26
|
|---|
| 300 | SET obuild_cxx_debug_local=%obuild_cxx_debug%
|
|---|
| 301 | GOTO end_if_db_build_app_snovis_session_sh_26
|
|---|
| 302 | :else_if_db_build_app_snovis_session_sh_26
|
|---|
| 303 | SET obuild_cxx_debug_local=
|
|---|
| 304 | :end_if_db_build_app_snovis_session_sh_26
|
|---|
| 305 |
|
|---|
| 306 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_27
|
|---|
| 307 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
|
|---|
| 308 | GOTO end_if_opt_build_app_snovis_session_sh_27
|
|---|
| 309 | :else_if_opt_build_app_snovis_session_sh_27
|
|---|
| 310 | SET obuild_cxx_optimize_local=
|
|---|
| 311 | :end_if_opt_build_app_snovis_session_sh_27
|
|---|
| 312 |
|
|---|
| 313 |
|
|---|
| 314 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 315 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
|
|---|
| 316 | 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
|
|---|
| 317 | IF EXIST obuild_find.obj DEL obuild_find.obj
|
|---|
| 318 | )
|
|---|
| 319 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 320 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 321 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 322 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
|
|---|
| 323 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 324 | SET obuild_pwd_snovis_0=
|
|---|
| 325 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return
|
|---|
| 326 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 327 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 328 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 329 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe AIDA v3r2p1`) DO SET obuild_AIDA_path=%%j
|
|---|
| 330 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 331 | SET obuild_pwd_snovis_0=
|
|---|
| 332 | IF NOT DEFINED obuild_AIDA_path ECHO Can't find AIDA package. && GOTO obuild_return
|
|---|
| 333 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 334 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 335 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 336 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
|
|---|
| 337 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 338 | SET obuild_pwd_snovis_0=
|
|---|
| 339 | IF NOT DEFINED obuild_G4Lab_path ECHO Can't find G4Lab package. && GOTO obuild_return
|
|---|
| 340 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 341 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 342 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 343 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j
|
|---|
| 344 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 345 | SET obuild_pwd_snovis_0=
|
|---|
| 346 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return
|
|---|
| 347 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 348 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 349 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 350 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Slash v1r*`) DO SET obuild_Slash_path=%%j
|
|---|
| 351 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 352 | SET obuild_pwd_snovis_0=
|
|---|
| 353 | IF NOT DEFINED obuild_Slash_path ECHO Can't find Slash package. && GOTO obuild_return
|
|---|
| 354 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 355 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 356 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 357 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe OnX v17r*`) DO SET obuild_OnX_path=%%j
|
|---|
| 358 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 359 | SET obuild_pwd_snovis_0=
|
|---|
| 360 | IF NOT DEFINED obuild_OnX_path ECHO Can't find OnX package. && GOTO obuild_return
|
|---|
| 361 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 362 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 363 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 364 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
|
|---|
| 365 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 366 | SET obuild_pwd_snovis_0=
|
|---|
| 367 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return
|
|---|
| 368 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 369 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 370 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 371 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
|
|---|
| 372 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 373 | SET obuild_pwd_snovis_0=
|
|---|
| 374 | IF NOT DEFINED obuild_G4Lab_path ECHO Can't find G4Lab package. && GOTO obuild_return
|
|---|
| 375 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 376 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 377 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 378 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe G4Lab v8r*`) DO SET obuild_G4Lab_path=%%j
|
|---|
| 379 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 380 | SET obuild_pwd_snovis_0=
|
|---|
| 381 | IF NOT DEFINED obuild_G4Lab_path ECHO Can't find G4Lab package. && GOTO obuild_return
|
|---|
| 382 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 383 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 384 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 385 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j
|
|---|
| 386 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 387 | SET obuild_pwd_snovis_0=
|
|---|
| 388 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return
|
|---|
| 389 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 390 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 391 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 392 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe expat v1r*`) DO SET obuild_expat_path=%%j
|
|---|
| 393 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 394 | SET obuild_pwd_snovis_0=
|
|---|
| 395 | IF NOT DEFINED obuild_expat_path ECHO Can't find expat package. && GOTO obuild_return
|
|---|
| 396 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 397 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 398 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 399 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j
|
|---|
| 400 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 401 | SET obuild_pwd_snovis_0=
|
|---|
| 402 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return
|
|---|
| 403 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 404 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 405 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 406 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j
|
|---|
| 407 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 408 | SET obuild_pwd_snovis_0=
|
|---|
| 409 | IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return
|
|---|
| 410 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 411 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 412 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 413 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe Lib v8r*`) DO SET obuild_Lib_path=%%j
|
|---|
| 414 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 415 | SET obuild_pwd_snovis_0=
|
|---|
| 416 | IF NOT DEFINED obuild_Lib_path ECHO Can't find Lib package. && GOTO obuild_return
|
|---|
| 417 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 418 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 419 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 420 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
|
|---|
| 421 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 422 | SET obuild_pwd_snovis_0=
|
|---|
| 423 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return
|
|---|
| 424 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 425 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 426 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 427 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HEPVis v6r*`) DO SET obuild_HEPVis_path=%%j
|
|---|
| 428 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 429 | SET obuild_pwd_snovis_0=
|
|---|
| 430 | IF NOT DEFINED obuild_HEPVis_path ECHO Can't find HEPVis package. && GOTO obuild_return
|
|---|
| 431 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 432 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 433 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 434 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe jpeg v1r*`) DO SET obuild_jpeg_path=%%j
|
|---|
| 435 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 436 | SET obuild_pwd_snovis_0=
|
|---|
| 437 | IF NOT DEFINED obuild_jpeg_path ECHO Can't find jpeg package. && GOTO obuild_return
|
|---|
| 438 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 439 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 440 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 441 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe dvi2bitmap v1r*`) DO SET obuild_dvi2bitmap_path=%%j
|
|---|
| 442 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 443 | SET obuild_pwd_snovis_0=
|
|---|
| 444 | IF NOT DEFINED obuild_dvi2bitmap_path ECHO Can't find dvi2bitmap package. && GOTO obuild_return
|
|---|
| 445 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 446 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 447 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 448 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe freetype2 v1r*`) DO SET obuild_freetype2_path=%%j
|
|---|
| 449 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 450 | SET obuild_pwd_snovis_0=
|
|---|
| 451 | IF NOT DEFINED obuild_freetype2_path ECHO Can't find freetype2 package. && GOTO obuild_return
|
|---|
| 452 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 453 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 454 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 455 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe CoinGL v1r*`) DO SET obuild_CoinGL_path=%%j
|
|---|
| 456 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 457 | SET obuild_pwd_snovis_0=
|
|---|
| 458 | IF NOT DEFINED obuild_CoinGL_path ECHO Can't find CoinGL package. && GOTO obuild_return
|
|---|
| 459 |
|
|---|
| 460 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 461 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 462 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 463 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 464 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 465 | SET obuild_pwd_snovis_0=
|
|---|
| 466 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
|
|---|
| 467 | SET obuild_cxx_includes=-I${snova_home}
|
|---|
| 468 | :end_if_platform_28
|
|---|
| 469 | SET obuild_platform_result=
|
|---|
| 470 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 471 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 472 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 473 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 474 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 475 | SET obuild_pwd_snovis_0=
|
|---|
| 476 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
|
|---|
| 477 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
|
|---|
| 478 | :end_if_platform_29
|
|---|
| 479 | SET obuild_platform_result=
|
|---|
| 480 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 481 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 482 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 483 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 484 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 485 | SET obuild_pwd_snovis_0=
|
|---|
| 486 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
|
|---|
| 487 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
|
|---|
| 488 | :end_if_platform_30
|
|---|
| 489 | SET obuild_platform_result=
|
|---|
| 490 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 491 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 492 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 493 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 494 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 495 | SET obuild_pwd_snovis_0=
|
|---|
| 496 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
|
|---|
| 497 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
|
|---|
| 498 | :end_if_platform_31
|
|---|
| 499 | SET obuild_platform_result=
|
|---|
| 500 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 501 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 502 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 503 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 504 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 505 | SET obuild_pwd_snovis_0=
|
|---|
| 506 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
|
|---|
| 507 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
|
|---|
| 508 | :end_if_platform_32
|
|---|
| 509 | SET obuild_platform_result=
|
|---|
| 510 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 511 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 512 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 513 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 514 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 515 | SET obuild_pwd_snovis_0=
|
|---|
| 516 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
|
|---|
| 517 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
|
|---|
| 518 | :end_if_platform_33
|
|---|
| 519 | SET obuild_platform_result=
|
|---|
| 520 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 521 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 522 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 523 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 524 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 525 | SET obuild_pwd_snovis_0=
|
|---|
| 526 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
|
|---|
| 527 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
|
|---|
| 528 | :end_if_platform_34
|
|---|
| 529 | SET obuild_platform_result=
|
|---|
| 530 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
|
|---|
| 531 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_AIDA_path%\src\cpp"
|
|---|
| 532 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_G4Lab_path%\include"
|
|---|
| 533 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Lib_path%\include"
|
|---|
| 534 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_Slash_path%"
|
|---|
| 535 |
|
|---|
| 536 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
|
|---|
| 537 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_snovis_session"
|
|---|
| 538 |
|
|---|
| 539 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 540 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 541 | %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
|
|---|
| 542 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
|
|---|
| 543 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error
|
|---|
| 544 | cd "%obuild_snovis_path%\obuild"
|
|---|
| 545 |
|
|---|
| 546 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 547 |
|
|---|
| 548 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 549 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 550 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 551 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 552 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 553 | SET obuild_pwd_snovis_0=
|
|---|
| 554 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
|
|---|
| 555 | SET obuild_cxx_linker_command=c++
|
|---|
| 556 | :end_if_platform_41
|
|---|
| 557 | SET obuild_platform_result=
|
|---|
| 558 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 559 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 560 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 561 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 562 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 563 | SET obuild_pwd_snovis_0=
|
|---|
| 564 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
|
|---|
| 565 | SET obuild_cxx_linker_command=c++
|
|---|
| 566 | :end_if_platform_42
|
|---|
| 567 | SET obuild_platform_result=
|
|---|
| 568 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 569 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 570 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 571 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 572 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 573 | SET obuild_pwd_snovis_0=
|
|---|
| 574 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
|
|---|
| 575 | SET obuild_cxx_linker_command=cxx
|
|---|
| 576 | :end_if_platform_43
|
|---|
| 577 | SET obuild_platform_result=
|
|---|
| 578 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 579 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 580 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 581 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 582 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 583 | SET obuild_pwd_snovis_0=
|
|---|
| 584 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
|
|---|
| 585 | SET obuild_cxx_linker_command=link.exe
|
|---|
| 586 | :end_if_platform_44
|
|---|
| 587 | SET obuild_platform_result=
|
|---|
| 588 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return
|
|---|
| 589 |
|
|---|
| 590 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 591 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 592 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 593 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 594 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 595 | SET obuild_pwd_snovis_0=
|
|---|
| 596 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
|
|---|
| 597 | SET obuild_cxx_linker_debug=-g
|
|---|
| 598 | :end_if_platform_45
|
|---|
| 599 | SET obuild_platform_result=
|
|---|
| 600 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 601 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 602 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 603 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 604 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 605 | SET obuild_pwd_snovis_0=
|
|---|
| 606 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
|
|---|
| 607 | SET obuild_cxx_linker_debug=-g
|
|---|
| 608 | :end_if_platform_46
|
|---|
| 609 | SET obuild_platform_result=
|
|---|
| 610 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 611 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 612 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 613 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 614 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 615 | SET obuild_pwd_snovis_0=
|
|---|
| 616 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
|
|---|
| 617 | SET obuild_cxx_linker_debug=-g
|
|---|
| 618 | :end_if_platform_47
|
|---|
| 619 | SET obuild_platform_result=
|
|---|
| 620 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 621 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 622 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 623 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 624 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 625 | SET obuild_pwd_snovis_0=
|
|---|
| 626 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
|
|---|
| 627 | SET obuild_cxx_linker_debug=/DEBUG
|
|---|
| 628 | :end_if_platform_48
|
|---|
| 629 | SET obuild_platform_result=
|
|---|
| 630 |
|
|---|
| 631 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 632 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 633 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 634 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 635 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 636 | SET obuild_pwd_snovis_0=
|
|---|
| 637 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
|
|---|
| 638 | SET obuild_cxx_linker_options=/nologo
|
|---|
| 639 | :end_if_platform_49
|
|---|
| 640 | SET obuild_platform_result=
|
|---|
| 641 |
|
|---|
| 642 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_50
|
|---|
| 643 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
|
|---|
| 644 | GOTO end_if_db_build_app_snovis_session_sh_50
|
|---|
| 645 | :else_if_db_build_app_snovis_session_sh_50
|
|---|
| 646 | SET obuild_cxx_linker_debug_local=
|
|---|
| 647 | :end_if_db_build_app_snovis_session_sh_50
|
|---|
| 648 |
|
|---|
| 649 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_51
|
|---|
| 650 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
|
|---|
| 651 | GOTO end_if_opt_build_app_snovis_session_sh_51
|
|---|
| 652 | :else_if_opt_build_app_snovis_session_sh_51
|
|---|
| 653 | SET obuild_cxx_linker_optimize_local=
|
|---|
| 654 | :end_if_opt_build_app_snovis_session_sh_51
|
|---|
| 655 |
|
|---|
| 656 | SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
|
|---|
| 657 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
|
|---|
| 658 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep
|
|---|
| 659 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
|
|---|
| 660 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
|
|---|
| 661 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabCore.lib"
|
|---|
| 662 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 663 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 664 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 665 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 666 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 667 | SET obuild_pwd_snovis_0=
|
|---|
| 668 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
|
|---|
| 669 | 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
|
|---|
| 670 | :end_if_platform_58
|
|---|
| 671 | SET obuild_platform_result=
|
|---|
| 672 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 673 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 674 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 675 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 676 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 677 | SET obuild_pwd_snovis_0=
|
|---|
| 678 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
|
|---|
| 679 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
|
|---|
| 680 | :end_if_platform_59
|
|---|
| 681 | SET obuild_platform_result=
|
|---|
| 682 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
|
|---|
| 683 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_expat_path%\%obuild_dir_bin%\osc_expat.lib"
|
|---|
| 684 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibZip.lib"
|
|---|
| 685 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
|
|---|
| 686 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibUtils.lib"
|
|---|
| 687 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisGeometry.lib"
|
|---|
| 688 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HEPVis_path%\%obuild_dir_bin%\HEPVisUtils.lib"
|
|---|
| 689 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_jpeg_path%\%obuild_dir_bin%\osc_jpeg.lib"
|
|---|
| 690 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_dvi2bitmap_path%\%obuild_dir_bin%\osc_dvi2bitmap.lib"
|
|---|
| 691 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_freetype2_path%\%obuild_dir_bin%\osc_freetype2.lib"
|
|---|
| 692 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_CoinGL_path%\%obuild_dir_bin%\osc_Coin.lib"
|
|---|
| 693 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 694 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 695 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 696 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 697 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 698 | SET obuild_pwd_snovis_0=
|
|---|
| 699 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
|
|---|
| 700 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
|
|---|
| 701 | :end_if_platform_71
|
|---|
| 702 | SET obuild_platform_result=
|
|---|
| 703 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 704 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 705 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 706 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 707 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 708 | SET obuild_pwd_snovis_0=
|
|---|
| 709 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72
|
|---|
| 710 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
|
|---|
| 711 | :end_if_platform_72
|
|---|
| 712 | SET obuild_platform_result=
|
|---|
| 713 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 714 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 715 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 716 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 717 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 718 | SET obuild_pwd_snovis_0=
|
|---|
| 719 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73
|
|---|
| 720 | SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
|
|---|
| 721 | :end_if_platform_73
|
|---|
| 722 | SET obuild_platform_result=
|
|---|
| 723 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 724 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 725 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 726 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 727 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 728 | SET obuild_pwd_snovis_0=
|
|---|
| 729 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_74
|
|---|
| 730 | SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
|
|---|
| 731 | :end_if_platform_74
|
|---|
| 732 | SET obuild_platform_result=
|
|---|
| 733 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 734 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 735 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 736 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 737 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 738 | SET obuild_pwd_snovis_0=
|
|---|
| 739 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_75
|
|---|
| 740 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
|
|---|
| 741 | :end_if_platform_75
|
|---|
| 742 | SET obuild_platform_result=
|
|---|
| 743 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 744 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 745 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 746 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 747 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 748 | SET obuild_pwd_snovis_0=
|
|---|
| 749 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_76
|
|---|
| 750 | SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
|
|---|
| 751 | :end_if_platform_76
|
|---|
| 752 | SET obuild_platform_result=
|
|---|
| 753 |
|
|---|
| 754 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 755 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 756 | IF EXIST .\app_snovis_session\tmp_objs DEL .\app_snovis_session\tmp_objs
|
|---|
| 757 | FOR %%f IN (.\app_snovis_session\*.obj) DO ECHO %%f >> .\app_snovis_session\tmp_objs
|
|---|
| 758 | REM # Link snovis_session :
|
|---|
| 759 | IF EXIST .\snovis_session.exe DEL .\snovis_session.exe
|
|---|
| 760 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 761 | %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%
|
|---|
| 762 | @IF ERRORLEVEL 1 @GOTO obuild_return
|
|---|
| 763 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 764 |
|
|---|
| 765 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 766 | SET obuild_pwd_snovis_0=
|
|---|
| 767 | REM # Some cleanup :
|
|---|
| 768 | 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"
|
|---|
| 769 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.ilk"
|
|---|
| 770 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.pdb"
|
|---|
| 771 | 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"
|
|---|
| 772 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis_session.exp"
|
|---|
| 773 |
|
|---|
| 774 | :obuild_return
|
|---|
| 775 | ENDLOCAL
|
|---|
| 776 | @ECHO ON
|
|---|