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