]>
Commit | Line | Data |
---|---|---|
ddf98968 | 1 | <?xml version="1.0" ?> |
481290e2 VS |
2 | <!-- $Id$ --> |
3 | ||
ddf98968 | 4 | <makefile> |
b6dc1b90 VS |
5 | |
6 | <requires version="0.1.3"/> | |
c0608865 | 7 | |
ddf98968 VS |
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"/> | |
c79241a2 VS |
15 | |
16 | <include file="plugins_deps.bkl"/> | |
ddf98968 VS |
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> | |
ca58c9bb VS |
25 | <set var="WX_VERSION" make_var="1"> |
26 | $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE) | |
27 | </set> | |
ddf98968 | 28 | |
bdc408c4 VS |
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> | |
ddf98968 | 35 | <set var="WXMACVERSION">$(WX_VERSION)</set> |
bdc408c4 VS |
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> | |
ddf98968 VS |
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> | |
64a2a46f VS |
50 | |
51 | <set var="WXBASEPORT"> | |
52 | <if cond="TOOLKIT=='MAC'">_carbon</if> | |
53 | </set> | |
ddf98968 VS |
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> | |
4fc5f509 VS |
62 | |
63 | <set var="VENDORTAG"> | |
cff5df9f VS |
64 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if> |
65 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if> | |
4fc5f509 VS |
66 | </set> |
67 | ||
ddf98968 | 68 | <set var="WXDEBUGFLAG"> |
4f6e1dac VS |
69 | <if cond="BUILD=='debug' and DEBUG_FLAG=='default'">d</if> |
70 | <if cond="DEBUG_FLAG=='1'">d</if> | |
ddf98968 VS |
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 | ||
cdc0282e | 86 | <if cond="FORMAT=='autoconf'"> |
64a2a46f | 87 | <set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set> |
cdc0282e VS |
88 | <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set> |
89 | <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set> | |
90 | </if> | |
91 | <if cond="FORMAT!='autoconf'"> | |
64a2a46f VS |
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> | |
cdc0282e VS |
97 | <set var="WXVERSIONTAG"></set> |
98 | </if> | |
4fc5f509 | 99 | <set var="WXDLLNAMEPREFIX"> |
64a2a46f | 100 | <if cond="PLATFORM_WIN32=='1'"> |
bdc408c4 | 101 | wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION) |
64a2a46f | 102 | </if> |
4fc5f509 VS |
103 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if> |
104 | </set> | |
105 | <set var="WXDLLNAMEPREFIXGUI"> | |
106 | <if cond="PLATFORM_WIN32=='1'"> | |
bdc408c4 | 107 | wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION) |
4fc5f509 VS |
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> | |
ddf98968 | 115 | |
ddf98968 VS |
116 | |
117 | <!-- =============================================================== --> | |
118 | <!-- Names of component libraries: --> | |
119 | <!-- =============================================================== --> | |
120 | ||
e86e1522 VS |
121 | <set var="WXLIB_BASE"> |
122 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if> | |
123 | </set> | |
7c4728f6 VS |
124 | <set var="WXLIB_NET"> |
125 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if> | |
126 | </set> | |
ddf98968 VS |
127 | <set var="WXLIB_CORE"> |
128 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if> | |
129 | </set> | |
13cb46e0 VS |
130 | <set var="WXLIB_ADV"> |
131 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))</if> | |
132 | </set> | |
fab9850d | 133 | <set var="WXLIB_HTML"> |
e86e1522 | 134 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if> |
fab9850d | 135 | </set> |
a69544bf VS |
136 | <set var="WXLIB_XML"> |
137 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if> | |
138 | </set> | |
bb41dcbe | 139 | <set var="WXLIB_ODBC"> |
395a1c56 VS |
140 | <if cond="MONOLITHIC=='0' and USE_ODBC=='1'"> |
141 | $(mk.evalExpr(wxwin.mkLibName('odbc'))) | |
142 | </if> | |
bb41dcbe | 143 | </set> |
45293562 VS |
144 | <set var="WXLIB_DBGRID"> |
145 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))</if> | |
146 | </set> | |
ddf98968 VS |
147 | |
148 | <set var="WXLIB_MONO"> | |
149 | <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if> | |
150 | </set> | |
151 | ||
152 | ||
153 | <!-- =============================================================== --> | |
cff5df9f | 154 | <!-- Where to store built libraries and objects: --> |
ddf98968 | 155 | <!-- =============================================================== --> |
4843dc4c | 156 | |
cff5df9f VS |
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> | |
328f5196 VS |
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 | ||
cff5df9f VS |
172 | <set var="BUILDDIR">$(OBJS)</set> |
173 | </if> | |
cff5df9f | 174 | |
390c0cfb | 175 | <set var="LIBDIRNAME" make_var="1"> |
481290e2 | 176 | <if cond="FORMAT=='autoconf'">$(top_builddir)lib</if> |
ee929bcf VS |
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) | |
cff5df9f | 182 | </if> |
ddf98968 | 183 | </set> |
ee929bcf VS |
184 | |
185 | <if cond="FORMAT!='autoconf'"> | |
186 | <set var="SETUPHDIR" make_var="1"> | |
187 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
188 | </set> | |
189 | </if> | |
190 | ||
cff5df9f | 191 | |
4843dc4c VS |
192 | |
193 | <!-- =============================================================== --> | |
194 | <!-- Templates for libs: --> | |
195 | <!-- =============================================================== --> | |
cdc0282e | 196 | |
4f6e1dac VS |
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> | |
cdc0282e VS |
207 | </set> |
208 | <set var="OPTIMIZEFLAG"> | |
546a7e42 VS |
209 | <if cond="BUILD=='debug'">off</if> |
210 | <if cond="BUILD=='release'">speed</if> | |
cdc0282e | 211 | </set> |
9833a21a VS |
212 | <set var="EXCEPTIONSFLAG"> |
213 | <if cond="USE_EXCEPTIONS=='1'">on</if> | |
214 | <if cond="USE_EXCEPTIONS=='0'">off</if> | |
215 | </set> | |
15b44c69 VS |
216 | |
217 | <set var="DEBUG_DEFINE"> | |
4f6e1dac VS |
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> | |
15b44c69 | 220 | </set> |
4435bd42 MB |
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> | |
15b44c69 | 226 | <set var="UNICODE_DEFINE"> |
ed4ccecd | 227 | <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if> |
15b44c69 | 228 | </set> |
416f5bc8 VS |
229 | |
230 | <set var="UNICOWS_LIB"> | |
231 | <if cond="MSLU=='1'">unicows</if> | |
232 | </set> | |
5e3746dc | 233 | |
149cc218 | 234 | <template id="common_settings"> |
4f6e1dac VS |
235 | <debug-info>$(DEBUGINFO)</debug-info> |
236 | <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs> | |
5e3746dc VS |
237 | <optimize>$(OPTIMIZEFLAG)</optimize> |
238 | <threading>multi</threading> | |
4b44ea2b | 239 | <runtime-libs>$(RUNTIME_LIBS)</runtime-libs> |
9833a21a VS |
240 | <cxx-rtti>$(EXCEPTIONSFLAG)</cxx-rtti> |
241 | <cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions> | |
5e3746dc VS |
242 | <if cond="FORMAT!='autoconf'"> |
243 | <cppflags>$(EXTRACFLAGS)</cppflags> | |
244 | </if> | |
4435bd42 | 245 | <define>$(NO_VC_CRTDBG)</define> |
5e3746dc | 246 | </template> |
4843dc4c VS |
247 | |
248 | <template id="anylib"> | |
4843dc4c VS |
249 | <dirname>$(LIBDIRNAME)</dirname> |
250 | <install-to>$(LIBDIR)</install-to> | |
251 | </template> | |
252 | ||
149cc218 | 253 | <template id="3rdparty_lib" template="common_settings,anylib"> |
ea66c762 | 254 | <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname> |
52a5a009 VS |
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> | |
82cb0280 | 260 | </template> |
cb9548d9 VS |
261 | |
262 | ||
263 | <!-- deal with the need to copy setup.h here: --> | |
82cb0280 | 264 | |
cb9548d9 VS |
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> | |
ddf98968 VS |
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"/> | |
a69544bf | 304 | <include file="expat.bkl"/> |
ddf98968 VS |
305 | |
306 | ||
307 | <!-- =============================================================== --> | |
308 | <!-- Templates for wxWindows libs: --> | |
309 | <!-- =============================================================== --> | |
cdc0282e | 310 | |
149cc218 | 311 | <template id="wx" template="common_settings"> |
ddf98968 VS |
312 | <set var="wxid">$(wxwin.mk_wxid(id))</set> |
313 | <define>__WX$(TOOLKIT)__</define> | |
314 | <define>$(WXUNIV_DEFINE)</define> | |
15b44c69 VS |
315 | <define>$(DEBUG_DEFINE)</define> |
316 | <define>$(UNICODE_DEFINE)</define> | |
85ebb95c VS |
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> | |
cdc0282e | 320 | <lib-path>$(LIBDIRNAME)</lib-path> |
ee929bcf | 321 | <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include> |
432afc17 | 322 | <warnings>max</warnings> |
ddf98968 VS |
323 | </template> |
324 | ||
c74dc163 | 325 | <!-- for both GUI and wxBase libs/samples: --> |
e83a52a2 | 326 | <template id="wx_append_base_nomono"> |
ddf98968 | 327 | <!-- link against builtin 3rd party libs, if needed: --> |
4843dc4c | 328 | <sys-lib>$(LIB_TIFF)</sys-lib> |
ddf98968 VS |
329 | <sys-lib>$(LIB_JPEG)</sys-lib> |
330 | <sys-lib>$(LIB_PNG)</sys-lib> | |
331 | <sys-lib>$(LIB_ZLIB)</sys-lib> | |
ddf98968 VS |
332 | <sys-lib>$(LIB_ODBC)</sys-lib> |
333 | <sys-lib>$(LIB_REGEX)</sys-lib> | |
a69544bf | 334 | <sys-lib>$(LIB_EXPAT)</sys-lib> |
15b44c69 VS |
335 | |
336 | <ldlibs>$(EXTRALIBS)</ldlibs> | |
337 | ||
338 | <!-- system libraries on windows: --> | |
339 | <if cond="FORMAT!='autoconf'"> | |
416f5bc8 | 340 | <sys-lib>$(UNICOWS_LIB)</sys-lib> |
328f5196 | 341 | <if cond="FORMAT=='borland'"> |
cb8bbc13 VS |
342 | <sys-lib>ole2w32</sys-lib> |
343 | </if> | |
b231f959 | 344 | <if cond="FORMAT!='borland'"> |
cb8bbc13 VS |
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> | |
cb8bbc13 | 352 | <sys-lib>comctl32</sys-lib> |
cb8bbc13 VS |
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> | |
15b44c69 | 359 | </if> |
57670219 | 360 | <if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'"> |
3682ea7d VS |
361 | <sys-lib>oleacc</sys-lib> |
362 | </if> | |
bfca9534 | 363 | <sys-lib>odbc32</sys-lib> |
57670219 | 364 | </if> |
ddf98968 VS |
365 | </template> |
366 | ||
82ca3afe | 367 | |
c74dc163 | 368 | <!-- for GUI libs/samples: --> |
e83a52a2 | 369 | <template id="wx_append_nomono" template="wx_append_base_nomono"> |
c74dc163 VS |
370 | <ldlibs>$(EXTRALIBS_GUI)</ldlibs> |
371 | </template> | |
372 | ||
e83a52a2 VS |
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 | ||
0469579d VS |
384 | <set var="WX_DISABLE_PRECOMP_HEADERS" overwrite="0">0</set> |
385 | ||
4843dc4c | 386 | <template id="wx_lib_b" template="wx,anylib"> |
ddf98968 | 387 | <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set> |
ddf98968 | 388 | <libname>$(WXLIBNAME)</libname> |
cb8bbc13 | 389 | |
0469579d VS |
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> | |
3fe70739 VS |
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> | |
cb8bbc13 | 406 | </if> |
82ca3afe VS |
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> | |
82ca3afe VS |
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> | |
cbba971f | 419 | <msvc-file-group>Common Headers:*wx/*.h</msvc-file-group> |
82ca3afe | 420 | </if> |
ddf98968 | 421 | </template> |
cb8bbc13 | 422 | |
fab9850d | 423 | <template id="wx_dll_b" template="wx_lib_b"> |
ddf98968 VS |
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> | |
c0608865 | 430 | |
5c802b3d | 431 | <template id="wx_3rdparty_dependencies"> |
3fe70739 VS |
432 | <depends>wxtiff</depends> |
433 | <depends>wxjpeg</depends> | |
434 | <depends>wxpng</depends> | |
390c0cfb | 435 | <depends>wxexpat</depends> |
c74dc163 | 436 | <depends>wxzlib</depends> |
3fe70739 | 437 | <depends cond="FORMAT=='autoconf'">wxodbc</depends> |
c74dc163 VS |
438 | <depends>wxregex</depends> |
439 | </template> | |
ee929bcf VS |
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> | |
c0608865 | 450 | |
9698d244 VS |
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"> | |
15d93f1e VS |
455 | <define>wxUSE_GUI=0</define> |
456 | </template> | |
457 | ||
ee929bcf VS |
458 | <template id="wx_dll" |
459 | template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes" | |
9698d244 | 460 | template_append="msvc_setup_h,wx_append_nomono"/> |
ee929bcf VS |
461 | <template id="wx_base_dll" |
462 | template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes" | |
9698d244 | 463 | template_append="msvc_setup_h,wx_append_base_nomono"> |
15d93f1e VS |
464 | <define>wxUSE_GUI=0</define> |
465 | </template> | |
ae4ae157 VS |
466 | |
467 | <!-- =============================================================== --> | |
468 | <!-- Templates for building wxWindows plugins: --> | |
469 | <!-- =============================================================== --> | |
470 | ||
ae4ae157 | 471 | <if cond="WX_STABLE_BRANCH=='1'"> |
c79241a2 | 472 | <set var="PLUGIN_VERSION0"> |
ae4ae157 | 473 | <if cond="PLATFORM_UNIX=='1'"> |
c79241a2 | 474 | $(WXVER_MAJOR).$(WXVER_MINOR) |
ae4ae157 VS |
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'"> | |
c79241a2 | 482 | <set var="PLUGIN_VERSION0"> |
ae4ae157 | 483 | <if cond="PLATFORM_UNIX=='1'"> |
c79241a2 | 484 | $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE) |
ae4ae157 VS |
485 | </if> |
486 | <if cond="PLATFORM_UNIX=='0'"> | |
487 | $(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE) | |
488 | </if> | |
489 | </set> | |
490 | </if> | |
c79241a2 VS |
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> | |
ae4ae157 VS |
507 | |
508 | <define-rule name="wx-base-plugin" extends="module"> | |
509 | <template> | |
510 | <dllname> | |
c79241a2 | 511 | $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER) |
ae4ae157 VS |
512 | </dllname> |
513 | <define>WXUSINGDLL</define> | |
15d93f1e | 514 | <define>wxUSE_GUI=0</define> |
c79241a2 | 515 | <install-to>$(PLUGINS_INST_DIR)</install-to> |
ae4ae157 VS |
516 | </template> |
517 | </define-rule> | |
518 | ||
519 | <define-rule name="wx-gui-plugin" extends="module"> | |
520 | <template template="wx"> | |
521 | <dllname> | |
c79241a2 | 522 | $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER) |
ae4ae157 VS |
523 | </dllname> |
524 | <define>WXUSINGDLL</define> | |
c79241a2 | 525 | <install-to>$(PLUGINS_INST_DIR)</install-to> |
ae4ae157 VS |
526 | </template> |
527 | </define-rule> | |
5c802b3d | 528 | |
ddf98968 VS |
529 | <!-- =============================================================== --> |
530 | <!-- Support for wxWindows samples and contrib: --> | |
531 | <!-- =============================================================== --> | |
532 | ||
533 | <!-- Link against one wxWin library. Value must be literal! --> | |
485a205e | 534 | <define-tag name="wx-lib" rules="exe,dll,module"> |
ddf98968 | 535 | <sys-lib>$(wxwin.libToLink(value))</sys-lib> |
22cef566 | 536 | <ldlibs>$(wxwin.extraLdflags(value))</ldlibs> |
dce0742b VS |
537 | <if cond="FORMAT=='msvc6prj' and MONOLITHIC=='0'"> |
538 | <depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp> | |
7bd54b68 | 539 | </if> |
ddf98968 VS |
540 | </define-tag> |
541 | ||
4bae0a94 VS |
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 | ||
ddf98968 | 549 | </makefile> |