]>
Commit | Line | Data |
---|---|---|
ddf98968 | 1 | <?xml version="1.0" ?> |
481290e2 VS |
2 | <!-- $Id$ --> |
3 | ||
ddf98968 | 4 | <makefile> |
c0608865 | 5 | |
ddf98968 VS |
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">$(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)</set> | |
23 | ||
24 | <set var="WXSOVERSION">0.0.0</set> | |
25 | <set var="WXMACVERSION">$(WX_VERSION)</set> | |
26 | ||
27 | ||
28 | <!-- ================================================================== --> | |
29 | <!-- Names of libraries and DLLs: --> | |
30 | <!-- ================================================================== --> | |
31 | ||
32 | <set var="PORTNAME"> | |
33 | <if cond="USE_GUI=='0'">base</if> | |
34 | <if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if> | |
35 | </set> | |
64a2a46f VS |
36 | |
37 | <set var="WXBASEPORT"> | |
38 | <if cond="TOOLKIT=='MAC'">_carbon</if> | |
39 | </set> | |
ddf98968 VS |
40 | |
41 | <set var="COMPILERORGCC"> | |
42 | <if cond="isdefined('COMPILER')">$(COMPILER)</if> | |
43 | <if cond="not isdefined('COMPILER')">gcc</if> | |
44 | </set> | |
45 | <set var="WXCOMPILER"> | |
46 | <if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if> | |
47 | </set> | |
4fc5f509 VS |
48 | |
49 | <set var="VENDORTAG"> | |
cff5df9f VS |
50 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if> |
51 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if> | |
4fc5f509 VS |
52 | </set> |
53 | ||
ddf98968 VS |
54 | <set var="WXDEBUGFLAG"> |
55 | <if cond="BUILD=='debug'">d</if> | |
56 | </set> | |
57 | <set var="WXUNICODEFLAG"> | |
58 | <if cond="UNICODE=='1'">u</if> | |
59 | </set> | |
60 | <set var="WXNAMESUFFIX"> | |
61 | $(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
62 | </set> | |
63 | ||
64 | <set var="WXUNIVNAME"> | |
65 | <if cond="WXUNIV=='1'">univ</if> | |
66 | </set> | |
67 | <set var="WXUNIV_DEFINE"> | |
68 | <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if> | |
69 | </set> | |
70 | ||
cdc0282e | 71 | <if cond="FORMAT=='autoconf'"> |
64a2a46f | 72 | <set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set> |
cdc0282e VS |
73 | <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set> |
74 | <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set> | |
75 | </if> | |
76 | <if cond="FORMAT!='autoconf'"> | |
64a2a46f VS |
77 | <set var="WXNAMEPREFIX"> |
78 | wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR) | |
79 | </set> | |
80 | <set var="WXNAMEPREFIXGUI"> | |
81 | wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)</set> | |
cdc0282e VS |
82 | <set var="WXVERSIONTAG"></set> |
83 | </if> | |
4fc5f509 | 84 | <set var="WXDLLNAMEPREFIX"> |
64a2a46f VS |
85 | <if cond="PLATFORM_WIN32=='1'"> |
86 | wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR) | |
87 | </if> | |
4fc5f509 VS |
88 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if> |
89 | </set> | |
90 | <set var="WXDLLNAMEPREFIXGUI"> | |
91 | <if cond="PLATFORM_WIN32=='1'"> | |
92 | wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR) | |
93 | </if> | |
94 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)</if> | |
95 | </set> | |
96 | <set var="WXDLLVERSIONTAG"> | |
97 | <if cond="PLATFORM_WIN32=='1'"></if> | |
98 | <if cond="PLATFORM_WIN32=='0'">$(WXVERSIONTAG)</if> | |
99 | </set> | |
ddf98968 | 100 | |
ddf98968 VS |
101 | |
102 | <!-- =============================================================== --> | |
103 | <!-- Names of component libraries: --> | |
104 | <!-- =============================================================== --> | |
105 | ||
e86e1522 VS |
106 | <set var="WXLIB_BASE"> |
107 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if> | |
108 | </set> | |
ddf98968 VS |
109 | <set var="WXLIB_CORE"> |
110 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if> | |
111 | </set> | |
fab9850d | 112 | <set var="WXLIB_HTML"> |
e86e1522 | 113 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if> |
fab9850d | 114 | </set> |
ddf98968 VS |
115 | |
116 | <set var="WXLIB_MONO"> | |
117 | <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if> | |
118 | </set> | |
119 | ||
120 | ||
121 | <!-- =============================================================== --> | |
cff5df9f | 122 | <!-- Where to store built libraries and objects: --> |
ddf98968 | 123 | <!-- =============================================================== --> |
4843dc4c | 124 | |
cff5df9f VS |
125 | |
126 | <if cond="FORMAT!='autoconf'"> | |
127 | <set var="WXDLLFLAG"> | |
128 | <if cond="SHARED=='1'">dll</if> | |
129 | </set> | |
130 | <set var="CFG_NAME_PART"> | |
131 | $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
132 | </set> | |
bdb03aa9 | 133 | <set var="OBJS" make_var="1">$(COMPILER)_$(CFG_NAME_PART)</set> |
cff5df9f VS |
134 | <set var="BUILDDIR">$(OBJS)</set> |
135 | </if> | |
cff5df9f | 136 | |
ddf98968 | 137 | <set var="LIBDIRNAME"> |
481290e2 | 138 | <if cond="FORMAT=='autoconf'">$(top_builddir)lib</if> |
cff5df9f VS |
139 | <if cond="FORMAT!='autoconf'"> |
140 | $(TOP_SRCDIR)lib$(DIRSEP)$(COMPILER)_$(CFG_NAME_PART) | |
141 | </if> | |
ddf98968 | 142 | </set> |
cff5df9f | 143 | |
4843dc4c VS |
144 | |
145 | <!-- =============================================================== --> | |
146 | <!-- Templates for libs: --> | |
147 | <!-- =============================================================== --> | |
cdc0282e VS |
148 | |
149 | <set var="DEBUGFLAG"> | |
150 | <if cond="BUILD=='debug'">on</if> | |
151 | <if cond="BUILD=='release'">off</if> | |
152 | </set> | |
153 | <set var="OPTIMIZEFLAG"> | |
546a7e42 VS |
154 | <if cond="BUILD=='debug'">off</if> |
155 | <if cond="BUILD=='release'">speed</if> | |
cdc0282e | 156 | </set> |
15b44c69 VS |
157 | |
158 | <set var="DEBUG_DEFINE"> | |
159 | <if cond="FORMAT!='autoconf' and BUILD=='debug'">__WXDEBUG__</if> | |
160 | </set> | |
161 | <set var="UNICODE_DEFINE"> | |
162 | <if cond="FORMAT!='autoconf' and UNICODE=='1'">wxUSE_UNICODE=1</if> | |
163 | </set> | |
5e3746dc | 164 | |
149cc218 | 165 | <template id="common_settings"> |
5e3746dc VS |
166 | <debug-info>$(DEBUGFLAG)</debug-info> |
167 | <optimize>$(OPTIMIZEFLAG)</optimize> | |
168 | <threading>multi</threading> | |
4b44ea2b | 169 | <runtime-libs>$(RUNTIME_LIBS)</runtime-libs> |
5e3746dc VS |
170 | <if cond="FORMAT!='autoconf'"> |
171 | <cppflags>$(EXTRACFLAGS)</cppflags> | |
172 | </if> | |
173 | </template> | |
4843dc4c VS |
174 | |
175 | <template id="anylib"> | |
176 | <depends cond="FORMAT!='autoconf' and BUILDING_LIB=='1'">setup.h</depends> | |
177 | <dirname>$(LIBDIRNAME)</dirname> | |
178 | <install-to>$(LIBDIR)</install-to> | |
179 | </template> | |
180 | ||
149cc218 | 181 | <template id="3rdparty_lib" template="common_settings,anylib"> |
ea66c762 | 182 | <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname> |
82cb0280 VS |
183 | </template> |
184 | ||
ddf98968 VS |
185 | |
186 | <!-- =============================================================== --> | |
187 | <!-- 3rd party libs: --> | |
188 | <!-- =============================================================== --> | |
189 | ||
190 | <!-- 3rd party libraries: --> | |
191 | <include file="regex.bkl"/> | |
192 | <include file="zlib.bkl"/> | |
193 | <include file="png.bkl"/> | |
194 | <include file="jpeg.bkl"/> | |
195 | <include file="tiff.bkl"/> | |
196 | <include file="odbc.bkl"/> | |
197 | ||
198 | ||
199 | <!-- =============================================================== --> | |
200 | <!-- Templates for wxWindows libs: --> | |
201 | <!-- =============================================================== --> | |
cdc0282e | 202 | |
149cc218 | 203 | <template id="wx" template="common_settings"> |
ddf98968 VS |
204 | <set var="wxid">$(wxwin.mk_wxid(id))</set> |
205 | <define>__WX$(TOOLKIT)__</define> | |
206 | <define>$(WXUNIV_DEFINE)</define> | |
15b44c69 VS |
207 | <define>$(DEBUG_DEFINE)</define> |
208 | <define>$(UNICODE_DEFINE)</define> | |
4843dc4c | 209 | <include>$(TOP_SRCDIR)include</include> |
cdc0282e | 210 | <lib-path>$(LIBDIRNAME)</lib-path> |
4843dc4c VS |
211 | <include cond="FORMAT!='autoconf'">$(LIBDIRNAME)</include> |
212 | <include>$(INC_TIFF)</include> | |
213 | <include>$(INC_JPEG)</include> | |
214 | <include>$(INC_PNG)</include> | |
215 | <include>$(INC_ZLIB)</include> | |
216 | <include>$(INC_ODBC)</include> | |
217 | <include>$(INC_REGEX)</include> | |
ddf98968 VS |
218 | </template> |
219 | ||
c74dc163 | 220 | <!-- for both GUI and wxBase libs/samples: --> |
e83a52a2 | 221 | <template id="wx_append_base_nomono"> |
ddf98968 | 222 | <!-- link against builtin 3rd party libs, if needed: --> |
4843dc4c | 223 | <sys-lib>$(LIB_TIFF)</sys-lib> |
ddf98968 VS |
224 | <sys-lib>$(LIB_JPEG)</sys-lib> |
225 | <sys-lib>$(LIB_PNG)</sys-lib> | |
226 | <sys-lib>$(LIB_ZLIB)</sys-lib> | |
ddf98968 VS |
227 | <sys-lib>$(LIB_ODBC)</sys-lib> |
228 | <sys-lib>$(LIB_REGEX)</sys-lib> | |
15b44c69 VS |
229 | |
230 | <ldlibs>$(EXTRALIBS)</ldlibs> | |
231 | ||
232 | <!-- system libraries on windows: --> | |
233 | <if cond="FORMAT!='autoconf'"> | |
234 | <if cond="COMPILER=='bcc'"> | |
235 | <sys-lib>import32</sys-lib> | |
cb8bbc13 VS |
236 | <sys-lib>ole2w32</sys-lib> |
237 | </if> | |
238 | <if cond="COMPILER!='bcc'"> | |
239 | <sys-lib>kernel32</sys-lib> | |
240 | <sys-lib>user32</sys-lib> | |
241 | <sys-lib>gdi32</sys-lib> | |
242 | <sys-lib>comdlg32</sys-lib> | |
243 | <sys-lib>winspool</sys-lib> | |
244 | <sys-lib>winmm</sys-lib> | |
245 | <sys-lib>shell32</sys-lib> | |
cb8bbc13 VS |
246 | <sys-lib>comctl32</sys-lib> |
247 | <sys-lib>odbc32</sys-lib> | |
248 | <sys-lib>ole32</sys-lib> | |
249 | <sys-lib>oleaut32</sys-lib> | |
250 | <sys-lib>uuid</sys-lib> | |
251 | <sys-lib>rpcrt4</sys-lib> | |
252 | <sys-lib>advapi32</sys-lib> | |
253 | <sys-lib>wsock32</sys-lib> | |
15b44c69 VS |
254 | </if> |
255 | </if> | |
ddf98968 VS |
256 | </template> |
257 | ||
c74dc163 | 258 | <!-- for GUI libs/samples: --> |
e83a52a2 | 259 | <template id="wx_append_nomono" template="wx_append_base_nomono"> |
c74dc163 VS |
260 | <ldlibs>$(EXTRALIBS_GUI)</ldlibs> |
261 | </template> | |
262 | ||
e83a52a2 VS |
263 | |
264 | <template id="wx_append_base" template_append="wx_append_base_nomono"> | |
265 | <!-- Always link against the wxWin library in monolithic build: --> | |
266 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
267 | </template> | |
268 | <template id="wx_append" template_append="wx_append_nomono"> | |
269 | <!-- Always link against the wxWin library in monolithic build: --> | |
270 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
271 | </template> | |
272 | ||
273 | ||
4843dc4c | 274 | <template id="wx_lib_b" template="wx,anylib"> |
ddf98968 | 275 | <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set> |
ddf98968 | 276 | <libname>$(WXLIBNAME)</libname> |
cb8bbc13 VS |
277 | |
278 | <if cond="FORMAT!='autoconf'"> | |
c3b14ba4 VS |
279 | <sources>$(WXTOPDIR)src/msw/dummy.cpp</sources> |
280 | <precomp-headers-gen> | |
281 | $(WXTOPDIR)src/msw/dummy.cpp | |
282 | </precomp-headers-gen> | |
cb8bbc13 VS |
283 | </if> |
284 | <precomp-headers-header>wx/wxprec.h</precomp-headers-header> | |
cdc0282e | 285 | <precomp-headers>on</precomp-headers> |
cb8bbc13 | 286 | <precomp-headers-file>wxprec_$(id)</precomp-headers-file> |
ddf98968 | 287 | </template> |
cb8bbc13 | 288 | |
fab9850d | 289 | <template id="wx_dll_b" template="wx_lib_b"> |
ddf98968 VS |
290 | <set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set> |
291 | <dllname>$(WXDLLNAME)</dllname> | |
292 | <version>$(WX_VERSION)</version> | |
293 | <so_version>$(WXSOVERSION)</so_version> | |
294 | <mac_version>$(WXMACVERSION)</mac_version> | |
295 | </template> | |
c0608865 | 296 | |
fab9850d | 297 | <template id="wx_lib" template="wx_lib_b"/> |
c74dc163 | 298 | <template id="wx_base_lib" template="wx_lib_b"/> |
e83a52a2 VS |
299 | <template id="wx_dll" template="wx_dll_b" |
300 | template_append="wx_append_nomono"> | |
15b44c69 VS |
301 | <depends>wxtiff</depends> |
302 | <depends>wxjpeg</depends> | |
303 | <depends>wxpng</depends> | |
304 | <depends>wxzlib</depends> | |
305 | <depends cond="FORMAT=='autoconf'">wxodbc</depends> | |
306 | <depends>wxregex</depends> | |
307 | </template> | |
c74dc163 | 308 | <template id="wx_base_dll" template="wx_dll_b" |
e83a52a2 | 309 | template_append="wx_append_base_nomono"> |
c74dc163 VS |
310 | <depends>wxzlib</depends> |
311 | <depends>wxregex</depends> | |
312 | </template> | |
c0608865 | 313 | |
ddf98968 VS |
314 | <!-- =============================================================== --> |
315 | <!-- Support for wxWindows samples and contrib: --> | |
316 | <!-- =============================================================== --> | |
317 | ||
318 | <!-- Link against one wxWin library. Value must be literal! --> | |
319 | <define-tag name="wx-lib" rules="exe,dll"> | |
320 | <sys-lib>$(wxwin.libToLink(value))</sys-lib> | |
321 | </define-tag> | |
322 | ||
323 | </makefile> |