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