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