]> git.saurik.com Git - wxWidgets.git/blame - build/bakefiles/common.bkl
added some missing mac headers
[wxWidgets.git] / build / bakefiles / common.bkl
CommitLineData
ddf98968 1<?xml version="1.0" ?>
481290e2
VS
2<!-- $Id$ -->
3
ddf98968 4<makefile>
b6dc1b90 5
a63d2334 6 <requires version="0.1.4"/>
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 <!-- ================================================================== -->
77ffb593 19 <!-- wxWidgets version numbers: -->
ddf98968
VS
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>
ceec2216
RL
28 <set var="WX_RELEASE" make_var="1">
29 $(WXVER_MAJOR).$(WXVER_MINOR)
30 </set>
ddf98968 31
bdc408c4
VS
32 <set var="WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) % 2 == 0))</set>
33
34 <set var="WXSOVERSION">
35 <if cond="WX_STABLE_BRANCH=='1'">0.0.0</if>
36 <if cond="WX_STABLE_BRANCH=='0'">$(WXVER_RELEASE).0.0</if>
37 </set>
ddf98968 38 <set var="WXMACVERSION">$(WX_VERSION)</set>
bdc408c4
VS
39 <set var="WXWIN32DLLVERSION">
40 <if cond="WX_STABLE_BRANCH=='1'">$(WXVER_MAJOR)$(WXVER_MINOR)</if>
41 <if cond="WX_STABLE_BRANCH=='0'">$(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE)</if>
42 </set>
ddf98968
VS
43
44
45 <!-- ================================================================== -->
46 <!-- Names of libraries and DLLs: -->
47 <!-- ================================================================== -->
48
49 <set var="PORTNAME">
50 <if cond="USE_GUI=='0'">base</if>
51 <if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if>
52 </set>
64a2a46f
VS
53
54 <set var="WXBASEPORT">
55 <if cond="TOOLKIT=='MAC'">_carbon</if>
56 </set>
ddf98968
VS
57
58 <set var="COMPILERORGCC">
59 <if cond="isdefined('COMPILER')">$(COMPILER)</if>
60 <if cond="not isdefined('COMPILER')">gcc</if>
61 </set>
62 <set var="WXCOMPILER">
63 <if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if>
64 </set>
4fc5f509
VS
65
66 <set var="VENDORTAG">
cff5df9f
VS
67 <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if>
68 <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if>
4fc5f509
VS
69 </set>
70
ddf98968 71 <set var="WXDEBUGFLAG">
4f6e1dac
VS
72 <if cond="BUILD=='debug' and DEBUG_FLAG=='default'">d</if>
73 <if cond="DEBUG_FLAG=='1'">d</if>
ddf98968
VS
74 </set>
75 <set var="WXUNICODEFLAG">
af594eca
VS
76 <!-- WinCE is Unicode-only platform: -->
77 <if cond="UNICODE=='1' and FORMAT!='msevc4prj'">u</if>
ddf98968
VS
78 </set>
79 <set var="WXNAMESUFFIX">
ceec2216 80 $(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
ddf98968
VS
81 </set>
82
83 <set var="WXUNIVNAME">
84 <if cond="WXUNIV=='1'">univ</if>
85 </set>
86 <set var="WXUNIV_DEFINE">
87 <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if>
88 </set>
89
cdc0282e 90 <if cond="FORMAT=='autoconf'">
64a2a46f 91 <set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set>
cdc0282e
VS
92 <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set>
93 <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set>
94 </if>
95 <if cond="FORMAT!='autoconf'">
64a2a46f
VS
96 <set var="WXNAMEPREFIX">
97 wxbase$(WXBASEPORT)$(WXVER_MAJOR)$(WXVER_MINOR)
98 </set>
99 <set var="WXNAMEPREFIXGUI">
100 wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)</set>
cdc0282e
VS
101 <set var="WXVERSIONTAG"></set>
102 </if>
4fc5f509 103 <set var="WXDLLNAMEPREFIX">
64a2a46f 104 <if cond="PLATFORM_WIN32=='1'">
bdc408c4 105 wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION)
64a2a46f 106 </if>
4fc5f509
VS
107 <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if>
108 </set>
109 <set var="WXDLLNAMEPREFIXGUI">
110 <if cond="PLATFORM_WIN32=='1'">
bdc408c4 111 wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION)
4fc5f509
VS
112 </if>
113 <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)</if>
114 </set>
115 <set var="WXDLLVERSIONTAG">
116 <if cond="PLATFORM_WIN32=='1'"></if>
117 <if cond="PLATFORM_WIN32=='0'">$(WXVERSIONTAG)</if>
118 </set>
ddf98968 119
ddf98968
VS
120
121 <!-- =============================================================== -->
122 <!-- Names of component libraries: -->
123 <!-- =============================================================== -->
124
e86e1522
VS
125 <set var="WXLIB_BASE">
126 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if>
127 </set>
7c4728f6
VS
128 <set var="WXLIB_NET">
129 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if>
130 </set>
ddf98968
VS
131 <set var="WXLIB_CORE">
132 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if>
133 </set>
13cb46e0
VS
134 <set var="WXLIB_ADV">
135 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('adv')))</if>
136 </set>
fab9850d 137 <set var="WXLIB_HTML">
e86e1522 138 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if>
fab9850d 139 </set>
a69544bf
VS
140 <set var="WXLIB_XML">
141 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if>
142 </set>
a62d8849
WS
143 <set var="WXLIB_XRC">
144 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xrc')))</if>
145 </set>
bb41dcbe 146 <set var="WXLIB_ODBC">
395a1c56
VS
147 <if cond="MONOLITHIC=='0' and USE_ODBC=='1'">
148 $(mk.evalExpr(wxwin.mkLibName('odbc')))
149 </if>
bb41dcbe 150 </set>
45293562
VS
151 <set var="WXLIB_DBGRID">
152 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))</if>
153 </set>
ddf98968
VS
154
155 <set var="WXLIB_MONO">
156 <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if>
157 </set>
158
159
160 <!-- =============================================================== -->
cff5df9f 161 <!-- Where to store built libraries and objects: -->
ddf98968 162 <!-- =============================================================== -->
4843dc4c 163
af594eca
VS
164 <set var="DIR_SUFFIX_CPU">
165 <if cond="FORMAT=='msevc4prj'">_$(CPU)</if>
166 </set>
cff5df9f
VS
167
168 <if cond="FORMAT!='autoconf'">
169 <set var="WXDLLFLAG">
170 <if cond="SHARED=='1'">dll</if>
171 </set>
172 <set var="CFG_NAME_PART">
173 $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
174 </set>
328f5196 175 <set var="OBJS" make_var="1">
af594eca
VS
176 <if cond="FORMAT!='cbuilderx'">
177 $(COMPILER)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU)
178 </if>
328f5196
VS
179 <!-- FIXME: waiting for removal after CBX has better ../ dirs
180 support -->
181 <if cond="FORMAT=='cbuilderx'">build_cbx_$(CFG_NAME_PART)</if>
182 </set>
183
cff5df9f
VS
184 <set var="BUILDDIR">$(OBJS)</set>
185 </if>
cff5df9f 186
390c0cfb 187 <set var="LIBDIRNAME" make_var="1">
481290e2 188 <if cond="FORMAT=='autoconf'">$(top_builddir)lib</if>
ee929bcf 189 <if cond="FORMAT!='autoconf' and SHARED=='0'">
af594eca 190 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_lib$(CFG)
ee929bcf
VS
191 </if>
192 <if cond="FORMAT!='autoconf' and SHARED=='1'">
af594eca 193 $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)$(DIR_SUFFIX_CPU)_dll$(CFG)
cff5df9f 194 </if>
ddf98968 195 </set>
ee929bcf
VS
196
197 <if cond="FORMAT!='autoconf'">
198 <set var="SETUPHDIR" make_var="1">
199 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
200 </set>
201 </if>
202
cff5df9f 203
4843dc4c
VS
204
205 <!-- =============================================================== -->
206 <!-- Templates for libs: -->
207 <!-- =============================================================== -->
cdc0282e 208
4f6e1dac
VS
209 <set var="DEBUGINFO">
210 <if cond="BUILD=='debug' and DEBUG_INFO=='default'">on</if>
211 <if cond="DEBUG_INFO=='1'">on</if>
212 <if cond="BUILD=='release' and DEBUG_INFO=='default'">off</if>
213 <if cond="DEBUG_INFO=='0'">off</if>
214 </set>
215 <set var="DEBUGRUNTIME">
216 <if cond="DEBUG_RUNTIME_LIBS=='default'">$(DEBUGINFO)</if>
217 <if cond="DEBUG_RUNTIME_LIBS=='0'">off</if>
218 <if cond="DEBUG_RUNTIME_LIBS=='1'">on</if>
cdc0282e
VS
219 </set>
220 <set var="OPTIMIZEFLAG">
546a7e42
VS
221 <if cond="BUILD=='debug'">off</if>
222 <if cond="BUILD=='release'">speed</if>
cdc0282e 223 </set>
9833a21a
VS
224 <set var="EXCEPTIONSFLAG">
225 <if cond="USE_EXCEPTIONS=='1'">on</if>
226 <if cond="USE_EXCEPTIONS=='0'">off</if>
227 </set>
15b44c69
VS
228
229 <set var="DEBUG_DEFINE">
4f6e1dac
VS
230 <if cond="FORMAT!='autoconf' and BUILD=='debug' and DEBUG_FLAG=='default'">__WXDEBUG__</if>
231 <if cond="FORMAT!='autoconf' and DEBUG_FLAG=='1'">__WXDEBUG__</if>
15b44c69 232 </set>
4435bd42
MB
233 <!-- does not cover all cases, but better than nothing -->
234 <set var="NO_VC_CRTDBG">
235 <if cond="FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__</if>
236 <if cond="FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__</if>
237 </set>
15b44c69 238 <set var="UNICODE_DEFINE">
ed4ccecd 239 <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if>
15b44c69 240 </set>
416f5bc8
VS
241
242 <set var="UNICOWS_LIB">
243 <if cond="MSLU=='1'">unicows</if>
244 </set>
5e3746dc 245
149cc218 246 <template id="common_settings">
4f6e1dac
VS
247 <debug-info>$(DEBUGINFO)</debug-info>
248 <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs>
5e3746dc
VS
249 <optimize>$(OPTIMIZEFLAG)</optimize>
250 <threading>multi</threading>
4b44ea2b 251 <runtime-libs>$(RUNTIME_LIBS)</runtime-libs>
9833a21a
VS
252 <cxx-rtti>$(EXCEPTIONSFLAG)</cxx-rtti>
253 <cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions>
5e3746dc
VS
254 <if cond="FORMAT!='autoconf'">
255 <cppflags>$(EXTRACFLAGS)</cppflags>
256 </if>
4435bd42 257 <define>$(NO_VC_CRTDBG)</define>
5e3746dc 258 </template>
4843dc4c
VS
259
260 <template id="anylib">
4843dc4c
VS
261 <dirname>$(LIBDIRNAME)</dirname>
262 <install-to>$(LIBDIR)</install-to>
263 </template>
264
149cc218 265 <template id="3rdparty_lib" template="common_settings,anylib">
ceec2216 266 <libname>$(id)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)</libname>
52a5a009
VS
267 <!--
268 we want to install 3rd party libs system-wide only with static
77ffb593 269 version of wxWidgets; otherwise they are embedded in shared libs:
52a5a009
VS
270 -->
271 <install-if>SHARED=='0'</install-if>
af594eca 272 <pic>$(substituteFromDict(SHARED, {'0':'off', '1':'on'}))</pic>
82cb0280 273 </template>
cb9548d9
VS
274
275
276 <!-- deal with the need to copy setup.h here: -->
82cb0280 277
af594eca
VS
278 <set var="IS_MSVC_PRJ">$(FORMAT in ['msvc6prj','msevc4prj'])</set>
279
cb9548d9 280 <define-tag name="msvc-headers" rules="dll,lib">
af594eca 281 <if cond="IS_MSVC_PRJ">
cb9548d9
VS
282 <msvc-project-files>
283 $(addPrefixToList('include\', wxwin.headersOnly(value)))
284 </msvc-project-files>
285 </if>
286 </define-tag>
287
288 <define-tag name="msvc-copy-setup-h" rules="dll,lib">
af594eca
VS
289 <if cond="FORMAT=='msevc4prj'">
290 <msvc-headers>wx/msw/wince/setup.h</msvc-headers>
291 <set var="vc_setup_h">wince\setup.h</set>
292 <set var="vc_setup_h_rule">wince_setup_h</set>
293 </if>
294 <if cond="FORMAT!='msevc4prj'">
cb9548d9 295 <msvc-headers>wx/msw/setup.h</msvc-headers>
af594eca
VS
296 <set var="vc_setup_h">setup.h</set>
297 <set var="vc_setup_h_rule">setup_h</set>
298 </if>
299 <if cond="IS_MSVC_PRJ">
300 <set var="_custom_build_files" append="1">
301 include\wx\msw\$(vc_setup_h)
cb9548d9 302 </set>
af594eca 303 <set var="_custom_build_include_wx_msw_$(vc_setup_h_rule)">
cb9548d9 304Creating $(SETUPHDIR)\wx\setup.h
af594eca 305InputPath=..\include\wx\msw\$(vc_setup_h)
cb9548d9
VS
306
307"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
308$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
309 </set>
310 </if>
311 </define-tag>
312
313 <template id="msvc_setup_h">
314 <msvc-copy-setup-h/>
315 </template>
ddf98968
VS
316
317 <!-- =============================================================== -->
318 <!-- 3rd party libs: -->
319 <!-- =============================================================== -->
320
321 <!-- 3rd party libraries: -->
322 <include file="regex.bkl"/>
323 <include file="zlib.bkl"/>
324 <include file="png.bkl"/>
325 <include file="jpeg.bkl"/>
326 <include file="tiff.bkl"/>
327 <include file="odbc.bkl"/>
a69544bf 328 <include file="expat.bkl"/>
ddf98968
VS
329
330
331 <!-- =============================================================== -->
77ffb593 332 <!-- Templates for wxWidgets libs: -->
ddf98968 333 <!-- =============================================================== -->
cdc0282e 334
149cc218 335 <template id="wx" template="common_settings">
ddf98968
VS
336 <set var="wxid">$(wxwin.mk_wxid(id))</set>
337 <define>__WX$(TOOLKIT)__</define>
338 <define>$(WXUNIV_DEFINE)</define>
15b44c69
VS
339 <define>$(DEBUG_DEFINE)</define>
340 <define>$(UNICODE_DEFINE)</define>
85ebb95c
VS
341 <!-- this include is added by configure, we need to put other
342 includes before it: -->
343 <include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
cdc0282e 344 <lib-path>$(LIBDIRNAME)</lib-path>
ee929bcf 345 <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
432afc17 346 <warnings>max</warnings>
ddf98968
VS
347 </template>
348
c74dc163 349 <!-- for both GUI and wxBase libs/samples: -->
e83a52a2 350 <template id="wx_append_base_nomono">
ddf98968 351 <!-- link against builtin 3rd party libs, if needed: -->
4843dc4c 352 <sys-lib>$(LIB_TIFF)</sys-lib>
ddf98968
VS
353 <sys-lib>$(LIB_JPEG)</sys-lib>
354 <sys-lib>$(LIB_PNG)</sys-lib>
355 <sys-lib>$(LIB_ZLIB)</sys-lib>
ddf98968
VS
356 <sys-lib>$(LIB_ODBC)</sys-lib>
357 <sys-lib>$(LIB_REGEX)</sys-lib>
a69544bf 358 <sys-lib>$(LIB_EXPAT)</sys-lib>
15b44c69
VS
359
360 <ldlibs>$(EXTRALIBS)</ldlibs>
361
362 <!-- system libraries on windows: -->
363 <if cond="FORMAT!='autoconf'">
416f5bc8 364 <sys-lib>$(UNICOWS_LIB)</sys-lib>
328f5196 365 <if cond="FORMAT=='borland'">
cb8bbc13
VS
366 <sys-lib>ole2w32</sys-lib>
367 </if>
f9c4805a
VS
368 <if cond="FORMAT=='msevc4prj'">
369 <sys-lib>ole32</sys-lib>
370 <sys-lib>oleaut32</sys-lib>
371 <sys-lib>uuid</sys-lib>
372 <sys-lib>commctrl</sys-lib>
f9c4805a
VS
373 <sys-lib>winsock</sys-lib>
374 <sys-lib>wininet</sys-lib>
375 </if>
376 <if cond="FORMAT!='borland' and FORMAT!='msevc4prj'">
cb8bbc13
VS
377 <sys-lib>kernel32</sys-lib>
378 <sys-lib>user32</sys-lib>
379 <sys-lib>gdi32</sys-lib>
380 <sys-lib>comdlg32</sys-lib>
381 <sys-lib>winspool</sys-lib>
382 <sys-lib>winmm</sys-lib>
383 <sys-lib>shell32</sys-lib>
cb8bbc13 384 <sys-lib>comctl32</sys-lib>
cb8bbc13
VS
385 <sys-lib>ole32</sys-lib>
386 <sys-lib>oleaut32</sys-lib>
387 <sys-lib>uuid</sys-lib>
388 <sys-lib>rpcrt4</sys-lib>
389 <sys-lib>advapi32</sys-lib>
390 <sys-lib>wsock32</sys-lib>
15b44c69 391 </if>
57670219 392 <if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'">
3682ea7d
VS
393 <sys-lib>oleacc</sys-lib>
394 </if>
f9c4805a
VS
395 <if cond="FORMAT!='msevc4prj'">
396 <sys-lib>odbc32</sys-lib>
397 </if>
57670219 398 </if>
ddf98968
VS
399 </template>
400
82ca3afe 401
c74dc163 402 <!-- for GUI libs/samples: -->
e83a52a2 403 <template id="wx_append_nomono" template="wx_append_base_nomono">
c74dc163
VS
404 <ldlibs>$(EXTRALIBS_GUI)</ldlibs>
405 </template>
406
e83a52a2
VS
407
408 <template id="wx_append_base" template_append="wx_append_base_nomono">
409 <!-- Always link against the wxWin library in monolithic build: -->
410 <sys-lib>$(WXLIB_MONO)</sys-lib>
411 </template>
412 <template id="wx_append" template_append="wx_append_nomono">
413 <!-- Always link against the wxWin library in monolithic build: -->
414 <sys-lib>$(WXLIB_MONO)</sys-lib>
415 </template>
416
417
0469579d
VS
418 <set var="WX_DISABLE_PRECOMP_HEADERS" overwrite="0">0</set>
419
4843dc4c 420 <template id="wx_lib_b" template="wx,anylib">
ddf98968 421 <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set>
ddf98968 422 <libname>$(WXLIBNAME)</libname>
cb8bbc13 423
0469579d 424 <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
a92d711e 425 <if cond="FORMAT!='autoconf' and TOOLKIT=='MSW'">
0469579d
VS
426 <sources>$(WXTOPDIR)src/msw/dummy.cpp</sources>
427 <precomp-headers-gen>
428 $(WXTOPDIR)src/msw/dummy.cpp
429 </precomp-headers-gen>
430 </if>
431 <precomp-headers-header>wx/wxprec.h</precomp-headers-header>
432 <precomp-headers>on</precomp-headers>
433 <precomp-headers-file>wxprec_$(id)</precomp-headers-file>
3fe70739
VS
434 <precomp-headers-exclude>
435 src/common/unzip.c
436 src/common/extended.c
ebee3cd0
VS
437 src/msw/gsocket.cpp
438 src/msw/gsockmsw.cpp
3fe70739 439 </precomp-headers-exclude>
cb8bbc13 440 </if>
82ca3afe 441
3a811096 442 <if cond="IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'">
82ca3afe
VS
443 <msvc-file-group>Common Sources:src/common/*</msvc-file-group>
444 <msvc-file-group>MSW Sources:src/msw/*</msvc-file-group>
445 <msvc-file-group>Generic Sources:src/generic/*</msvc-file-group>
446 <msvc-file-group>wxUniv Sources:src/univ/*</msvc-file-group>
447 <msvc-file-group>wxHTML Sources:src/html/*</msvc-file-group>
448 <msvc-file-group>Setup Headers:*/setup.h</msvc-file-group>
82ca3afe
VS
449 <msvc-file-group>MSW Headers:*wx/msw/*.h</msvc-file-group>
450 <msvc-file-group>Generic Headers:*wx/generic/*.h</msvc-file-group>
451 <msvc-file-group>wxUniv Headers:*wx/univ/*.h</msvc-file-group>
452 <msvc-file-group>wxHTML Headers:*wx/html/*.h</msvc-file-group>
cbba971f 453 <msvc-file-group>Common Headers:*wx/*.h</msvc-file-group>
82ca3afe 454 </if>
ddf98968 455 </template>
cb8bbc13 456
fab9850d 457 <template id="wx_dll_b" template="wx_lib_b">
ddf98968
VS
458 <set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set>
459 <dllname>$(WXDLLNAME)</dllname>
460 <version>$(WX_VERSION)</version>
461 <so_version>$(WXSOVERSION)</so_version>
462 <mac_version>$(WXMACVERSION)</mac_version>
463 </template>
c0608865 464
5c802b3d 465 <template id="wx_3rdparty_dependencies">
3fe70739
VS
466 <depends>wxtiff</depends>
467 <depends>wxjpeg</depends>
468 <depends>wxpng</depends>
390c0cfb 469 <depends>wxexpat</depends>
c74dc163 470 <depends>wxzlib</depends>
3fe70739 471 <depends cond="FORMAT=='autoconf'">wxodbc</depends>
c74dc163
VS
472 <depends>wxregex</depends>
473 </template>
ee929bcf
VS
474
475 <template id="wx_3rdparty_includes">
476 <include>$(INC_TIFF)</include>
477 <include>$(INC_JPEG)</include>
478 <include>$(INC_PNG)</include>
479 <include>$(INC_ZLIB)</include>
480 <include>$(INC_ODBC)</include>
481 <include>$(INC_REGEX)</include>
482 <include>$(INC_EXPAT)</include>
483 </template>
c0608865 484
9698d244
VS
485 <template id="wx_lib"
486 template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
487 <template id="wx_base_lib"
488 template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h">
15d93f1e
VS
489 <define>wxUSE_GUI=0</define>
490 </template>
491
ee929bcf
VS
492 <template id="wx_dll"
493 template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
9698d244 494 template_append="msvc_setup_h,wx_append_nomono"/>
ee929bcf
VS
495 <template id="wx_base_dll"
496 template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
9698d244 497 template_append="msvc_setup_h,wx_append_base_nomono">
15d93f1e
VS
498 <define>wxUSE_GUI=0</define>
499 </template>
ae4ae157
VS
500
501 <!-- =============================================================== -->
77ffb593 502 <!-- Templates for building wxWidgets plugins: -->
ae4ae157
VS
503 <!-- =============================================================== -->
504
ae4ae157 505 <if cond="WX_STABLE_BRANCH=='1'">
c79241a2 506 <set var="PLUGIN_VERSION0">
ae4ae157 507 <if cond="PLATFORM_UNIX=='1'">
c79241a2 508 $(WXVER_MAJOR).$(WXVER_MINOR)
ae4ae157
VS
509 </if>
510 <if cond="PLATFORM_UNIX=='0'">
511 $(WXVER_MAJOR)$(WXVER_MINOR)
512 </if>
513 </set>
514 </if>
515 <if cond="WX_STABLE_BRANCH=='0'">
c79241a2 516 <set var="PLUGIN_VERSION0">
ae4ae157 517 <if cond="PLATFORM_UNIX=='1'">
c79241a2 518 $(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)
ae4ae157
VS
519 </if>
520 <if cond="PLATFORM_UNIX=='0'">
521 $(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE)
522 </if>
523 </set>
524 </if>
c79241a2
VS
525 <set var="PLUGVERDELIM">
526 <if cond="PLATFORM_UNIX=='1'">-</if>
527 <if cond="PLATFORM_UNIX=='0'"></if>
528 </set>
529 <set var="PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)</set>
530
531 <set var="PLUGINSUFFIX">
532 <if cond="UNICODE=='0' and BUILD=='release'"></if>
314a6446
VS
533 <if cond="UNICODE=='0' and BUILD=='debug'">d</if>
534 <if cond="UNICODE=='1' and BUILD=='release'">u</if>
535 <if cond="UNICODE=='1' and BUILD=='debug'">ud</if>
c79241a2
VS
536 </set>
537
538 <set var="PLUGINS_INST_DIR" make_var="1">
539 $(LIBDIR)/wx/$(PLUGIN_VERSION0)
540 </set>
ae4ae157
VS
541
542 <define-rule name="wx-base-plugin" extends="module">
543 <template>
544 <dllname>
c79241a2 545 $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
ae4ae157
VS
546 </dllname>
547 <define>WXUSINGDLL</define>
15d93f1e 548 <define>wxUSE_GUI=0</define>
c79241a2 549 <install-to>$(PLUGINS_INST_DIR)</install-to>
ae4ae157
VS
550 </template>
551 </define-rule>
552
553 <define-rule name="wx-gui-plugin" extends="module">
554 <template template="wx">
555 <dllname>
c79241a2 556 $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
ae4ae157
VS
557 </dllname>
558 <define>WXUSINGDLL</define>
c79241a2 559 <install-to>$(PLUGINS_INST_DIR)</install-to>
ae4ae157
VS
560 </template>
561 </define-rule>
5c802b3d 562
ddf98968 563 <!-- =============================================================== -->
77ffb593 564 <!-- Support for wxWidgets samples and contrib: -->
ddf98968
VS
565 <!-- =============================================================== -->
566
567 <!-- Link against one wxWin library. Value must be literal! -->
485a205e 568 <define-tag name="wx-lib" rules="exe,dll,module">
ddf98968 569 <sys-lib>$(wxwin.libToLink(value))</sys-lib>
22cef566 570 <ldlibs>$(wxwin.extraLdflags(value))</ldlibs>
3a811096 571 <if cond="IS_MSVC_PRJ=='1' and MONOLITHIC=='0'">
dce0742b 572 <depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp>
7bd54b68 573 </if>
ddf98968
VS
574 </define-tag>
575
4bae0a94
VS
576
577 <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain
578 {top_srcdir} from configure, poor bakefile can't know that
579 and won't output top_srcdir = @top_srcdir@ line): -->
580 <set var="VARS_DONT_ELIMINATE" append="1">top_srcdir</set>
581
582
ddf98968 583</makefile>