| 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_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"
 | 
|---|
| 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 | 
 | 
|---|
| 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 %obuild_platform_result% == yes (
 | 
|---|
| 400 | SET obuild_cxx_includes=-I${SNOVA_ROOT}
 | 
|---|
| 401 | )
 | 
|---|
| 402 | SET obuild_platform_result=
 | 
|---|
| 403 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 404 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 405 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 406 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
 | 
|---|
| 407 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 408 | SET obuild_pwd_snovis_0=
 | 
|---|
| 409 | IF %obuild_platform_result% == yes (
 | 
|---|
| 410 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include
 | 
|---|
| 411 | )
 | 
|---|
| 412 | SET obuild_platform_result=
 | 
|---|
| 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_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 416 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
 | 
|---|
| 417 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 418 | SET obuild_pwd_snovis_0=
 | 
|---|
| 419 | IF %obuild_platform_result% == yes (
 | 
|---|
| 420 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include
 | 
|---|
| 421 | )
 | 
|---|
| 422 | SET obuild_platform_result=
 | 
|---|
| 423 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 424 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 425 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 426 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
 | 
|---|
| 427 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 428 | SET obuild_pwd_snovis_0=
 | 
|---|
| 429 | IF %obuild_platform_result% == yes (
 | 
|---|
| 430 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include
 | 
|---|
| 431 | )
 | 
|---|
| 432 | SET obuild_platform_result=
 | 
|---|
| 433 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 434 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 435 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 436 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
 | 
|---|
| 437 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 438 | SET obuild_pwd_snovis_0=
 | 
|---|
| 439 | IF %obuild_platform_result% == yes (
 | 
|---|
| 440 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
 | 
|---|
| 441 | )
 | 
|---|
| 442 | SET obuild_platform_result=
 | 
|---|
| 443 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 444 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 445 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 446 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
 | 
|---|
| 447 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 448 | SET obuild_pwd_snovis_0=
 | 
|---|
| 449 | IF %obuild_platform_result% == yes (
 | 
|---|
| 450 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
 | 
|---|
| 451 | )
 | 
|---|
| 452 | SET obuild_platform_result=
 | 
|---|
| 453 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
 | 
|---|
| 454 | 
 | 
|---|
| 455 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova"
 | 
|---|
| 456 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova"
 | 
|---|
| 457 | 
 | 
|---|
| 458 | @IF %obuild_verbose% == yes @ECHO ON 
 | 
|---|
| 459 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 460 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\event.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\event.cc
 | 
|---|
| 461 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 462 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 463 | 
 | 
|---|
| 464 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 465 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\generator.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\generator.cc
 | 
|---|
| 466 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 467 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 468 | 
 | 
|---|
| 469 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 470 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\run.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\run.cc
 | 
|---|
| 471 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 472 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 473 | 
 | 
|---|
| 474 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 475 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\snova_const.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\snova_const.cc
 | 
|---|
| 476 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 477 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 478 | 
 | 
|---|
| 479 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 480 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stacking.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\stacking.cc
 | 
|---|
| 481 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 482 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 483 | 
 | 
|---|
| 484 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 485 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stepping.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\stepping.cc
 | 
|---|
| 486 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 487 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 488 | 
 | 
|---|
| 489 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 490 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\stepping_verbose.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\stepping_verbose.cc
 | 
|---|
| 491 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 492 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 493 | 
 | 
|---|
| 494 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 495 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\tracking.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\base\tracking.cc
 | 
|---|
| 496 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 497 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 498 | 
 | 
|---|
| 499 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 500 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\gen_vtx.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\vertex\gen_vtx.cc
 | 
|---|
| 501 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 502 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 503 | 
 | 
|---|
| 504 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 505 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\geometry2.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\geom\geometry2.cc
 | 
|---|
| 506 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 507 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 508 | 
 | 
|---|
| 509 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 510 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\materials.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\geom\materials.cc
 | 
|---|
| 511 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 512 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 513 | 
 | 
|---|
| 514 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 515 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\nemo_field2.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\geom\nemo_field2.cc
 | 
