4 <!-- bakefile modules we need: -->
5 <using module=
"datafiles"/>
7 <!-- load python module with wxwindows helpers: -->
8 <using module=
"wxwin"/>
10 <include file=
"config.bkl"/>
13 <!-- ================================================================== -->
14 <!-- wxWindows version numbers: -->
15 <!-- ================================================================== -->
17 <set var=
"WXVER_MAJOR">$(wxwin.getVersionMajor())
</set>
18 <set var=
"WXVER_MINOR">$(wxwin.getVersionMinor())
</set>
19 <set var=
"WXVER_RELEASE">$(wxwin.getVersionRelease())
</set>
20 <set var=
"WX_VERSION">$(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)
</set>
22 <set var=
"WXSOVERSION">0.0.0</set>
23 <set var=
"WXMACVERSION">$(WX_VERSION)
</set>
26 <!-- ================================================================== -->
27 <!-- Names of libraries and DLLs: -->
28 <!-- ================================================================== -->
31 <if cond=
"USE_GUI=='0'">base
</if>
32 <if cond=
"USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
</if>
35 <set var=
"COMPILERORGCC">
36 <if cond=
"isdefined('COMPILER')">$(COMPILER)
</if>
37 <if cond=
"not isdefined('COMPILER')">gcc
</if>
39 <set var=
"WXCOMPILER">
40 <if cond=
"PLATFORM_WIN32=='1'">_$(COMPILERORGCC)
</if>
43 <set var=
"WXDEBUGFLAG">
44 <if cond=
"BUILD=='debug'">d
</if>
46 <set var=
"WXUNICODEFLAG">
47 <if cond=
"UNICODE=='1'">u
</if>
49 <set var=
"WXNAMESUFFIX">
50 $(WXUNICODEFLAG)$(WXDEBUGFLAG)
53 <set var=
"WXUNIVNAME">
54 <if cond=
"WXUNIV=='1'">univ
</if>
56 <set var=
"WXUNIV_DEFINE">
57 <if cond=
"WXUNIV=='1'">__WXUNIVERSAL__
</if>
60 <set var=
"WXNAMEPREFIX">wx
</set>
61 <set var=
"WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)
</set>
62 <set var=
"WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)
</set>
64 <set var=
"TOOLCHAIN_NAME">
65 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-$(WXVER_MAJOR).$(WXVER_MINOR)
69 <!-- =============================================================== -->
70 <!-- Names of component libraries: -->
71 <!-- =============================================================== -->
73 <set var=
"WXLIB_CORE">
74 <if cond=
"MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))
</if>
77 <set var=
"WXLIB_MONO">
78 <if cond=
"MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))
</if>
82 <!-- =============================================================== -->
83 <!-- Where to store built libraries: -->
84 <!-- =============================================================== -->
86 <set var=
"LIBDIRNAME">
87 <if cond=
"FORMAT=='autoconf'">$(top_builddir)/lib
</if>
90 <!-- =============================================================== -->
91 <!-- 3rd party libs: -->
92 <!-- =============================================================== -->
94 <!-- 3rd party libraries: -->
95 <include file=
"regex.bkl"/>
96 <include file=
"zlib.bkl"/>
97 <include file=
"png.bkl"/>
98 <include file=
"jpeg.bkl"/>
99 <include file=
"tiff.bkl"/>
100 <include file=
"odbc.bkl"/>
103 <!-- =============================================================== -->
104 <!-- Templates for wxWindows libs: -->
105 <!-- =============================================================== -->
107 <set var=
"WXTOPDIR"></set>
110 <set var=
"wxid">$(wxwin.mk_wxid(id))
</set>
111 <define>__WX$(TOOLKIT)__
</define>
112 <define>$(WXUNIV_DEFINE)
</define>
113 <include>$(SRCDIR)$(WXTOPDIR)/include
</include>
114 <lib-path>$(LIBDIRNAME)
</lib-path>
117 <template id=
"wx_append">
118 <ldflags>$(EXTRALIBS)
</ldflags>
119 <!-- link against builtin 3rd party libs, if needed: -->
120 <sys-lib>$(LIB_JPEG)
</sys-lib>
121 <sys-lib>$(LIB_PNG)
</sys-lib>
122 <sys-lib>$(LIB_ZLIB)
</sys-lib>
123 <sys-lib>$(LIB_TIFF)
</sys-lib>
124 <sys-lib>$(LIB_ODBC)
</sys-lib>
125 <sys-lib>$(LIB_REGEX)
</sys-lib>
128 <template id=
"wx_lib" template=
"wx" template_append=
"wx_append">
129 <set var=
"WXLIBNAME">$(wxwin.mkLibName(wxid))
</set>
130 <dirname>$(LIBDIRNAME)
</dirname>
131 <libname>$(WXLIBNAME)
</libname>
132 <install-to>$(LIBDIR)
</install-to>
135 <template id=
"wx_dll" template=
"wx_lib">
136 <set var=
"WXDLLNAME">$(wxwin.mkDllName(wxid))
</set>
137 <dllname>$(WXDLLNAME)
</dllname>
138 <version>$(WX_VERSION)
</version>
139 <so_version>$(WXSOVERSION)
</so_version>
140 <mac_version>$(WXMACVERSION)
</mac_version>
144 <!-- =============================================================== -->
145 <!-- Support for wxWindows samples and contrib: -->
146 <!-- =============================================================== -->
148 <!-- Link against one wxWin library. Value must be literal! -->
149 <define-tag name=
"wx-lib" rules=
"exe,dll">
150 <sys-lib>$(wxwin.libToLink(value))
</sys-lib>