| [6] | 1 | @ECHO OFF
|
|---|
| 2 | SETLOCAL
|
|---|
| 3 |
|
|---|
| 4 | REM #
|
|---|
| 5 | REM # File produced by the obuild tool version 1.0
|
|---|
| [101] | 6 | REM # for the package snovis with version v1r1.
|
|---|
| [6] | 7 | REM #
|
|---|
| 8 |
|
|---|
| 9 | REM #////////////////////////////////////////////////
|
|---|
| 10 | REM # Usage :
|
|---|
| 11 | REM # DOS> CD some_path\pack\version\obuild
|
|---|
| 12 | REM # DOS> DOS\build_snovis
|
|---|
| 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" (
|
|---|
| [92] | 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
|
|---|
| [6] | 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
|
|---|
| [137] | 97 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 98 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 99 | SET obuild_pwd_snovis_0=
|
|---|
| [92] | 100 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
|
|---|
| [137] | 101 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
|
|---|
| [92] | 102 | :end_if_platform_1
|
|---|
| [6] | 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
|
|---|
| [134] | 107 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 108 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 109 | SET obuild_pwd_snovis_0=
|
|---|
| [92] | 110 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
|
|---|
| [137] | 111 | SET Geant4_home=/usr/local/geant4/8.2
|
|---|
| [92] | 112 | :end_if_platform_3
|
|---|
| [6] | 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
|
|---|
| [244] | 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 HDF5_home=/usr/local/HDF5/1.6.5
|
|---|
| 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% UNIX`) 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 OSC_home=/usr/local/OpenScientist/v16r0
|
|---|
| 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
|
|---|
| [6] | 137 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 138 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 139 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
|
|---|
| [6] | 141 | SET obuild_cxx_command=c++
|
|---|
| [244] | 142 | :end_if_platform_8
|
|---|
| [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% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 148 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 149 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 150 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
|
|---|
| [6] | 151 | SET obuild_cxx_command=c++
|
|---|
| [244] | 152 | :end_if_platform_9
|
|---|
| [6] | 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% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 158 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 159 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 160 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
|
|---|
| [6] | 161 | SET obuild_cxx_command=cxx
|
|---|
| [244] | 162 | :end_if_platform_10
|
|---|
| [6] | 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% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 168 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 169 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 170 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
|
|---|
| [6] | 171 | SET obuild_cxx_command=cl.exe
|
|---|
| [244] | 172 | :end_if_platform_11
|
|---|
| [6] | 173 | SET obuild_platform_result=
|
|---|
| 174 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return
|
|---|
| 175 |
|
|---|
| 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% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 180 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 181 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
|
|---|
| [6] | 183 | SET obuild_cxx_optimize=-O
|
|---|
| [244] | 184 | :end_if_platform_12
|
|---|
| [6] | 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% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 190 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 191 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 192 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
|
|---|
| [6] | 193 | SET obuild_cxx_optimize=-O
|
|---|
| [244] | 194 | :end_if_platform_13
|
|---|
| [6] | 195 | SET obuild_platform_result=
|
|---|
| 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% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 200 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 201 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 202 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
|
|---|
| [6] | 203 | SET obuild_cxx_optimize=-O
|
|---|
| [244] | 204 | :end_if_platform_14
|
|---|
| [6] | 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% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 210 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 211 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 212 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
|
|---|
| [6] | 213 | SET obuild_cxx_optimize=/O2
|
|---|
| [244] | 214 | :end_if_platform_15
|
|---|
| [6] | 215 | SET obuild_platform_result=
|
|---|
| 216 |
|
|---|
| 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% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 221 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 222 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
|
|---|
| [6] | 224 | SET obuild_cxx_debug=-g
|
|---|
| [244] | 225 | :end_if_platform_16
|
|---|
| [6] | 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% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 231 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 232 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 233 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
|
|---|
| [6] | 234 | SET obuild_cxx_debug=-g
|
|---|
| [244] | 235 | :end_if_platform_17
|
|---|
| [6] | 236 | SET obuild_platform_result=
|
|---|
| 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% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 241 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 242 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 243 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
|
|---|
| [6] | 244 | SET obuild_cxx_debug=-g
|
|---|
| [244] | 245 | :end_if_platform_18
|
|---|
| [6] | 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% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 251 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 252 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 253 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
|
|---|
| [6] | 254 | SET obuild_cxx_debug=/ZI /Od
|
|---|
| [244] | 255 | :end_if_platform_19
|
|---|
| [6] | 256 | SET obuild_platform_result=
|
|---|
| 257 |
|
|---|
| 258 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 259 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 260 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 261 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 262 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 263 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 264 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
|
|---|
| [6] | 265 | SET obuild_cxx_options=-fPIC
|
|---|
| [244] | 266 | :end_if_platform_20
|
|---|
| [6] | 267 | SET obuild_platform_result=
|
|---|
| 268 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 269 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 270 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 271 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 272 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 273 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 274 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
|
|---|
| [6] | 275 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
|
|---|
| [244] | 276 | :end_if_platform_21
|
|---|
| [6] | 277 | SET obuild_platform_result=
|
|---|
| 278 |
|
|---|
| [244] | 279 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_22
|
|---|
| [6] | 280 | SET obuild_cxx_debug_local=%obuild_cxx_debug%
|
|---|
| [244] | 281 | GOTO end_if_db_build_dll_snovis_sh_22
|
|---|
| 282 | :else_if_db_build_dll_snovis_sh_22
|
|---|
| [6] | 283 | SET obuild_cxx_debug_local=
|
|---|
| [244] | 284 | :end_if_db_build_dll_snovis_sh_22
|
|---|
| [92] | 285 |
|
|---|
| [244] | 286 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_23
|
|---|
| [6] | 287 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
|
|---|
| [244] | 288 | GOTO end_if_opt_build_dll_snovis_sh_23
|
|---|
| 289 | :else_if_opt_build_dll_snovis_sh_23
|
|---|
| [6] | 290 | SET obuild_cxx_optimize_local=
|
|---|
| [244] | 291 | :end_if_opt_build_dll_snovis_sh_23
|
|---|
| [6] | 292 |
|
|---|
| [92] | 293 |
|
|---|
| [6] | 294 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 295 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [244] | 296 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 297 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 298 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 299 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 300 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
|
|---|
| 301 | SET obuild_cxx_macros=%obuild_cxx_macros% /DAPPLE_GL
|
|---|
| 302 | :end_if_platform_24
|
|---|
| 303 | SET obuild_platform_result=
|
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 | SET obuild_cxx_includes=/I"%obuild_snovis_path%"
|
|---|
| 307 | SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snovis_path%\source"
|
|---|
| [6] | 308 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 309 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [244] | 310 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 311 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 312 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 313 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 314 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
|
|---|
| 315 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
|
|---|
| 316 | :end_if_platform_27
|
|---|
| 317 | SET obuild_platform_result=
|
|---|
| [6] | 318 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 319 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [244] | 320 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 321 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 322 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 323 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 324 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
|
|---|
| 325 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
|
|---|
| 326 | :end_if_platform_28
|
|---|
| 327 | SET obuild_platform_result=
|
|---|
| [6] | 328 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 329 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [244] | 330 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 331 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 332 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 333 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 334 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
|
|---|
| 335 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/AIDA/src/cpp
|
|---|
| 336 | :end_if_platform_29
|
|---|
| 337 | SET obuild_platform_result=
|
|---|
| [6] | 338 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 339 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [244] | 340 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 341 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 342 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 343 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 344 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
|
|---|
| 345 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/Slash -I${OSC_home}/Resources/expat/include -I${OSC_home}/Resources/Lib/include -I${OSC_home}/Resources/OnX/include
|
|---|
| 346 | :end_if_platform_30
|
|---|
| 347 | SET obuild_platform_result=
|
|---|
| [6] | 348 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 349 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [244] | 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% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 352 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 353 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 354 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
|
|---|
| 355 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/BatchLab -I${OSC_home}/Resources/OnXLab
|
|---|
| 356 | :end_if_platform_31
|
|---|
| 357 | SET obuild_platform_result=
|
|---|
| [6] | 358 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 359 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [244] | 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% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| [6] | 362 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 363 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 364 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
|
|---|
| 365 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OSC_home}/Resources/CoinGL/include -I${OSC_home}/Resources/HEPVis/include
|
|---|
| 366 | :end_if_platform_32
|
|---|
| 367 | SET obuild_platform_result=
|
|---|
| [6] | 368 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 369 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 370 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 371 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 372 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 373 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 374 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
|
|---|
| [6] | 375 | SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
|
|---|
| [244] | 376 | :end_if_platform_33
|
|---|
| [6] | 377 | SET obuild_platform_result=
|
|---|
| 378 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 379 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 380 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 381 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 382 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 383 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 384 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
|
|---|
| [6] | 385 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
|
|---|
| [244] | 386 | :end_if_platform_34
|
|---|
| [6] | 387 | SET obuild_platform_result=
|
|---|
| 388 |
|
|---|
| 389 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" RMDIR /S /Q "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis"
|
|---|
| 390 | IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis"
|
|---|
| 391 |
|
|---|
| 392 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 393 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [92] | 394 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Callbacks.obj /Tp"..\source\Callbacks.cxx" 1> cl_exe_error
|
|---|
| 395 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
|
|---|
| 396 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error
|
|---|
| [6] | 397 | cd "%obuild_snovis_path%\obuild"
|
|---|
| 398 |
|
|---|
| 399 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [92] | 400 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\InventorCallbacks.obj /Tp"..\source\InventorCallbacks.cxx" 1> cl_exe_error
|
|---|
| 401 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
|
|---|
| 402 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error
|
|---|
| [6] | 403 | cd "%obuild_snovis_path%\obuild"
|
|---|
| 404 |
|
|---|
| 405 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| [92] | 406 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Layouts.obj /Tp"..\source\Layouts.cxx" 1> cl_exe_error
|
|---|
| 407 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
|
|---|
| 408 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error
|
|---|
| [6] | 409 | cd "%obuild_snovis_path%\obuild"
|
|---|
| 410 |
|
|---|
| 411 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 412 |
|
|---|
| [244] | 413 | SET obuild_linked_libraries=-L${Geant4_home}/lib -lG4physicslists
|
|---|
| [6] | 414 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 415 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 416 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| [244] | 417 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 418 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 419 | SET obuild_pwd_snovis_0=
|
|---|
| 420 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
|
|---|
| 421 | 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
|
|---|
| 422 | :end_if_platform_39
|
|---|
| 423 | SET obuild_platform_result=
|
|---|
| 424 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 425 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 426 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 427 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 428 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 429 | SET obuild_pwd_snovis_0=
|
|---|
| 430 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
|
|---|
| 431 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1
|
|---|
| 432 | :end_if_platform_40
|
|---|
| 433 | SET obuild_platform_result=
|
|---|
| 434 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 435 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 436 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 437 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 438 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 439 | SET obuild_pwd_snovis_0=
|
|---|
| 440 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
|
|---|
| 441 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lHEPVisPlotter -lHEPVisDetector -lHEPVisGeometry -lHEPVisUtils -losc_dvi2bitmap -losc_jpeg -losc_freetype2 -losc_Coin -lLibUtils
|
|---|
| 442 | :end_if_platform_41
|
|---|
| 443 | SET obuild_platform_result=
|
|---|
| 444 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 445 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 446 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 447 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
|
|---|
| 448 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 449 | SET obuild_pwd_snovis_0=
|
|---|
| 450 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
|
|---|
| 451 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OSC_home}/lib -lOnXCore -lLibXML -losc_expat -lLibZip -lz -lLibUtils -ldl
|
|---|
| 452 | :end_if_platform_42
|
|---|
| 453 | SET obuild_platform_result=
|
|---|
| 454 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 455 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 456 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| [6] | 457 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 458 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 459 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 460 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
|
|---|
| [6] | 461 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
|
|---|
| [244] | 462 | :end_if_platform_43
|
|---|
| [6] | 463 | SET obuild_platform_result=
|
|---|
| 464 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 465 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 466 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 467 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
|
|---|
| 468 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 469 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 470 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
|
|---|
| [6] | 471 | SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
|
|---|
| [244] | 472 | :end_if_platform_44
|
|---|
| [6] | 473 | SET obuild_platform_result=
|
|---|
| 474 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 475 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 476 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 477 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
|
|---|
| 478 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 479 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 480 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
|
|---|
| [6] | 481 | SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
|
|---|
| [244] | 482 | :end_if_platform_45
|
|---|
| [6] | 483 | SET obuild_platform_result=
|
|---|
| 484 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 485 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 486 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 487 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
|
|---|
| 488 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 489 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 490 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
|
|---|
| [6] | 491 | SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
|
|---|
| [244] | 492 | :end_if_platform_46
|
|---|
| [6] | 493 | SET obuild_platform_result=
|
|---|
| 494 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 495 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 496 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return
|
|---|
| 497 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
|
|---|
| 498 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 499 | SET obuild_pwd_snovis_0=
|
|---|
| [244] | 500 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
|
|---|
| [6] | 501 | SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
|
|---|
| [244] | 502 | :end_if_platform_47
|
|---|
| [6] | 503 | SET obuild_platform_result=
|
|---|
| 504 |
|
|---|
| 505 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
|
|---|
| 506 | cd "%obuild_snovis_path%\%obuild_dir_bin%"
|
|---|
| 507 | IF EXIST .\dll_snovis\tmp_objs DEL .\dll_snovis\tmp_objs
|
|---|
| 508 | FOR %%f IN (.\dll_snovis\*.obj) DO ECHO %%f >> .\dll_snovis\tmp_objs
|
|---|
| 509 |
|
|---|
| 510 | REM # Create the archive library snovis :
|
|---|
| 511 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 512 | lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.arc @.\dll_snovis\tmp_objs
|
|---|
| 513 | @IF ERRORLEVEL 1 @GOTO obuild_return
|
|---|
| 514 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 515 |
|
|---|
| 516 | REM # Build the obuild_windef.exe utility program :
|
|---|
| [92] | 517 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL
|
|---|
| [6] | 518 | IF EXIST obuild_windef.obj DEL obuild_windef.obj
|
|---|
| 519 |
|
|---|
| 520 | REM # Building the .def file :
|
|---|
| 521 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| [92] | 522 | dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc 1> dumpbin_exe_error .\dll_snovis\snovis.arc
|
|---|
| 523 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
|
|---|
| 524 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
|
|---|
| [6] | 525 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 526 | .\obuild_windef.exe snovis < .\dll_snovis\tmp > .\dll_snovis\snovis.def
|
|---|
| 527 | REM # Building the linking library :
|
|---|
| 528 | REM # It produces a .exp file.
|
|---|
| 529 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| [92] | 530 | lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def 1> lib_exe_error
|
|---|
| 531 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
|
|---|
| 532 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error
|
|---|
| [6] | 533 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 534 |
|
|---|
| 535 | REM # Building the DLL :
|
|---|
| 536 | IF EXIST .\snovis.dll DEL .\snovis.dll
|
|---|
| 537 | @IF %obuild_verbose% == yes @ECHO ON
|
|---|
| 538 | link.exe /nologo /dll /out:.\snovis.dll .\dll_snovis\snovis.exp .\dll_snovis\snovis.arc %obuild_linked_libraries%
|
|---|
| 539 | @IF %obuild_verbose% == yes @ECHO OFF
|
|---|
| 540 |
|
|---|
| 541 | cd "%obuild_pwd_snovis_0%"
|
|---|
| 542 | SET obuild_pwd_snovis_0=
|
|---|
| 543 | REM # Some cleanup :
|
|---|
| 544 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs" DEL "%obuild_snovis_path%\%obuild_dir_bin%\dll_snovis\tmp_objs"
|
|---|
| 545 | IF EXIST "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp" DEL "%obuild_snovis_path%\%obuild_dir_bin%\snovis.exp"
|
|---|
| 546 |
|
|---|
| 547 | :obuild_return
|
|---|
| 548 | ENDLOCAL
|
|---|
| 549 | @ECHO ON
|
|---|