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