| 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_prog_snova
|
|---|
| 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_prog_snova_sh_26
|
|---|
| 300 | SET obuild_cxx_debug_local=%obuild_cxx_debug%
|
|---|
| 301 | GOTO end_if_db_build_app_prog_snova_sh_26
|
|---|
| 302 | :else_if_db_build_app_prog_snova_sh_26
|
|---|
| 303 | SET obuild_cxx_debug_local=
|
|---|
| 304 | :end_if_db_build_app_prog_snova_sh_26
|
|---|
| 305 |
|
|---|
| 306 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_27
|
|---|
| 307 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
|
|---|
| 308 | GOTO end_if_opt_build_app_prog_snova_sh_27
|
|---|
| 309 | :else_if_opt_build_app_prog_snova_sh_27
|
|---|
| 310 | SET obuild_cxx_optimize_local=
|
|---|
| 311 | :end_if_opt_build_app_prog_snova_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 HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
|
|---|
| 330 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 331 | SET obuild_pwd_snovis_0=
|
|---|
| 332 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 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 zlib v1r*`) DO SET obuild_zlib_path=%%j
|
|---|
| 337 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 338 | SET obuild_pwd_snovis_0=
|
|---|
| 339 | IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return
|
|---|
| 340 |
|
|---|
| 341 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 342 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 343 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 344 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 345 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 346 | SET obuild_pwd_snovis_0=
|
|---|
| 347 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
|
|---|
| 348 | SET obuild_cxx_includes=-I${snova_home}
|
|---|
| 349 | :end_if_platform_28
|
|---|
| 350 | SET obuild_platform_result=
|
|---|
| 351 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 352 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 353 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 354 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 355 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 356 | SET obuild_pwd_snovis_0=
|
|---|
| 357 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
|
|---|
| 358 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
|
|---|
| 359 | :end_if_platform_29
|
|---|
| 360 | SET obuild_platform_result=
|
|---|
| 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_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 364 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 365 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 366 | SET obuild_pwd_snovis_0=
|
|---|
| 367 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
|
|---|
| 368 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
|
|---|
| 369 | :end_if_platform_30
|
|---|
| 370 | SET obuild_platform_result=
|
|---|
| 371 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 372 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 373 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 374 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 375 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 376 | SET obuild_pwd_snovis_0=
|
|---|
| 377 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
|
|---|
| 378 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
|
|---|
| 379 | :end_if_platform_31
|
|---|
| 380 | SET obuild_platform_result=
|
|---|
| 381 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 382 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 383 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 384 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 385 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 386 | SET obuild_pwd_snovis_0=
|
|---|
| 387 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
|
|---|
| 388 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
|
|---|
| 389 | :end_if_platform_32
|
|---|
| 390 | SET obuild_platform_result=
|
|---|
| 391 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 392 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 393 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 394 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 395 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 396 | SET obuild_pwd_snovis_0=
|
|---|
| 397 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
|
|---|
| 398 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
|
|---|
| 399 | :end_if_platform_33
|
|---|
| 400 | SET obuild_platform_result=
|
|---|
| 401 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 402 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 403 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 404 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 405 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 406 | SET obuild_pwd_snovis_0=
|
|---|
| 407 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
|
|---|
| 408 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
|
|---|
| 409 | :end_if_platform_34
|
|---|
| 410 | SET obuild_platform_result=
|
|---|
| 411 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
|
|---|
| 412 |
|
|---|
| 413 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova"
|
|---|
| 414 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova"
|
|---|
| 415 |
|
|---|
| 416 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 417 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 418 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_prog_snova\prog_snova2.obj /Tp"..\applications\prog_snova2.cxx" 1> cl_exe_error
|
|---|
| 419 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
|
|---|
| 420 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error
|
|---|
| 421 | cd "%obuild_snovis_path%\obuild"
|
|---|
| 422 |
|
|---|
| 423 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 424 |
|
|---|
| 425 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 426 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 427 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 428 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 429 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 430 | SET obuild_pwd_snovis_0=
|
|---|
| 431 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
|
|---|
| 432 | SET obuild_cxx_linker_command=c++
|
|---|
| 433 | :end_if_platform_37
|
|---|
| 434 | SET obuild_platform_result=
|
|---|
| 435 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 436 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 437 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 438 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 439 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 440 | SET obuild_pwd_snovis_0=
|
|---|
| 441 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
|
|---|
| 442 | SET obuild_cxx_linker_command=c++
|
|---|
| 443 | :end_if_platform_38
|
|---|
| 444 | SET obuild_platform_result=
|
|---|
| 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_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 448 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 449 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 450 | SET obuild_pwd_snovis_0=
|
|---|
| 451 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
|
|---|
| 452 | SET obuild_cxx_linker_command=cxx
|
|---|
| 453 | :end_if_platform_39
|
|---|
| 454 | SET obuild_platform_result=
|
|---|
| 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_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 458 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 459 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 460 | SET obuild_pwd_snovis_0=
|
|---|
| 461 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
|
|---|
| 462 | SET obuild_cxx_linker_command=link.exe
|
|---|
| 463 | :end_if_platform_40
|
|---|
| 464 | SET obuild_platform_result=
|
|---|
| 465 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return
|
|---|
| 466 |
|
|---|
| 467 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 468 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 469 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 470 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 471 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 472 | SET obuild_pwd_snovis_0=
|
|---|
| 473 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
|
|---|
| 474 | SET obuild_cxx_linker_debug=-g
|
|---|
| 475 | :end_if_platform_41
|
|---|
| 476 | SET obuild_platform_result=
|
|---|
| 477 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 478 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 479 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 480 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 481 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 482 | SET obuild_pwd_snovis_0=
|
|---|
| 483 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
|
|---|
| 484 | SET obuild_cxx_linker_debug=-g
|
|---|
| 485 | :end_if_platform_42
|
|---|
| 486 | SET obuild_platform_result=
|
|---|
| 487 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 488 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 489 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 490 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 491 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 492 | SET obuild_pwd_snovis_0=
|
|---|
| 493 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
|
|---|
| 494 | SET obuild_cxx_linker_debug=-g
|
|---|
| 495 | :end_if_platform_43
|
|---|
| 496 | SET obuild_platform_result=
|
|---|
| 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_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 500 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 501 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 502 | SET obuild_pwd_snovis_0=
|
|---|
| 503 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
|
|---|
| 504 | SET obuild_cxx_linker_debug=/DEBUG
|
|---|
| 505 | :end_if_platform_44
|
|---|
| 506 | SET obuild_platform_result=
|
|---|
| 507 |
|
|---|
| 508 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 509 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 510 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 511 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 512 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 513 | SET obuild_pwd_snovis_0=
|
|---|
| 514 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
|
|---|
| 515 | SET obuild_cxx_linker_options=/nologo
|
|---|
| 516 | :end_if_platform_45
|
|---|
| 517 | SET obuild_platform_result=
|
|---|
| 518 |
|
|---|
| 519 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_46
|
|---|
| 520 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
|
|---|
| 521 | GOTO end_if_db_build_app_prog_snova_sh_46
|
|---|
| 522 | :else_if_db_build_app_prog_snova_sh_46
|
|---|
| 523 | SET obuild_cxx_linker_debug_local=
|
|---|
| 524 | :end_if_db_build_app_prog_snova_sh_46
|
|---|
| 525 |
|
|---|
| 526 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_47
|
|---|
| 527 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
|
|---|
| 528 | GOTO end_if_opt_build_app_prog_snova_sh_47
|
|---|
| 529 | :else_if_opt_build_app_prog_snova_sh_47
|
|---|
| 530 | SET obuild_cxx_linker_optimize_local=
|
|---|
| 531 | :end_if_opt_build_app_prog_snova_sh_47
|
|---|
| 532 |
|
|---|
| 533 | SET obuild_linked_libraries=-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
|
|---|
| 534 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep
|
|---|
| 535 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces
|
|---|
| 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 NOT %obuild_platform_result% == yes GOTO end_if_platform_51
|
|---|
| 543 | 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
|
|---|
| 544 | :end_if_platform_51
|
|---|
| 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 NOT %obuild_platform_result% == yes GOTO end_if_platform_52
|
|---|
| 553 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
|
|---|
| 554 | :end_if_platform_52
|
|---|
| 555 | SET obuild_platform_result=
|
|---|
| 556 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
|
|---|
| 557 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
|
|---|
| 558 |
|
|---|
| 559 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 560 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 561 | IF EXIST .\app_prog_snova\tmp_objs DEL .\app_prog_snova\tmp_objs
|
|---|
| 562 | FOR %%f IN (.\app_prog_snova\*.obj) DO ECHO %%f >> .\app_prog_snova\tmp_objs
|
|---|
| 563 | REM # Link prog_snova :
|
|---|
| 564 | IF EXIST .\prog_snova.exe DEL .\prog_snova.exe
|
|---|
| 565 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 566 | %obuild_cxx_linker_command% %obuild_cxx_linker_debug_local% %obuild_cxx_linker_optimize_local% %obuild_cxx_linker_options% /out:.\prog_snova.exe @.\app_prog_snova\tmp_objs %obuild_linked_libraries%
|
|---|
| 567 | @IF ERRORLEVEL 1 @GOTO obuild_return
|
|---|
| 568 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 569 |
|
|---|
| 570 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 571 | SET obuild_pwd_snovis_0=
|
|---|
| 572 | REM # Some cleanup :
|
|---|
| 573 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs"
|
|---|
| 574 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk"
|
|---|
| 575 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb"
|
|---|
| 576 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova\tmp_objs"
|
|---|
| 577 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp"
|
|---|
| 578 |
|
|---|
| 579 | :obuild_return
|
|---|
| 580 | ENDLOCAL
|
|---|
| 581 | @ECHO ON
|
|---|