]>
Commit | Line | Data |
---|---|---|
1 | <?xml version="1.0" ?> | |
2 | <!-- $Id$ --> | |
3 | ||
4 | <makefile> | |
5 | ||
6 | <requires version="0.1.3"/> | |
7 | ||
8 | <!-- bakefile modules we need: --> | |
9 | <using module="datafiles"/> | |
10 | ||
11 | <!-- load python module with wxwindows helpers: --> | |
12 | <using module="wxwin"/> | |
13 | ||
14 | <include file="config.bkl"/> | |
15 | ||
16 | <include file="plugins_deps.bkl"/> | |
17 | ||
18 | <!-- ================================================================== --> | |
19 | <!-- wxWindows version numbers: --> | |
20 | <!-- ================================================================== --> | |
21 | ||
22 | <set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set> | |
23 | <set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set> | |
24 | <set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set> | |
25 | <set var="WX_VERSION" make_var="1"> | |
26 | $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE) | |
27 | </set> | |
28 | ||
29 | <set var="WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) % 2 == 0))</set> | |
30 | ||
31 | <set var="WXSOVERSION"> | |
32 | <if cond="WX_STABLE_BRANCH=='1'">0.0.0</if> | |
33 | <if cond="WX_STABLE_BRANCH=='0'">$(WXVER_RELEASE).0.0</if> | |
34 | </set> | |
35 | <set var="WXMACVERSION">$(WX_VERSION)</set> | |
36 | <set var="WXWIN32DLLVERSION"> | |
37 | <if cond="WX_STABLE_BRANCH=='1'">$(WXVER_MAJOR)$(WXVER_MINOR)</if> | |
38 | <if cond="WX_STABLE_BRANCH=='0'">$(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE)</if> | |
39 | </set> | |
40 | ||
41 | ||
42 | <!-- ================================================================== --> | |
43 | <!-- Names of libraries and DLLs: --> | |
44 | <!-- ================================================================== --> | |
45 | ||
46 | <set var="PORTNAME"> | |
47 | <if cond="USE_GUI=='0'">base</if> | |
48 | <if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if> | |
49 | </set> | |
50 | ||
51 | <set var="WXBASEPORT"> | |
52 | <if cond="TOOLKIT=='MAC'">_carbon</if> | |
53 | </set> | |
54 | ||
55 | <set var="COMPILERORGCC"> | |
56 | <if cond="isdefined('COMPILER')">$(COMPILER)</if> | |
57 | <if cond="not isdefined('COMPILER')">gcc</if> | |
58 | </set> | |
59 | <set var="WXCOMPILER"> | |
60 | <if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if> | |
61 | </set> | |
62 | ||
63 | <set var="VENDORTAG"> | |
64 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if> | |
65 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if> | |
66 | </set> | |
67 | ||
68 | <set var="WXDEBUGFLAG"> | |
69 | <if cond="BUILD=='debug' and DEBUG_FLAG=='default'">d</if> | |
70 | <if cond="DEBUG_FLAG=='1'">d</if> | |
71 | </set> | |
72 | <set var="WXUNICODEFLAG"> | |
73 | <if cond="UNICODE=='1'">u</if> | |
74 | </set> | |
75 | <set var="WXNAMESUFFIX"> | |
76 | $(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
77 | </set> | |
78 | ||
79 | <set var="WXUNIVNAME"> | |
80 | <if cond="WXUNIV=='1'">univ</if> | |
81 | </set> | |
82 | <set var="WXUNIV_DEFINE"> | |
83 | <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if> | |
84 | </set> | |
85 | ||
86 | <if cond="FORMAT=='autoconf'"> | |
87 | <set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set> | |
88 | <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set> | |
89 | <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set> | |
90 | </if> | |
91 | <if cond="FORMAT!='autoconf'"> | |
92 | <set var="WXNAMEPREFIX"> | |
93 | wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR) | |
94 | </set> | |
95 | <set var="WXNAMEPREFIXGUI"> | |
96 | wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)</set> | |
97 | <set var="WXVERSIONTAG"></set> | |
98 | </if> | |
99 | <set var="WXDLLNAMEPREFIX"> | |
100 | <if cond="PLATFORM_WIN32=='1'"> | |
101 | wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION) | |
102 | </if> | |
103 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if> | |
104 | </set> | |
105 | <set var="WXDLLNAMEPREFIXGUI"> | |
106 | <if cond="PLATFORM_WIN32=='1'"> | |
107 | wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION) | |
108 | </if> | |
109 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)</if> | |
110 | </set> | |
111 | <set var="WXDLLVERSIONTAG"> | |
112 | <if cond="PLATFORM_WIN32=='1'"></if> | |
113 | <if cond="PLATFORM_WIN32=='0'">$(WXVERSIONTAG)</if> | |
114 | </set> | |
115 | ||
116 | ||
117 | <!-- =============================================================== --> | |
118 | <!-- Names of component libraries: --> | |
119 | <!-- =============================================================== --> | |
120 | ||
121 | <set var="WXLIB_BASE"> | |
122 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if> | |
123 | </set> | |
124 | <set var="WXLIB_NET"> | |
125 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if> | |
126 | </set> | |
127 | <set var="WXLIB_CORE"> | |
128 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if> | |
129 | </set> | |
130 | <set var="WXLIB_ADV"> | |
131 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))</if> | |
132 | </set> | |
133 | <set var="WXLIB_HTML"> | |
134 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if> | |
135 | </set> | |
136 | <set var="WXLIB_XML"> | |
137 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if> | |
138 | </set> | |
139 | <set var="WXLIB_ODBC"> | |
140 | <if cond="MONOLITHIC=='0' and USE_ODBC=='1'"> | |
141 | $(mk.evalExpr(wxwin.mkLibName('odbc'))) | |
142 | </if> | |
143 | </set> | |
144 | <set var="WXLIB_DBGRID"> | |
145 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))</if> | |
146 | </set> | |
147 | ||
148 | <set var="WXLIB_MONO"> | |
149 | <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if> | |
150 | </set> | |
151 | ||
152 | ||
153 | <!-- =============================================================== --> | |
154 | <!-- Where to store built libraries and objects: --> | |
155 | <!-- =============================================================== --> | |
156 | ||
157 | ||
158 | <if cond="FORMAT!='autoconf'"> | |
159 | <set var="WXDLLFLAG"> | |
160 | <if cond="SHARED=='1'">dll</if> | |
161 | </set> | |
162 | <set var="CFG_NAME_PART"> | |
163 | $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
164 | </set> | |
165 | <set var="OBJS" make_var="1"> | |
166 | <if cond="FORMAT!='cbuilderx'">$(COMPILER)_$(CFG_NAME_PART)</if> | |
167 | <!-- FIXME: waiting for removal after CBX has better ../ dirs | |
168 | support --> | |
169 | <if cond="FORMAT=='cbuilderx'">build_cbx_$(CFG_NAME_PART)</if> | |
170 | </set> | |
171 | ||
172 | <set var="BUILDDIR">$(OBJS)</set> | |
173 | </if> | |
174 | ||
175 | <set var="LIBDIRNAME" make_var="1"> | |
176 | <if cond="FORMAT=='autoconf'">$(top_builddir)lib</if> | |
177 | <if cond="FORMAT!='autoconf' and SHARED=='0'"> | |
178 | $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)_lib$(CFG) | |
179 | </if> | |
180 | <if cond="FORMAT!='autoconf' and SHARED=='1'"> | |
181 | $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)_dll$(CFG) | |
182 | </if> | |
183 | </set> | |
184 | ||
185 | <if cond="FORMAT!='autoconf'"> | |
186 | <set var="SETUPHDIR" make_var="1"> | |
187 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
188 | </set> | |
189 | </if> | |
190 | ||
191 | ||
192 | ||
193 | <!-- =============================================================== --> | |
194 | <!-- Templates for libs: --> | |
195 | <!-- =============================================================== --> | |
196 | ||
197 | <set var="DEBUGINFO"> | |
198 | <if cond="BUILD=='debug' and DEBUG_INFO=='default'">on</if> | |
199 | <if cond="DEBUG_INFO=='1'">on</if> | |
200 | <if cond="BUILD=='release' and DEBUG_INFO=='default'">off</if> | |
201 | <if cond="DEBUG_INFO=='0'">off</if> | |
202 | </set> | |
203 | <set var="DEBUGRUNTIME"> | |
204 | <if cond="DEBUG_RUNTIME_LIBS=='default'">$(DEBUGINFO)</if> | |
205 | <if cond="DEBUG_RUNTIME_LIBS=='0'">off</if> | |
206 | <if cond="DEBUG_RUNTIME_LIBS=='1'">on</if> | |
207 | </set> | |
208 | <set var="OPTIMIZEFLAG"> | |
209 | <if cond="BUILD=='debug'">off</if> | |
210 | <if cond="BUILD=='release'">speed</if> | |
211 | </set> | |
212 | <set var="EXCEPTIONSFLAG"> | |
213 | <if cond="USE_EXCEPTIONS=='1'">on</if> | |
214 | <if cond="USE_EXCEPTIONS=='0'">off</if> | |
215 | </set> | |
216 | ||
217 | <set var="DEBUG_DEFINE"> | |
218 | <if cond="FORMAT!='autoconf' and BUILD=='debug' and DEBUG_FLAG=='default'">__WXDEBUG__</if> | |
219 | <if cond="FORMAT!='autoconf' and DEBUG_FLAG=='1'">__WXDEBUG__</if> | |
220 | </set> | |
221 | <!-- does not cover all cases, but better than nothing --> | |
222 | <set var="NO_VC_CRTDBG"> | |
223 | <if cond="FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__</if> | |
224 | <if cond="FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__</if> | |
225 | </set> | |
226 | <set var="UNICODE_DEFINE"> | |
227 | <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if> | |
228 | </set> | |
229 | ||
230 | <set var="UNICOWS_LIB"> | |
231 | <if cond="MSLU=='1'">unicows</if> | |
232 | </set> | |
233 | ||
234 | <template id="common_settings"> | |
235 | <debug-info>$(DEBUGINFO)</debug-info> | |
236 | <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs> | |
237 | <optimize>$(OPTIMIZEFLAG)</optimize> | |
238 | <threading>multi</threading> | |
239 | <runtime-libs>$(RUNTIME_LIBS)</runtime-libs> | |
240 | <cxx-rtti>$(EXCEPTIONSFLAG)</cxx-rtti> | |
241 | <cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions> | |
242 | <if cond="FORMAT!='autoconf'"> | |
243 | <cppflags>$(EXTRACFLAGS)</cppflags> | |
244 | </if> | |
245 | <define>$(NO_VC_CRTDBG)</define> | |
246 | </template> | |
247 | ||
248 | <template id="anylib"> | |
249 | <dirname>$(LIBDIRNAME)</dirname> | |
250 | <install-to>$(LIBDIR)</install-to> | |
251 | </template> | |
252 | ||
253 | <template id="3rdparty_lib" template="common_settings,anylib"> | |
254 | <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname> | |
255 | <!-- | |
256 | we want to install 3rd party libs system-wide only with static | |
257 | version of wxWindows; otherwise they are embedded in shared libs: | |
258 | --> | |
259 | <install-if>SHARED=='0'</install-if> | |
260 | </template> | |
261 | ||
262 | ||
263 | <!-- deal with the need to copy setup.h here: --> | |
264 | ||
265 | <define-tag name="msvc-headers" rules="dll,lib"> | |
266 | <if cond="FORMAT=='msvc6prj'"> | |
267 | <msvc-project-files> | |
268 | $(addPrefixToList('include\', wxwin.headersOnly(value))) | |
269 | </msvc-project-files> | |
270 | </if> | |
271 | </define-tag> | |
272 | ||
273 | <define-tag name="msvc-copy-setup-h" rules="dll,lib"> | |
274 | <if cond="FORMAT=='msvc6prj'"> | |
275 | <msvc-headers>wx/msw/setup.h</msvc-headers> | |
276 | <set var="__custom_build_files" append="1"> | |
277 | include\wx\msw\setup.h | |
278 | </set> | |
279 | <set var="__custom_build_include_wx_msw_setup_h"> | |
280 | Creating $(SETUPHDIR)\wx\setup.h | |
281 | InputPath=..\include\wx\msw\setup.h | |
282 | ||
283 | "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)" | |
284 | $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h | |
285 | </set> | |
286 | </if> | |
287 | </define-tag> | |
288 | ||
289 | <template id="msvc_setup_h"> | |
290 | <msvc-copy-setup-h/> | |
291 | </template> | |
292 | ||
293 | <!-- =============================================================== --> | |
294 | <!-- 3rd party libs: --> | |
295 | <!-- =============================================================== --> | |
296 | ||
297 | <!-- 3rd party libraries: --> | |
298 | <include file="regex.bkl"/> | |
299 | <include file="zlib.bkl"/> | |
300 | <include file="png.bkl"/> | |
301 | <include file="jpeg.bkl"/> | |
302 | <include file="tiff.bkl"/> | |
303 | <include file="odbc.bkl"/> | |
304 | <include file="expat.bkl"/> | |
305 | ||
306 | ||
307 | <!-- =============================================================== --> | |
308 | <!-- Templates for wxWindows libs: --> | |
309 | <!-- =============================================================== --> | |
310 | ||
311 | <template id="wx" template="common_settings"> | |
312 | <set var="wxid">$(wxwin.mk_wxid(id))</set> | |
313 | <define>__WX$(TOOLKIT)__</define> | |
314 | <define>$(WXUNIV_DEFINE)</define> | |
315 | <define>$(DEBUG_DEFINE)</define> | |
316 | <define>$(UNICODE_DEFINE)</define> | |
317 | <!-- this include is added by configure, we need to put other | |
318 | includes before it: --> | |
319 | <include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include> | |
320 | <lib-path>$(LIBDIRNAME)</lib-path> | |
321 | <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include> | |
322 | <warnings>max</warnings> | |
323 | </template> | |
324 | ||
325 | <!-- for both GUI and wxBase libs/samples: --> | |
326 | <template id="wx_append_base_nomono"> | |
327 | <!-- link against builtin 3rd party libs, if needed: --> | |
328 | <sys-lib>$(LIB_TIFF)</sys-lib> | |
329 | <sys-lib>$(LIB_JPEG)</sys-lib> | |
330 | <sys-lib>$(LIB_PNG)</sys-lib> | |
331 | <sys-lib>$(LIB_ZLIB)</sys-lib> | |
332 | <sys-lib>$(LIB_ODBC)</sys-lib> | |
333 | <sys-lib>$(LIB_REGEX)</sys-lib> | |
334 | <sys-lib>$(LIB_EXPAT)</sys-lib> | |
335 | ||
336 | <ldlibs>$(EXTRALIBS)</ldlibs> | |
337 | ||
338 | <!-- system libraries on windows: --> | |
339 | <if cond="FORMAT!='autoconf'"> | |
340 | <sys-lib>$(UNICOWS_LIB)</sys-lib> | |
341 | <if cond="FORMAT=='borland'"> | |
342 | <sys-lib>ole2w32</sys-lib> | |
343 | </if> | |
344 | <if cond="FORMAT!='borland'"> | |
345 | <sys-lib>kernel32</sys-lib> | |
346 | <sys-lib>user32</sys-lib> | |
347 | <sys-lib>gdi32</sys-lib> | |
348 | <sys-lib>comdlg32</sys-lib> | |
349 | <sys-lib>winspool</sys-lib> | |
350 | <sys-lib>winmm</sys-lib> | |
351 | <sys-lib>shell32</sys-lib> | |
352 | <sys-lib>comctl32</sys-lib> | |
353 | <sys-lib>ole32</sys-lib> | |
354 | <sys-lib>oleaut32</sys-lib> | |
355 | <sys-lib>uuid</sys-lib> | |
356 | <sys-lib>rpcrt4</sys-lib> | |
357 | <sys-lib>advapi32</sys-lib> | |
358 | <sys-lib>wsock32</sys-lib> | |
359 | </if> | |
360 | <if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'"> | |
361 | <sys-lib>oleacc</sys-lib> | |
362 | </if> | |
363 | <sys-lib>odbc32</sys-lib> | |
364 | </if> | |
365 | </template> | |
366 | ||
367 | ||
368 | <!-- for GUI libs/samples: --> | |
369 | <template id="wx_append_nomono" template="wx_append_base_nomono"> | |
370 | <ldlibs>$(EXTRALIBS_GUI)</ldlibs> | |
371 | </template> | |
372 | ||
373 | ||
374 | <template id="wx_append_base" template_append="wx_append_base_nomono"> | |
375 | <!-- Always link against the wxWin library in monolithic build: --> | |
376 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
377 | </template> | |
378 | <template id="wx_append" template_append="wx_append_nomono"> | |
379 | <!-- Always link against the wxWin library in monolithic build: --> | |
380 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
381 | </template> | |
382 | ||
383 | ||
384 | <set var="WX_DISABLE_PRECOMP_HEADERS" overwrite="0">0</set> | |
385 | ||
386 | <template id="wx_lib_b" template="wx,anylib"> | |
387 | <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set> | |
388 | <libname>$(WXLIBNAME)</libname> | |
389 | ||
390 | <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'"> | |
391 | <if cond="FORMAT!='autoconf'"> | |
392 | <sources>$(WXTOPDIR)src/msw/dummy.cpp</sources> | |
393 | <precomp-headers-gen> | |
394 | $(WXTOPDIR)src/msw/dummy.cpp | |
395 | </precomp-headers-gen> | |
396 | </if> | |
397 | <precomp-headers-header>wx/wxprec.h</precomp-headers-header> | |
398 | <precomp-headers>on</precomp-headers> | |
399 | <precomp-headers-file>wxprec_$(id)</precomp-headers-file> | |
400 | <precomp-headers-exclude> | |
401 | src/common/unzip.c | |
402 | src/common/extended.c | |
403 | src/msw/gsocket.c | |
404 | src/msw/gsockmsw.c | |
405 | </precomp-headers-exclude> | |
406 | </if> | |
407 | ||
408 | <if cond="FORMAT=='msvc6prj' and BUILDING_LIB=='1'"> | |
409 | <msvc-file-group>Common Sources:src/common/*</msvc-file-group> | |
410 | <msvc-file-group>MSW Sources:src/msw/*</msvc-file-group> | |
411 | <msvc-file-group>Generic Sources:src/generic/*</msvc-file-group> | |
412 | <msvc-file-group>wxUniv Sources:src/univ/*</msvc-file-group> | |
413 | <msvc-file-group>wxHTML Sources:src/html/*</msvc-file-group> | |
414 | <msvc-file-group>Setup Headers:*/setup.h</msvc-file-group> | |
415 | <msvc-file-group>MSW Headers:*wx/msw/*.h</msvc-file-group> | |
416 | <msvc-file-group>Generic Headers:*wx/generic/*.h</msvc-file-group> | |
417 | <msvc-file-group>wxUniv Headers:*wx/univ/*.h</msvc-file-group> | |
418 | <msvc-file-group>wxHTML Headers:*wx/html/*.h</msvc-file-group> | |
419 | <msvc-file-group>Common Headers:*wx/*.h</msvc-file-group> | |
420 | </if> | |
421 | </template> | |
422 | ||
423 | <template id="wx_dll_b" template="wx_lib_b"> | |
424 | <set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set> | |
425 | <dllname>$(WXDLLNAME)</dllname> | |
426 | <version>$(WX_VERSION)</version> | |
427 | <so_version>$(WXSOVERSION)</so_version> | |
428 | <mac_version>$(WXMACVERSION)</mac_version> | |
429 | </template> | |
430 | ||
431 | <template id="wx_3rdparty_dependencies"> | |
432 | <depends>wxtiff</depends> | |
433 | <depends>wxjpeg</depends> | |
434 | <depends>wxpng</depends> | |
435 | <depends>wxexpat</depends> | |
436 | <depends>wxzlib</depends> | |
437 | <depends cond="FORMAT=='autoconf'">wxodbc</depends> | |
438 | <depends>wxregex</depends> | |
439 | </template> | |
440 | ||
441 | <template id="wx_3rdparty_includes"> | |
442 | <include>$(INC_TIFF)</include> | |
443 | <include>$(INC_JPEG)</include> | |
444 | <include>$(INC_PNG)</include> | |
445 | <include>$(INC_ZLIB)</include> | |
446 | <include>$(INC_ODBC)</include> | |
447 | <include>$(INC_REGEX)</include> | |
448 | <include>$(INC_EXPAT)</include> | |
449 | </template> | |
450 | ||
451 | <template id="wx_lib" | |
452 | template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/> | |
453 | <template id="wx_base_lib" | |
454 | template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"> | |
455 | <define>wxUSE_GUI=0</define> | |
456 | </template> | |
457 | ||
458 | <template id="wx_dll" | |
459 | template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes" | |
460 | template_append="msvc_setup_h,wx_append_nomono"/> | |
461 | <template id="wx_base_dll" | |
462 | template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes" | |
463 | template_append="msvc_setup_h,wx_append_base_nomono"> | |
464 | <define>wxUSE_GUI=0</define> | |
465 | </template> | |
466 | ||
467 | <!-- =============================================================== --> | |
468 | <!-- Templates for building wxWindows plugins: --> | |
469 | <!-- =============================================================== --> | |
470 | ||
471 | <if cond="WX_STABLE_BRANCH=='1'"> | |
472 | <set var="PLUGIN_VERSION0"> | |
473 | <if cond="PLATFORM_UNIX=='1'"> | |
474 | $(WXVER_MAJOR).$(WXVER_MINOR) | |
475 | </if> | |
476 | <if cond="PLATFORM_UNIX=='0'"> | |
477 | $(WXVER_MAJOR)$(WXVER_MINOR) | |
478 | </if> | |
479 | </set> | |
480 | </if> | |
481 | <if cond="WX_STABLE_BRANCH=='0'"> | |
482 | <set var="PLUGIN_VERSION0"> | |
483 | <if cond="PLATFORM_UNIX=='1'"> | |
484 | $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE) | |
485 | </if> | |
486 | <if cond="PLATFORM_UNIX=='0'"> | |
487 | $(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE) | |
488 | </if> | |
489 | </set> | |
490 | </if> | |
491 | <set var="PLUGVERDELIM"> | |
492 | <if cond="PLATFORM_UNIX=='1'">-</if> | |
493 | <if cond="PLATFORM_UNIX=='0'"></if> | |
494 | </set> | |
495 | <set var="PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)</set> | |
496 | ||
497 | <set var="PLUGINSUFFIX"> | |
498 | <if cond="UNICODE=='0' and BUILD=='release'"></if> | |
499 | <if cond="UNICODE=='0' and BUILD=='debug'">_d</if> | |
500 | <if cond="UNICODE=='1' and BUILD=='release'">_u</if> | |
501 | <if cond="UNICODE=='1' and BUILD=='debug'">_ud</if> | |
502 | </set> | |
503 | ||
504 | <set var="PLUGINS_INST_DIR" make_var="1"> | |
505 | $(LIBDIR)/wx/$(PLUGIN_VERSION0) | |
506 | </set> | |
507 | ||
508 | <define-rule name="wx-base-plugin" extends="module"> | |
509 | <template> | |
510 | <dllname> | |
511 | $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER) | |
512 | </dllname> | |
513 | <define>WXUSINGDLL</define> | |
514 | <define>wxUSE_GUI=0</define> | |
515 | <install-to>$(PLUGINS_INST_DIR)</install-to> | |
516 | </template> | |
517 | </define-rule> | |
518 | ||
519 | <define-rule name="wx-gui-plugin" extends="module"> | |
520 | <template template="wx"> | |
521 | <dllname> | |
522 | $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER) | |
523 | </dllname> | |
524 | <define>WXUSINGDLL</define> | |
525 | <install-to>$(PLUGINS_INST_DIR)</install-to> | |
526 | </template> | |
527 | </define-rule> | |
528 | ||
529 | <!-- =============================================================== --> | |
530 | <!-- Support for wxWindows samples and contrib: --> | |
531 | <!-- =============================================================== --> | |
532 | ||
533 | <!-- Link against one wxWin library. Value must be literal! --> | |
534 | <define-tag name="wx-lib" rules="exe,dll,module"> | |
535 | <sys-lib>$(wxwin.libToLink(value))</sys-lib> | |
536 | <ldlibs>$(wxwin.extraLdflags(value))</ldlibs> | |
537 | <if cond="FORMAT=='msvc6prj' and MONOLITHIC=='0'"> | |
538 | <depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp> | |
539 | </if> | |
540 | </define-tag> | |
541 | ||
542 | ||
543 | <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain | |
544 | {top_srcdir} from configure, poor bakefile can't know that | |
545 | and won't output top_srcdir = @top_srcdir@ line): --> | |
546 | <set var="VARS_DONT_ELIMINATE" append="1">top_srcdir</set> | |
547 | ||
548 | ||
549 | </makefile> |