|---|
| 516 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 517 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 518 | 
 | 
|---|
| 519 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 520 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\visibilities2.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\geom\visibilities2.cc
 | 
|---|
| 521 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 522 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 523 | 
 | 
|---|
| 524 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 525 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\physics.obj  /Tp\Users\barrand\dev\exp\nemo\SNgeom\v0r1p0\build_area\snova\physics\physics.cc
 | 
|---|
| 526 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 527 | cd "%obuild_snovis_path%\obuild"
 | 
|---|
| 528 | 
 | 
|---|
| 529 | @IF %obuild_verbose% == yes @ECHO OFF 
 | 
|---|
| 530 | 
 | 
|---|
| 531 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 532 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 533 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 534 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
 | 
|---|
| 535 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 536 | SET obuild_pwd_snovis_0=
 | 
|---|
| 537 | IF %obuild_platform_result% == yes (
 | 
|---|
| 538 | SET obuild_cxx_linker_command=c++
 | 
|---|
| 539 | )
 | 
|---|
| 540 | SET obuild_platform_result=
 | 
|---|
| 541 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 542 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 543 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 544 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
 | 
|---|
| 545 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 546 | SET obuild_pwd_snovis_0=
 | 
|---|
| 547 | IF %obuild_platform_result% == yes (
 | 
|---|
| 548 | SET obuild_cxx_linker_command=c++
 | 
|---|
| 549 | )
 | 
|---|
| 550 | SET obuild_platform_result=
 | 
|---|
| 551 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 552 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 553 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 554 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
 | 
|---|
| 555 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 556 | SET obuild_pwd_snovis_0=
 | 
|---|
| 557 | IF %obuild_platform_result% == yes (
 | 
|---|
| 558 | SET obuild_cxx_linker_command=cxx
 | 
|---|
| 559 | )
 | 
|---|
| 560 | SET obuild_platform_result=
 | 
|---|
| 561 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 562 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 563 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 564 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
 | 
|---|
| 565 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 566 | SET obuild_pwd_snovis_0=
 | 
|---|
| 567 | IF %obuild_platform_result% == yes (
 | 
|---|
| 568 | SET obuild_cxx_linker_command=link.exe
 | 
|---|
| 569 | )
 | 
|---|
| 570 | SET obuild_platform_result=
 | 
|---|
| 571 | IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
 | 
|---|
| 572 | 
 | 
|---|
| 573 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 574 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 575 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 576 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
 | 
|---|
| 577 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 578 | SET obuild_pwd_snovis_0=
 | 
|---|
| 579 | IF %obuild_platform_result% == yes (
 | 
|---|
| 580 | SET obuild_cxx_linker_debug=-g
 | 
|---|
| 581 | )
 | 
|---|
| 582 | SET obuild_platform_result=
 | 
|---|
| 583 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 584 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 585 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 586 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
 | 
|---|
| 587 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 588 | SET obuild_pwd_snovis_0=
 | 
|---|
| 589 | IF %obuild_platform_result% == yes (
 | 
|---|
| 590 | SET obuild_cxx_linker_debug=-g
 | 
|---|
| 591 | )
 | 
|---|
| 592 | SET obuild_platform_result=
 | 
|---|
| 593 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 594 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 595 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 596 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
 | 
|---|
| 597 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 598 | SET obuild_pwd_snovis_0=
 | 
|---|
| 599 | IF %obuild_platform_result% == yes (
 | 
|---|
| 600 | SET obuild_cxx_linker_debug=-g
 | 
|---|
| 601 | )
 | 
|---|
| 602 | SET obuild_platform_result=
 | 
