| 1 | @ECHO OFF
|
|---|
| 2 | SETLOCAL
|
|---|
| 3 |
|
|---|
| 4 | REM #
|
|---|
| 5 | REM # File produced by the obuild tool version 1.0
|
|---|
| 6 | REM # for the package snovis with version v1r1.
|
|---|
| 7 | REM #
|
|---|
| 8 |
|
|---|
| 9 | REM #////////////////////////////////////////////////
|
|---|
| 10 | REM # Usage :
|
|---|
| 11 | REM # DOS> CD some_path\pack\version\obuild
|
|---|
| 12 | REM # DOS> DOS\build_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 CLHEP_home=/usr/local/CLHEP/2.0.3.1
|
|---|
| 102 | :end_if_platform_1
|
|---|
| 103 | SET obuild_platform_result=
|
|---|
| 104 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 105 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 106 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 107 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 108 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 109 | SET obuild_pwd_snovis_0=
|
|---|
| 110 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
|
|---|
| 111 | SET Geant4_home=/usr/local/geant4/8.2
|
|---|
| 112 | :end_if_platform_3
|
|---|
| 113 | SET obuild_platform_result=
|
|---|
| 114 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 115 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 116 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 117 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 118 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 119 | SET obuild_pwd_snovis_0=
|
|---|
| 120 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4
|
|---|
| 121 | SET obuild_cxx_command=c++
|
|---|
| 122 | :end_if_platform_4
|
|---|
| 123 | SET obuild_platform_result=
|
|---|
| 124 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 125 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 126 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 127 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 128 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 129 | SET obuild_pwd_snovis_0=
|
|---|
| 130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
|
|---|
| 131 | SET obuild_cxx_command=c++
|
|---|
| 132 | :end_if_platform_5
|
|---|
| 133 | SET obuild_platform_result=
|
|---|
| 134 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 135 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 136 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 137 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 138 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 139 | SET obuild_pwd_snovis_0=
|
|---|
| 140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6
|
|---|
| 141 | SET obuild_cxx_command=cxx
|
|---|
| 142 | :end_if_platform_6
|
|---|
| 143 | SET obuild_platform_result=
|
|---|
| 144 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 145 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 146 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 147 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 148 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 149 | SET obuild_pwd_snovis_0=
|
|---|
| 150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
|
|---|
| 151 | SET obuild_cxx_command=cl.exe
|
|---|
| 152 | :end_if_platform_7
|
|---|
| 153 | SET obuild_platform_result=
|
|---|
| 154 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return
|
|---|
| 155 |
|
|---|
| 156 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 157 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 158 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 159 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 160 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 161 | SET obuild_pwd_snovis_0=
|
|---|
| 162 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
|
|---|
| 163 | SET obuild_cxx_optimize=-O
|
|---|
| 164 | :end_if_platform_8
|
|---|
| 165 | SET obuild_platform_result=
|
|---|
| 166 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 167 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 168 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 169 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 170 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 171 | SET obuild_pwd_snovis_0=
|
|---|
| 172 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
|
|---|
| 173 | SET obuild_cxx_optimize=-O
|
|---|
| 174 | :end_if_platform_9
|
|---|
| 175 | SET obuild_platform_result=
|
|---|
| 176 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 177 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 178 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 179 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 180 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 181 | SET obuild_pwd_snovis_0=
|
|---|
| 182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
|
|---|
| 183 | SET obuild_cxx_optimize=-O
|
|---|
| 184 | :end_if_platform_10
|
|---|
| 185 | SET obuild_platform_result=
|
|---|
| 186 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 187 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 188 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 189 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 190 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 191 | SET obuild_pwd_snovis_0=
|
|---|
| 192 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
|
|---|
| 193 | SET obuild_cxx_optimize=/O2
|
|---|
| 194 | :end_if_platform_11
|
|---|
| 195 | SET obuild_platform_result=
|
|---|
| 196 |
|
|---|
| 197 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 198 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 199 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 200 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 201 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 202 | SET obuild_pwd_snovis_0=
|
|---|
| 203 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
|
|---|
| 204 | SET obuild_cxx_debug=-g
|
|---|
| 205 | :end_if_platform_12
|
|---|
| 206 | SET obuild_platform_result=
|
|---|
| 207 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 208 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 209 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 210 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 211 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 212 | SET obuild_pwd_snovis_0=
|
|---|
| 213 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
|
|---|
| 214 | SET obuild_cxx_debug=-g
|
|---|
| 215 | :end_if_platform_13
|
|---|
| 216 | SET obuild_platform_result=
|
|---|
| 217 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 218 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 219 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 220 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 221 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 222 | SET obuild_pwd_snovis_0=
|
|---|
| 223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
|
|---|
| 224 | SET obuild_cxx_debug=-g
|
|---|
| 225 | :end_if_platform_14
|
|---|
| 226 | SET obuild_platform_result=
|
|---|
| 227 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 228 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 229 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 230 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 231 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 232 | SET obuild_pwd_snovis_0=
|
|---|
| 233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
|
|---|
| 234 | SET obuild_cxx_debug=/ZI /Od
|
|---|
| 235 | :end_if_platform_15
|
|---|
| 236 | SET obuild_platform_result=
|
|---|
| 237 |
|
|---|
| 238 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 239 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 240 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 241 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 242 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 243 | SET obuild_pwd_snovis_0=
|
|---|
| 244 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
|
|---|
| 245 | SET obuild_cxx_options=-fPIC
|
|---|
| 246 | :end_if_platform_16
|
|---|
| 247 | SET obuild_platform_result=
|
|---|
| 248 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 249 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 250 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 251 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 252 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 253 | SET obuild_pwd_snovis_0=
|
|---|
| 254 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
|
|---|
| 255 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
|
|---|
| 256 | :end_if_platform_17
|
|---|
| 257 | SET obuild_platform_result=
|
|---|
| 258 |
|
|---|
| 259 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_18
|
|---|
| 260 | SET obuild_cxx_debug_local=%obuild_cxx_debug%
|
|---|
| 261 | GOTO end_if_db_build_app_prog_snova_sh_18
|
|---|
| 262 | :else_if_db_build_app_prog_snova_sh_18
|
|---|
| 263 | SET obuild_cxx_debug_local=
|
|---|
| 264 | :end_if_db_build_app_prog_snova_sh_18
|
|---|
| 265 |
|
|---|
| 266 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_19
|
|---|
| 267 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
|
|---|
| 268 | GOTO end_if_opt_build_app_prog_snova_sh_19
|
|---|
| 269 | :else_if_opt_build_app_prog_snova_sh_19
|
|---|
| 270 | SET obuild_cxx_optimize_local=
|
|---|
| 271 | :end_if_opt_build_app_prog_snova_sh_19
|
|---|
| 272 |
|
|---|
| 273 |
|
|---|
| 274 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 275 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
|
|---|
| 276 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL
|
|---|
| 277 | IF EXIST obuild_find.obj DEL obuild_find.obj
|
|---|
| 278 | )
|
|---|
| 279 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 280 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 281 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 282 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 283 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 284 | SET obuild_pwd_snovis_0=
|
|---|
| 285 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 286 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 287 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 288 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 289 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 290 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 291 | SET obuild_pwd_snovis_0=
|
|---|
| 292 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 293 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 294 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 295 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 296 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 297 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 298 | SET obuild_pwd_snovis_0=
|
|---|
| 299 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 300 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 301 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 302 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 303 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 304 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 305 | SET obuild_pwd_snovis_0=
|
|---|
| 306 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 307 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 308 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 309 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 310 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j
|
|---|
| 311 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 312 | SET obuild_pwd_snovis_0=
|
|---|
| 313 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return
|
|---|
| 314 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 315 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 316 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 317 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
|
|---|
| 318 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 319 | SET obuild_pwd_snovis_0=
|
|---|
| 320 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return
|
|---|
| 321 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 322 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 323 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 324 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 325 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 326 | SET obuild_pwd_snovis_0=
|
|---|
| 327 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 328 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 329 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 330 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 331 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 332 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 333 | SET obuild_pwd_snovis_0=
|
|---|
| 334 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 335 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 336 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 337 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 338 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 339 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 340 | SET obuild_pwd_snovis_0=
|
|---|
| 341 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 342 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 343 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 344 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 345 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 346 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 347 | SET obuild_pwd_snovis_0=
|
|---|
| 348 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 349 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 350 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 351 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 352 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe snova v2r0p0`) DO SET obuild_snova_path=%%j
|
|---|
| 353 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 354 | SET obuild_pwd_snovis_0=
|
|---|
| 355 | IF NOT DEFINED obuild_snova_path ECHO Can't find snova package. && GOTO obuild_return
|
|---|
| 356 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 357 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 358 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 359 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe bhep v1r4p2`) DO SET obuild_bhep_path=%%j
|
|---|
| 360 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 361 | SET obuild_pwd_snovis_0=
|
|---|
| 362 | IF NOT DEFINED obuild_bhep_path ECHO Can't find bhep package. && GOTO obuild_return
|
|---|
| 363 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 364 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 365 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 366 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
|
|---|
| 367 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 368 | SET obuild_pwd_snovis_0=
|
|---|
| 369 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return
|
|---|
| 370 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 371 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 372 | IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return
|
|---|
| 373 | FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j
|
|---|
| 374 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 375 | SET obuild_pwd_snovis_0=
|
|---|
| 376 | IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return
|
|---|
| 377 |
|
|---|
| 378 | SET obuild_cxx_includes=/I"%obuild_snova_path%"
|
|---|
| 379 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
|
|---|
| 380 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
|
|---|
| 381 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
|
|---|
| 382 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
|
|---|
| 383 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 384 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 385 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 386 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 387 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 388 | SET obuild_pwd_snovis_0=
|
|---|
| 389 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
|
|---|
| 390 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
|
|---|
| 391 | :end_if_platform_25
|
|---|
| 392 | SET obuild_platform_result=
|
|---|
| 393 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 394 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 395 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 396 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 397 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 398 | SET obuild_pwd_snovis_0=
|
|---|
| 399 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
|
|---|
| 400 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
|
|---|
| 401 | :end_if_platform_26
|
|---|
| 402 | SET obuild_platform_result=
|
|---|
| 403 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
|
|---|
| 404 |
|
|---|
| 405 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova"
|
|---|
| 406 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\app_prog_snova"
|
|---|
| 407 |
|
|---|
| 408 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 409 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 410 | %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
|
|---|
| 411 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
|
|---|
| 412 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error
|
|---|
| 413 | cd "%obuild_snovis_path%\obuild"
|
|---|
| 414 |
|
|---|
| 415 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 416 |
|
|---|
| 417 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 418 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 419 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 420 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 421 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 422 | SET obuild_pwd_snovis_0=
|
|---|
| 423 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
|
|---|
| 424 | SET obuild_cxx_linker_command=c++
|
|---|
| 425 | :end_if_platform_29
|
|---|
| 426 | SET obuild_platform_result=
|
|---|
| 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_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 430 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 431 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 432 | SET obuild_pwd_snovis_0=
|
|---|
| 433 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
|
|---|
| 434 | SET obuild_cxx_linker_command=c++
|
|---|
| 435 | :end_if_platform_30
|
|---|
| 436 | SET obuild_platform_result=
|
|---|
| 437 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 438 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 439 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 440 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 441 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 442 | SET obuild_pwd_snovis_0=
|
|---|
| 443 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
|
|---|
| 444 | SET obuild_cxx_linker_command=cxx
|
|---|
| 445 | :end_if_platform_31
|
|---|
| 446 | SET obuild_platform_result=
|
|---|
| 447 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 448 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 449 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 450 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 451 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 452 | SET obuild_pwd_snovis_0=
|
|---|
| 453 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
|
|---|
| 454 | SET obuild_cxx_linker_command=link.exe
|
|---|
| 455 | :end_if_platform_32
|
|---|
| 456 | SET obuild_platform_result=
|
|---|
| 457 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return
|
|---|
| 458 |
|
|---|
| 459 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 460 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 461 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 462 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 463 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 464 | SET obuild_pwd_snovis_0=
|
|---|
| 465 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
|
|---|
| 466 | SET obuild_cxx_linker_debug=-g
|
|---|
| 467 | :end_if_platform_33
|
|---|
| 468 | SET obuild_platform_result=
|
|---|
| 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_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 472 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 473 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 474 | SET obuild_pwd_snovis_0=
|
|---|
| 475 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
|
|---|
| 476 | SET obuild_cxx_linker_debug=-g
|
|---|
| 477 | :end_if_platform_34
|
|---|
| 478 | SET obuild_platform_result=
|
|---|
| 479 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 480 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 481 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 482 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 483 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 484 | SET obuild_pwd_snovis_0=
|
|---|
| 485 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
|
|---|
| 486 | SET obuild_cxx_linker_debug=-g
|
|---|
| 487 | :end_if_platform_35
|
|---|
| 488 | SET obuild_platform_result=
|
|---|
| 489 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 490 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 491 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 492 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 493 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 494 | SET obuild_pwd_snovis_0=
|
|---|
| 495 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
|
|---|
| 496 | SET obuild_cxx_linker_debug=/DEBUG
|
|---|
| 497 | :end_if_platform_36
|
|---|
| 498 | SET obuild_platform_result=
|
|---|
| 499 |
|
|---|
| 500 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 501 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 502 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 503 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 504 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 505 | SET obuild_pwd_snovis_0=
|
|---|
| 506 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
|
|---|
| 507 | SET obuild_cxx_linker_options=/nologo
|
|---|
| 508 | :end_if_platform_37
|
|---|
| 509 | SET obuild_platform_result=
|
|---|
| 510 |
|
|---|
| 511 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_38
|
|---|
| 512 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
|
|---|
| 513 | GOTO end_if_db_build_app_prog_snova_sh_38
|
|---|
| 514 | :else_if_db_build_app_prog_snova_sh_38
|
|---|
| 515 | SET obuild_cxx_linker_debug_local=
|
|---|
| 516 | :end_if_db_build_app_prog_snova_sh_38
|
|---|
| 517 |
|
|---|
| 518 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_39
|
|---|
| 519 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
|
|---|
| 520 | GOTO end_if_opt_build_app_prog_snova_sh_39
|
|---|
| 521 | :else_if_opt_build_app_prog_snova_sh_39
|
|---|
| 522 | SET obuild_cxx_linker_optimize_local=
|
|---|
| 523 | :end_if_opt_build_app_prog_snova_sh_39
|
|---|
| 524 |
|
|---|
| 525 | SET obuild_linked_libraries="%obuild_snova_path%\%obuild_dir_bin%\snova_ui.lib"
|
|---|
| 526 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snova.lib"
|
|---|
| 527 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snvertex.lib"
|
|---|
| 528 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\sngeom.lib"
|
|---|
| 529 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib"
|
|---|
| 530 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib"
|
|---|
| 531 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces
|
|---|
| 532 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4vis_management
|
|---|
| 533 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4modeling
|
|---|
| 534 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4Tree
|
|---|
| 535 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 536 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 537 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 538 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 539 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 540 | SET obuild_pwd_snovis_0=
|
|---|
| 541 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
|
|---|
| 542 | 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
|
|---|
| 543 | :end_if_platform_50
|
|---|
| 544 | SET obuild_platform_result=
|
|---|
| 545 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 546 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 547 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 548 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 549 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 550 | SET obuild_pwd_snovis_0=
|
|---|
| 551 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
|
|---|
| 552 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
|
|---|
| 553 | :end_if_platform_51
|
|---|
| 554 | SET obuild_platform_result=
|
|---|
| 555 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
|
|---|
| 556 | SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_zlib_path%\%obuild_dir_bin%\osc_z.lib"
|
|---|
| 557 |
|
|---|
| 558 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 559 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 560 | IF EXIST .\app_prog_snova\tmp_objs DEL .\app_prog_snova\tmp_objs
|
|---|
| 561 | FOR %%f IN (.\app_prog_snova\*.obj) DO ECHO %%f >> .\app_prog_snova\tmp_objs
|
|---|
| 562 | REM # Link prog_snova :
|
|---|
| 563 | IF EXIST .\prog_snova.exe DEL .\prog_snova.exe
|
|---|
| 564 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 565 | %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%
|
|---|
| 566 | @IF ERRORLEVEL 1 @GOTO obuild_return
|
|---|
| 567 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 568 |
|
|---|
| 569 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 570 | SET obuild_pwd_snovis_0=
|
|---|
| 571 | REM # Some cleanup :
|
|---|
| 572 | 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"
|
|---|
| 573 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.ilk"
|
|---|
| 574 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.pdb"
|
|---|
| 575 | 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"
|
|---|
| 576 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\prog_snova.exp"
|
|---|
| 577 |
|
|---|
| 578 | :obuild_return
|
|---|
| 579 | ENDLOCAL
|
|---|
| 580 | @ECHO ON
|
|---|