6 <!-- bakefile modules we need: -->
7 <using module=
"datafiles"/>
9 <!-- load python module with wxwindows helpers: -->
10 <using module=
"wxwin"/>
12 <include file=
"config.bkl"/>
15 <!-- ================================================================== -->
16 <!-- wxWindows version numbers: -->
17 <!-- ================================================================== -->
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">$(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)
</set>
24 <set var=
"WXSOVERSION">0.0.0</set>
25 <set var=
"WXMACVERSION">$(WX_VERSION)
</set>
28 <!-- ================================================================== -->
29 <!-- Names of libraries and DLLs: -->
30 <!-- ================================================================== -->
33 <if cond=
"USE_GUI=='0'">base
</if>
34 <if cond=
"USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
</if>
37 <set var=
"COMPILERORGCC">
38 <if cond=
"isdefined('COMPILER')">$(COMPILER)
</if>
39 <if cond=
"not isdefined('COMPILER')">gcc
</if>
41 <set var=
"WXCOMPILER">
42 <if cond=
"PLATFORM_WIN32=='1'">_$(COMPILERORGCC)
</if>
46 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
47 <if cond=
"PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)
</if>
50 <set var=
"WXDEBUGFLAG">
51 <if cond=
"BUILD=='debug'">d
</if>
53 <set var=
"WXUNICODEFLAG">
54 <if cond=
"UNICODE=='1'">u
</if>
56 <set var=
"WXNAMESUFFIX">
57 $(WXUNICODEFLAG)$(WXDEBUGFLAG)
60 <set var=
"WXUNIVNAME">
61 <if cond=
"WXUNIV=='1'">univ
</if>
63 <set var=
"WXUNIV_DEFINE">
64 <if cond=
"WXUNIV=='1'">__WXUNIVERSAL__
</if>
67 <if cond=
"FORMAT=='autoconf'">
68 <set var=
"WXNAMEPREFIX">wx
</set>
69 <set var=
"WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)
</set>
70 <set var=
"WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)
</set>
72 <if cond=
"FORMAT!='autoconf'">
73 <set var=
"WXNAMEPREFIX">wx$(WXVER_MAJOR)$(WXVER_MINOR)
</set>
74 <set var=
"WXNAMEPREFIXGUI">wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)
</set>
75 <set var=
"WXVERSIONTAG"></set>
77 <set var=
"WXDLLNAMEPREFIX">
78 <if cond=
"PLATFORM_WIN32=='1'">wx$(WXVER_MAJOR)$(WXVER_MINOR)
</if>
79 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)
</if>
81 <set var=
"WXDLLNAMEPREFIXGUI">
82 <if cond=
"PLATFORM_WIN32=='1'">
83 wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)
85 <if cond=
"PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)
</if>
87 <set var=
"WXDLLVERSIONTAG">
88 <if cond=
"PLATFORM_WIN32=='1'"></if>
89 <if cond=
"PLATFORM_WIN32=='0'">$(WXVERSIONTAG)
</if>
92 <set var=
"TOOLCHAIN_NAME">
93 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-$(WXVER_MAJOR).$(WXVER_MINOR)
97 <!-- =============================================================== -->
98 <!-- Names of component libraries: -->
99 <!-- =============================================================== -->
101 <set var=
"WXLIB_BASE">
102 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))
</if>
104 <set var=
"WXLIB_CORE">
105 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))
</if>
107 <set var=
"WXLIB_HTML">
108 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))
</if>
111 <set var=
"WXLIB_MONO">
112 <if cond=
"MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))
</if>
116 <!-- =============================================================== -->
117 <!-- Where to store built libraries and objects: -->
118 <!-- =============================================================== -->
121 <if cond=
"FORMAT!='autoconf'">
122 <set var=
"WXDLLFLAG">
123 <if cond=
"SHARED=='1'">dll
</if>
125 <set var=
"CFG_NAME_PART">
126 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
128 <set var=
"OBJS" make_var=
"1">objs_$(COMPILER)_$(CFG_NAME_PART)
</set>
129 <set var=
"BUILDDIR">$(OBJS)
</set>
132 <set var=
"LIBDIRNAME">
133 <if cond=
"FORMAT=='autoconf'">$(top_builddir)lib
</if>
134 <if cond=
"FORMAT!='autoconf'">
135 $(TOP_SRCDIR)lib$(DIRSEP)$(COMPILER)_$(CFG_NAME_PART)
140 <!-- =============================================================== -->
141 <!-- Templates for libs: -->
142 <!-- =============================================================== -->
144 <set var=
"DEBUGFLAG">
145 <if cond=
"BUILD=='debug'">on
</if>
146 <if cond=
"BUILD=='release'">off
</if>
148 <set var=
"OPTIMIZEFLAG">
149 <if cond=
"BUILD=='debug'">off
</if>
150 <if cond=
"BUILD=='release'">speed
</if>
153 <set var=
"DEBUG_DEFINE">
154 <if cond=
"FORMAT!='autoconf' and BUILD=='debug'">__WXDEBUG__
</if>
156 <set var=
"UNICODE_DEFINE">
157 <if cond=
"FORMAT!='autoconf' and UNICODE=='1'">wxUSE_UNICODE=
1</if>
160 <template id=
"anylib">
161 <depends cond=
"FORMAT!='autoconf' and BUILDING_LIB=='1'">setup.h
</depends>
162 <dirname>$(LIBDIRNAME)
</dirname>
163 <install-to>$(LIBDIR)
</install-to>
165 <debug-info>$(DEBUGFLAG)
</debug-info>
166 <optimize>$(OPTIMIZEFLAG)
</optimize>
167 <threading>multi
</threading>
168 <runtime-libs>dynamic
</runtime-libs>
170 <if cond=
"FORMAT!='autoconf'">
171 <define>WINVER=
0x0400</define>
172 <define>_WIN32_IE=
0x0400</define>
173 <define>STRICT
</define>
177 <template id=
"3rdparty_lib" template=
"anylib">
178 <libname>$(id)$(WXDEBUGFLAG)
</libname>
182 <!-- =============================================================== -->
183 <!-- 3rd party libs: -->
184 <!-- =============================================================== -->
186 <!-- 3rd party libraries: -->
187 <include file=
"regex.bkl"/>
188 <include file=
"zlib.bkl"/>
189 <include file=
"png.bkl"/>
190 <include file=
"jpeg.bkl"/>
191 <include file=
"tiff.bkl"/>
192 <include file=
"odbc.bkl"/>
195 <!-- =============================================================== -->
196 <!-- Templates for wxWindows libs: -->
197 <!-- =============================================================== -->
200 <set var=
"wxid">$(wxwin.mk_wxid(id))
</set>
201 <define>__WX$(TOOLKIT)__
</define>
202 <define>$(WXUNIV_DEFINE)
</define>
203 <define>$(DEBUG_DEFINE)
</define>
204 <define>$(UNICODE_DEFINE)
</define>
205 <include>$(TOP_SRCDIR)include
</include>
206 <lib-path>$(LIBDIRNAME)
</lib-path>
207 <include cond=
"FORMAT!='autoconf'">$(LIBDIRNAME)
</include>
208 <include>$(INC_TIFF)
</include>
209 <include>$(INC_JPEG)
</include>
210 <include>$(INC_PNG)
</include>
211 <include>$(INC_ZLIB)
</include>
212 <include>$(INC_ODBC)
</include>
213 <include>$(INC_REGEX)
</include>
216 <template id=
"wx_append">
217 <!-- link against builtin 3rd party libs, if needed: -->
218 <sys-lib>$(LIB_TIFF)
</sys-lib>
219 <sys-lib>$(LIB_JPEG)
</sys-lib>
220 <sys-lib>$(LIB_PNG)
</sys-lib>
221 <sys-lib>$(LIB_ZLIB)
</sys-lib>
222 <sys-lib>$(LIB_ODBC)
</sys-lib>
223 <sys-lib>$(LIB_REGEX)
</sys-lib>
225 <ldlibs>$(EXTRALIBS)
</ldlibs>
227 <!-- system libraries on windows: -->
228 <if cond=
"FORMAT!='autoconf'">
229 <if cond=
"COMPILER=='bcc'">
230 <sys-lib>import32
</sys-lib>
231 <sys-lib>ole2w32
</sys-lib>
233 <if cond=
"COMPILER!='bcc'">
234 <sys-lib>kernel32
</sys-lib>
235 <sys-lib>user32
</sys-lib>
236 <sys-lib>gdi32
</sys-lib>
237 <sys-lib>comdlg32
</sys-lib>
238 <sys-lib>winspool
</sys-lib>
239 <sys-lib>winmm
</sys-lib>
240 <sys-lib>shell32
</sys-lib>
241 <sys-lib>oldnames
</sys-lib>
242 <sys-lib>comctl32
</sys-lib>
243 <sys-lib>odbc32
</sys-lib>
244 <sys-lib>ole32
</sys-lib>
245 <sys-lib>oleaut32
</sys-lib>
246 <sys-lib>uuid
</sys-lib>
247 <sys-lib>rpcrt4
</sys-lib>
248 <sys-lib>advapi32
</sys-lib>
249 <sys-lib>wsock32
</sys-lib>
254 <template id=
"wx_lib_b" template=
"wx,anylib">
255 <set var=
"WXLIBNAME">$(wxwin.mkLibName(wxid))
</set>
256 <libname>$(WXLIBNAME)
</libname>
258 <if cond=
"FORMAT!='autoconf'">
259 <sources>src/msw/dummy.cpp
</sources>
260 <precomp-headers-gen>src/msw/dummy.cpp
</precomp-headers-gen>
262 <precomp-headers-header>wx/wxprec.h
</precomp-headers-header>
263 <precomp-headers>on
</precomp-headers>
264 <precomp-headers-file>wxprec_$(id)
</precomp-headers-file>
267 <template id=
"wx_dll_b" template=
"wx_lib_b">
268 <set var=
"WXDLLNAME">$(wxwin.mkDllName(wxid))
</set>
269 <dllname>$(WXDLLNAME)
</dllname>
270 <version>$(WX_VERSION)
</version>
271 <so_version>$(WXSOVERSION)
</so_version>
272 <mac_version>$(WXMACVERSION)
</mac_version>
275 <template id=
"wx_lib" template=
"wx_lib_b"/>
276 <template id=
"wx_dll" template=
"wx_dll_b" template_append=
"wx_append">
277 <depends>wxtiff
</depends>
278 <depends>wxjpeg
</depends>
279 <depends>wxpng
</depends>
280 <depends>wxzlib
</depends>
281 <depends cond=
"FORMAT=='autoconf'">wxodbc
</depends>
282 <depends>wxregex
</depends>
285 <!-- =============================================================== -->
286 <!-- Support for wxWindows samples and contrib: -->
287 <!-- =============================================================== -->
289 <!-- Link against one wxWin library. Value must be literal! -->
290 <define-tag name=
"wx-lib" rules=
"exe,dll">
291 <sys-lib>$(wxwin.libToLink(value))
</sys-lib>