|---|
| 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% Windows_NT`) 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_debug=/DEBUG
 | 
|---|
| 611 | )
 | 
|---|
| 612 | SET obuild_platform_result=
 | 
|---|
| 613 | 
 | 
|---|
| 614 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 615 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 616 | IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
 | 
|---|
| 617 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
 | 
|---|
| 618 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 619 | SET obuild_pwd_snovis_0=
 | 
|---|
| 620 | IF %obuild_platform_result% == yes (
 | 
|---|
| 621 | SET obuild_cxx_linker_options=/nologo
 | 
|---|
| 622 | )
 | 
|---|
| 623 | SET obuild_platform_result=
 | 
|---|
| 624 | 
 | 
|---|
| 625 | IF %obuild_debug% == yes (
 | 
|---|
| 626 |   SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
 | 
|---|
| 627 | ) ELSE (
 | 
|---|
| 628 |   SET obuild_cxx_linker_debug_local=
 | 
|---|
| 629 | )
 | 
|---|
| 630 | IF %obuild_optimize% == yes (
 | 
|---|
| 631 |   SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
 | 
|---|
| 632 | ) ELSE (
 | 
|---|
| 633 |   SET obuild_cxx_linker_optimize_local=
 | 
|---|
| 634 | )
 | 
|---|
| 635 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
 | 
|---|
| 636 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
 | 
|---|
| 637 | IF EXIST .\lib_snova\tmp_objs DEL .\lib_snova\tmp_objs
 | 
|---|
| 638 | FOR %%f IN (.\lib_snova\*.obj) DO ECHO %%f >> .\lib_snova\tmp_objs
 | 
|---|
| 639 | 
 | 
|---|
| 640 | REM # Create the archive library snova :
 | 
|---|
| 641 | @IF %obuild_verbose% == yes @ECHO ON 
 | 
|---|
| 642 | lib.exe /nologo /machine:ix86 /out:.\lib_snova\snova.arc @.\lib_snova\tmp_objs
 | 
|---|
| 643 | @IF ERRORLEVEL 1 @GOTO obuild_return
 | 
|---|
| 644 | @IF %obuild_verbose% == yes @ECHO OFF 
 | 
|---|
| 645 | 
 | 
|---|
| 646 | REM # Build the obuild_windef.exe utility program :
 | 
|---|
| 647 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c"
 | 
|---|
| 648 | IF EXIST obuild_windef.obj DEL obuild_windef.obj
 | 
|---|
| 649 | 
 | 
|---|
| 650 | REM # Building the .def file :
 | 
|---|
| 651 | @IF %obuild_verbose% == yes @ECHO ON 
 | 
|---|
| 652 | dumpbin.exe /symbols /out:.\lib_snova\tmp .\lib_snova\snova.arc
 | 
|---|
| 653 | @IF %obuild_verbose% == yes @ECHO OFF 
 | 
|---|
| 654 | .\obuild_windef.exe snova < .\lib_snova\tmp > .\lib_snova\snova.def
 | 
|---|
| 655 | REM # Building the linking library :
 | 
|---|
| 656 | REM # It produces a .exp file.
 | 
|---|
| 657 | @IF %obuild_verbose% == yes @ECHO ON 
 | 
|---|
| 658 | lib.exe /nologo /machine:ix86 /out:.\snova.lib /def:.\lib_snova\snova.def
 | 
|---|
| 659 | @IF %obuild_verbose% == yes @ECHO OFF 
 | 
|---|
| 660 | 
 | 
|---|
| 661 | REM # Building the DLL :
 | 
|---|
| 662 | IF EXIST .\snova.dll DEL .\snova.dll
 | 
|---|
| 663 | @IF %obuild_verbose% == yes @ECHO ON 
 | 
|---|
| 664 | link.exe /nologo /dll /out:.\snova.dll .\snova.exp .\lib_snova\snova.arc %obuild_linked_libraries%
 | 
|---|
| 665 | @IF %obuild_verbose% == yes @ECHO OFF 
 | 
|---|
| 666 | 
 | 
|---|
| 667 | cd "%obuild_pwd_snovis_0%"
 | 
|---|
| 668 | SET obuild_pwd_snovis_0=
 | 
|---|
| 669 | REM # Some cleanup :
 | 
|---|
| 670 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\lib_snova\tmp_objs"
 | 
|---|
| 671 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snova.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snova.exp"
 | 
|---|
| 672 | 
 | 
|---|
| 673 | :obuild_return
 | 
|---|
| 674 | ENDLOCAL
 | 
|---|
| 675 | @ECHO ON
 | 
|---|