1 | @ECHO OFF |
---|
2 | SETLOCAL |
---|
3 | |
---|
4 | REM # |
---|
5 | REM # File produced by the obuild tool version 1.0 |
---|
6 | REM # for the package snova with version v2r0p0. |
---|
7 | REM # |
---|
8 | |
---|
9 | REM #//////////////////////////////////////////////// |
---|
10 | REM # Usage : |
---|
11 | REM # DOS> CD some_path\pack\version\obuild |
---|
12 | REM # DOS> DOS\build_geomutils |
---|
13 | REM # |
---|
14 | REM #//////////////////////////////////////////////// |
---|
15 | |
---|
16 | REM #//////////////////////////////////////////////// |
---|
17 | REM #/// Get path of this file : |
---|
18 | REM #//////////////////////////////////////////////// |
---|
19 | SET obuild_snova_path=%~dp0 |
---|
20 | REM # Remove ending \obuild\DOS\ |
---|
21 | SET obuild_snova_path=%obuild_snova_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=bin_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_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%" |
---|
87 | |
---|
88 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%" |
---|
89 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" ( |
---|
90 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snova_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_snova_0=%%d |
---|
95 | cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
98 | cd "%obuild_pwd_snova_0%" |
---|
99 | SET obuild_pwd_snova_0= |
---|
100 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 |
---|
101 | SET obuild_cxx_command=cl.exe |
---|
102 | :end_if_platform_0 |
---|
103 | SET obuild_platform_result= |
---|
104 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
105 | |
---|
106 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
107 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
108 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
109 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
110 | cd "%obuild_pwd_snova_0%" |
---|
111 | SET obuild_pwd_snova_0= |
---|
112 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 |
---|
113 | SET obuild_cxx_optimize=/O2 |
---|
114 | :end_if_platform_1 |
---|
115 | SET obuild_platform_result= |
---|
116 | |
---|
117 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
118 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
119 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
120 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
121 | cd "%obuild_pwd_snova_0%" |
---|
122 | SET obuild_pwd_snova_0= |
---|
123 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 |
---|
124 | SET obuild_cxx_debug=/ZI /Od |
---|
125 | :end_if_platform_2 |
---|
126 | SET obuild_platform_result= |
---|
127 | |
---|
128 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
129 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
130 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
131 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
132 | cd "%obuild_pwd_snova_0%" |
---|
133 | SET obuild_pwd_snova_0= |
---|
134 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 |
---|
135 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
136 | :end_if_platform_3 |
---|
137 | SET obuild_platform_result= |
---|
138 | |
---|
139 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_4 |
---|
140 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
141 | GOTO end_if_db_build_lib_geomutils_sh_4 |
---|
142 | :else_if_db_build_lib_geomutils_sh_4 |
---|
143 | SET obuild_cxx_debug_local= |
---|
144 | :end_if_db_build_lib_geomutils_sh_4 |
---|
145 | |
---|
146 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_5 |
---|
147 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
148 | GOTO end_if_opt_build_lib_geomutils_sh_5 |
---|
149 | :else_if_opt_build_lib_geomutils_sh_5 |
---|
150 | SET obuild_cxx_optimize_local= |
---|
151 | :end_if_opt_build_lib_geomutils_sh_5 |
---|
152 | |
---|
153 | |
---|
154 | |
---|
155 | SET obuild_cxx_includes=/I"%obuild_snova_path%\source\GeomUtils\include" |
---|
156 | |
---|
157 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" |
---|
158 | IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" |
---|
159 | |
---|
160 | REM # pre_build scripts : |
---|
161 | |
---|
162 | @IF %obuild_verbose% == yes @ECHO ON |
---|
163 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
164 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\box_data.obj /Tp"..\source\GeomUtils\src\box_data.cc" 1> cl_exe_error |
---|
165 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
166 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
167 | cd "%obuild_snova_path%\obuild" |
---|
168 | |
---|
169 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
170 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\cat_dictionary.obj /Tp"..\source\GeomUtils\src\cat_dictionary.cc" 1> cl_exe_error |
---|
171 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
172 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
173 | cd "%obuild_snova_path%\obuild" |
---|
174 | |
---|
175 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
176 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\cylinder_data.obj /Tp"..\source\GeomUtils\src\cylinder_data.cc" 1> cl_exe_error |
---|
177 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
178 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
179 | cd "%obuild_snova_path%\obuild" |
---|
180 | |
---|
181 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
182 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_consts.obj /Tp"..\source\GeomUtils\src\geom_consts.cc" 1> cl_exe_error |
---|
183 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
184 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
185 | cd "%obuild_snova_path%\obuild" |
---|
186 | |
---|
187 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
188 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_data.obj /Tp"..\source\GeomUtils\src\geom_data.cc" 1> cl_exe_error |
---|
189 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
190 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
191 | cd "%obuild_snova_path%\obuild" |
---|
192 | |
---|
193 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
194 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_id.obj /Tp"..\source\GeomUtils\src\geom_id.cc" 1> cl_exe_error |
---|
195 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
196 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
197 | cd "%obuild_snova_path%\obuild" |
---|
198 | |
---|
199 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
200 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_locator.obj /Tp"..\source\GeomUtils\src\geom_locator.cc" 1> cl_exe_error |
---|
201 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
202 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
203 | cd "%obuild_snova_path%\obuild" |
---|
204 | |
---|
205 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
206 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\geom_tools.obj /Tp"..\source\GeomUtils\src\geom_tools.cc" 1> cl_exe_error |
---|
207 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
208 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
209 | cd "%obuild_snova_path%\obuild" |
---|
210 | |
---|
211 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
212 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\gnuplot_tools.obj /Tp"..\source\GeomUtils\src\gnuplot_tools.cc" 1> cl_exe_error |
---|
213 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
214 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
215 | cd "%obuild_snova_path%\obuild" |
---|
216 | |
---|
217 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
218 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\shape_data.obj /Tp"..\source\GeomUtils\src\shape_data.cc" 1> cl_exe_error |
---|
219 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
220 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
221 | cd "%obuild_snova_path%\obuild" |
---|
222 | |
---|
223 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
224 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\sphere_data.obj /Tp"..\source\GeomUtils\src\sphere_data.cc" 1> cl_exe_error |
---|
225 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
226 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
227 | cd "%obuild_snova_path%\obuild" |
---|
228 | |
---|
229 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
230 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\string_tools.obj /Tp"..\source\GeomUtils\src\string_tools.cc" 1> cl_exe_error |
---|
231 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
232 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
233 | cd "%obuild_snova_path%\obuild" |
---|
234 | |
---|
235 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
236 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_geomutils\tube_data.obj /Tp"..\source\GeomUtils\src\tube_data.cc" 1> cl_exe_error |
---|
237 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
238 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
239 | cd "%obuild_snova_path%\obuild" |
---|
240 | |
---|
241 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
242 | |
---|
243 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
244 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
245 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
246 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
247 | cd "%obuild_pwd_snova_0%" |
---|
248 | SET obuild_pwd_snova_0= |
---|
249 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 |
---|
250 | SET obuild_cxx_linker_command=link.exe |
---|
251 | :end_if_platform_20 |
---|
252 | SET obuild_platform_result= |
---|
253 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
254 | |
---|
255 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
256 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
257 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
258 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
259 | cd "%obuild_pwd_snova_0%" |
---|
260 | SET obuild_pwd_snova_0= |
---|
261 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 |
---|
262 | SET obuild_cxx_linker_debug=/DEBUG |
---|
263 | :end_if_platform_21 |
---|
264 | SET obuild_platform_result= |
---|
265 | |
---|
266 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
267 | cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
270 | cd "%obuild_pwd_snova_0%" |
---|
271 | SET obuild_pwd_snova_0= |
---|
272 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 |
---|
273 | SET obuild_cxx_linker_options=/nologo |
---|
274 | :end_if_platform_22 |
---|
275 | SET obuild_platform_result= |
---|
276 | |
---|
277 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_23 |
---|
278 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
279 | GOTO end_if_db_build_lib_geomutils_sh_23 |
---|
280 | :else_if_db_build_lib_geomutils_sh_23 |
---|
281 | SET obuild_cxx_linker_debug_local= |
---|
282 | :end_if_db_build_lib_geomutils_sh_23 |
---|
283 | |
---|
284 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_24 |
---|
285 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
286 | GOTO end_if_opt_build_lib_geomutils_sh_24 |
---|
287 | :else_if_opt_build_lib_geomutils_sh_24 |
---|
288 | SET obuild_cxx_linker_optimize_local= |
---|
289 | :end_if_opt_build_lib_geomutils_sh_24 |
---|
290 | |
---|
291 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d |
---|
292 | cd "%obuild_snova_path%\%obuild_dir_bin%" |
---|
293 | IF EXIST .\lib_geomutils\tmp_objs DEL .\lib_geomutils\tmp_objs |
---|
294 | FOR %%f IN (.\lib_geomutils\*.obj) DO ECHO %%f >> .\lib_geomutils\tmp_objs |
---|
295 | |
---|
296 | REM # Create the archive library geomutils : |
---|
297 | @IF %obuild_verbose% == yes @ECHO ON |
---|
298 | lib.exe /nologo /machine:ix86 /out:.\lib_geomutils\geomutils.arc @.\lib_geomutils\tmp_objs |
---|
299 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
300 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
301 | |
---|
302 | REM # Build the obuild_windef.exe utility program : |
---|
303 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
304 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
305 | |
---|
306 | REM # Building the .def file : |
---|
307 | @IF %obuild_verbose% == yes @ECHO ON |
---|
308 | dumpbin.exe /symbols /out:.\lib_geomutils\tmp .\lib_geomutils\geomutils.arc 1> dumpbin_exe_error .\lib_geomutils\geomutils.arc |
---|
309 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
310 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
311 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
312 | .\obuild_windef.exe geomutils < .\lib_geomutils\tmp > .\lib_geomutils\geomutils.def |
---|
313 | REM # Building the linking library : |
---|
314 | REM # It produces a .exp file. |
---|
315 | @IF %obuild_verbose% == yes @ECHO ON |
---|
316 | lib.exe /nologo /machine:ix86 /out:.\geomutils.lib /def:.\lib_geomutils\geomutils.def 1> lib_exe_error |
---|
317 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
318 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
319 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
320 | |
---|
321 | REM # Building the DLL : |
---|
322 | IF EXIST .\geomutils.dll DEL .\geomutils.dll |
---|
323 | @IF %obuild_verbose% == yes @ECHO ON |
---|
324 | link.exe /nologo /dll /out:.\geomutils.dll .\geomutils.exp .\lib_geomutils\geomutils.arc %obuild_linked_libraries% |
---|
325 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
326 | |
---|
327 | cd "%obuild_pwd_snova_0%" |
---|
328 | SET obuild_pwd_snova_0= |
---|
329 | REM # Some cleanup : |
---|
330 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils\tmp_objs" |
---|
331 | IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\geomutils.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\geomutils.exp" |
---|
332 | |
---|
333 | :obuild_return |
---|
334 | ENDLOCAL |
---|
335 | @ECHO ON |
---|