]>
Commit | Line | Data |
---|---|---|
ddf98968 | 1 | <?xml version="1.0" ?> |
481290e2 VS |
2 | <!-- $Id$ --> |
3 | ||
ddf98968 | 4 | <makefile> |
b6dc1b90 | 5 | |
00100882 | 6 | <requires version="0.2.7"/> |
e2c10c59 | 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 | ||
c8c1b0bf DE |
14 | <!-- DFE: Add a platform meaning regular MacOS (not OS X) --> |
15 | <!-- FIXME: This will be handled in Bakefile but for now I wanted to | |
e2c10c59 WS |
16 | get my changes to the wx bakefiles in the tree but invisible to |
17 | windows toolkits and their config.xxx settings --> | |
18 | <if cond="FORMAT=='autoconf'"> | |
19 | <option name="PLATFORM_MACOS"/> | |
20 | </if> | |
21 | <if cond="FORMAT!='autoconf'"> | |
22 | <set var="PLATFORM_MACOS">0</set> | |
23 | </if> | |
c8c1b0bf | 24 | |
a986efd0 WS |
25 | <!-- FIXME: PalmOS is another candidate to bakefiles --> |
26 | <set var="PLATFORM_PALMOS">0</set> | |
27 | ||
24dfe917 | 28 | |
ddf98968 | 29 | <include file="config.bkl"/> |
c79241a2 VS |
30 | |
31 | <include file="plugins_deps.bkl"/> | |
e2c10c59 | 32 | |
bdc408c4 | 33 | |
05a0bcde VS |
34 | <!-- wxWidgets version numbers logic: --> |
35 | <include file="version.bkl"/> | |
e2c10c59 WS |
36 | |
37 | ||
ddf98968 VS |
38 | <!-- ================================================================== --> |
39 | <!-- Names of libraries and DLLs: --> | |
40 | <!-- ================================================================== --> | |
41 | ||
42 | <set var="PORTNAME"> | |
43 | <if cond="USE_GUI=='0'">base</if> | |
44 | <if cond="USE_GUI=='1'">$(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)</if> | |
45 | </set> | |
e2c10c59 | 46 | |
64a2a46f VS |
47 | <set var="WXBASEPORT"> |
48 | <if cond="TOOLKIT=='MAC'">_carbon</if> | |
49 | </set> | |
ddf98968 VS |
50 | |
51 | <set var="COMPILERORGCC"> | |
52 | <if cond="isdefined('COMPILER')">$(COMPILER)</if> | |
53 | <if cond="not isdefined('COMPILER')">gcc</if> | |
54 | </set> | |
55 | <set var="WXCOMPILER"> | |
56 | <if cond="PLATFORM_WIN32=='1'">_$(COMPILERORGCC)</if> | |
57 | </set> | |
4fc5f509 VS |
58 | |
59 | <set var="VENDORTAG"> | |
cff5df9f VS |
60 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='1'"></if> |
61 | <if cond="PLATFORM_WIN32=='1' and OFFICIAL_BUILD=='0'">_$(VENDOR)</if> | |
4fc5f509 VS |
62 | </set> |
63 | ||
c6684d42 | 64 | <!-- debug suffix used for Windows libraries which use debug CRT --> |
ddf98968 | 65 | <set var="WXDEBUGFLAG"> |
c6684d42 VZ |
66 | <if cond="BUILD=='debug' and DEBUG_RUNTIME_LIBS=='default'">d</if> |
67 | <if cond="DEBUG_RUNTIME_LIBS=='1'">d</if> | |
ddf98968 VS |
68 | </set> |
69 | <set var="WXUNICODEFLAG"> | |
af594eca VS |
70 | <!-- WinCE is Unicode-only platform: --> |
71 | <if cond="UNICODE=='1' and FORMAT!='msevc4prj'">u</if> | |
ddf98968 | 72 | </set> |
c6684d42 VZ |
73 | <set var="WX_U_D_SUFFIX"> |
74 | $(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
75 | </set> | |
ddf98968 | 76 | <set var="WXNAMESUFFIX"> |
c6684d42 | 77 | $(WX_U_D_SUFFIX)$(WX_LIB_FLAVOUR) |
ddf98968 | 78 | </set> |
e2c10c59 | 79 | |
ddf98968 VS |
80 | <set var="WXUNIVNAME"> |
81 | <if cond="WXUNIV=='1'">univ</if> | |
82 | </set> | |
83 | <set var="WXUNIV_DEFINE"> | |
84 | <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if> | |
85 | </set> | |
86 | ||
cdc0282e | 87 | <if cond="FORMAT=='autoconf'"> |
64a2a46f | 88 | <set var="WXNAMEPREFIX">wx_base$(WXBASEPORT)</set> |
cdc0282e | 89 | <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set> |
a1bf307a | 90 | <set var="WXVERSIONTAG">-$(WX_RELEASE)</set> |
cdc0282e VS |
91 | </if> |
92 | <if cond="FORMAT!='autoconf'"> | |
64a2a46f | 93 | <set var="WXNAMEPREFIX"> |
a1bf307a | 94 | wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT) |
64a2a46f VS |
95 | </set> |
96 | <set var="WXNAMEPREFIXGUI"> | |
a1bf307a | 97 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)</set> |
cdc0282e VS |
98 | <set var="WXVERSIONTAG"></set> |
99 | </if> | |
4fc5f509 | 100 | <set var="WXDLLNAMEPREFIX"> |
64a2a46f | 101 | <if cond="PLATFORM_WIN32=='1'"> |
bdc408c4 | 102 | wxbase$(WXBASEPORT)$(WXWIN32DLLVERSION) |
64a2a46f | 103 | </if> |
4fc5f509 VS |
104 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIX)</if> |
105 | </set> | |
106 | <set var="WXDLLNAMEPREFIXGUI"> | |
107 | <if cond="PLATFORM_WIN32=='1'"> | |
bdc408c4 | 108 | wx$(PORTNAME)$(WXUNIVNAME)$(WXWIN32DLLVERSION) |
4fc5f509 VS |
109 | </if> |
110 | <if cond="PLATFORM_WIN32=='0'">$(WXNAMEPREFIXGUI)</if> | |
111 | </set> | |
112 | <set var="WXDLLVERSIONTAG"> | |
113 | <if cond="PLATFORM_WIN32=='1'"></if> | |
114 | <if cond="PLATFORM_WIN32=='0'">$(WXVERSIONTAG)</if> | |
115 | </set> | |
ddf98968 | 116 | |
e2c10c59 | 117 | |
ddf98968 VS |
118 | <!-- =============================================================== --> |
119 | <!-- Names of component libraries: --> | |
120 | <!-- =============================================================== --> | |
121 | ||
e86e1522 VS |
122 | <set var="WXLIB_BASE"> |
123 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if> | |
124 | </set> | |
7c4728f6 VS |
125 | <set var="WXLIB_NET"> |
126 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if> | |
127 | </set> | |
61639efb VZ |
128 | <set var="WXLIB_QA"> |
129 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('qa')))</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> | |
2ae3b602 | 137 | <set var="WXLIB_MEDIA"> |
03575f9b | 138 | <if cond="MONOLITHIC=='0' and USE_MEDIA=='1'">$(mk.evalExpr(wxwin.mkLibName('media')))</if> |
2ae3b602 | 139 | </set> |
fab9850d | 140 | <set var="WXLIB_HTML"> |
e86e1522 | 141 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('html')))</if> |
fab9850d | 142 | </set> |
a69544bf VS |
143 | <set var="WXLIB_XML"> |
144 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if> | |
145 | </set> | |
a62d8849 WS |
146 | <set var="WXLIB_XRC"> |
147 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xrc')))</if> | |
148 | </set> | |
50acee04 JS |
149 | <set var="WXLIB_AUI"> |
150 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('aui')))</if> | |
151 | </set> | |
3c3ead1d PC |
152 | <set var="WXLIB_RIBBON"> |
153 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('ribbon')))</if> | |
154 | </set> | |
1c4293cb VZ |
155 | <set var="WXLIB_PROPGRID"> |
156 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('propgrid')))</if> | |
157 | </set> | |
3b2cb431 JS |
158 | <set var="WXLIB_RICHTEXT"> |
159 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('richtext')))</if> | |
160 | </set> | |
54429bb3 RD |
161 | <set var="WXLIB_STC"> |
162 | <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('stc')))</if> | |
163 | </set> | |
ddf98968 VS |
164 | |
165 | <set var="WXLIB_MONO"> | |
166 | <if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if> | |
167 | </set> | |
e2c10c59 WS |
168 | |
169 | ||
ddf98968 | 170 | <!-- =============================================================== --> |
cff5df9f | 171 | <!-- Where to store built libraries and objects: --> |
ddf98968 | 172 | <!-- =============================================================== --> |
e2c10c59 | 173 | |
af594eca VS |
174 | <set var="DIR_SUFFIX_CPU"> |
175 | <if cond="FORMAT=='msevc4prj'">_$(CPU)</if> | |
b974b0da | 176 | <if cond="TARGET_CPU=='amd64'">_amd64</if> |
e40b74ba | 177 | <if cond="TARGET_CPU=='AMD64'">_amd64</if> |
b974b0da | 178 | <if cond="TARGET_CPU=='ia64'">_ia64</if> |
e40b74ba | 179 | <if cond="TARGET_CPU=='IA64'">_ia64</if> |
af594eca | 180 | </set> |
cff5df9f VS |
181 | |
182 | <if cond="FORMAT!='autoconf'"> | |
183 | <set var="WXDLLFLAG"> | |
184 | <if cond="SHARED=='1'">dll</if> | |
185 | </set> | |
186 | <set var="CFG_NAME_PART"> | |
c6684d42 | 187 | $(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(WXDLLFLAG)$(CFG) |
cff5df9f | 188 | </set> |
dad909f7 VS |
189 | |
190 | <!-- NB: this is make_var so that it can be overriden on command line | |
191 | like this: nmake -f makefile.vc COMPILER_PREFIX=vc6 --> | |
192 | <set var="COMPILER_PREFIX" make_var="1">$(COMPILER)</set> | |
193 | ||
328f5196 | 194 | <set var="OBJS" make_var="1"> |
dad909f7 | 195 | $(COMPILER_PREFIX)_$(CFG_NAME_PART)$(DIR_SUFFIX_CPU) |
328f5196 VS |
196 | </set> |
197 | ||
cff5df9f VS |
198 | <set var="BUILDDIR">$(OBJS)</set> |
199 | </if> | |
e2c10c59 | 200 | |
46da6d06 | 201 | <set var="LIBTYPE_SUFFIX" make_var="1"> |
52abdc83 WS |
202 | <if cond="FORMAT!='autoconf' and SHARED=='0' and PLATFORM_WIN32=='1'">lib</if> |
203 | <if cond="FORMAT!='autoconf' and SHARED=='1' and PLATFORM_WIN32=='1'">dll</if> | |
204 | <if cond="FORMAT=='watcom' and SHARED=='0' and PLATFORM_WIN32=='0'">$(TOOLKIT_LOWERCASE)_lib</if> | |
205 | <if cond="FORMAT=='watcom' and SHARED=='1' and PLATFORM_WIN32=='0'">$(TOOLKIT_LOWERCASE)_dll</if> | |
46da6d06 WS |
206 | </set> |
207 | ||
390c0cfb | 208 | <set var="LIBDIRNAME" make_var="1"> |
6589dc98 | 209 | <if cond="FORMAT=='autoconf'">$(wx_top_builddir)/lib</if> |
46da6d06 | 210 | <if cond="FORMAT!='autoconf'"> |
dad909f7 | 211 | $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG) |
cff5df9f | 212 | </if> |
ddf98968 | 213 | </set> |
e2c10c59 | 214 | |
ee929bcf VS |
215 | <if cond="FORMAT!='autoconf'"> |
216 | <set var="SETUPHDIR" make_var="1"> | |
c6684d42 | 217 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX) |
ee929bcf VS |
218 | </set> |
219 | </if> | |
cff5df9f | 220 | |
e2c10c59 WS |
221 | |
222 | ||
4843dc4c VS |
223 | <!-- =============================================================== --> |
224 | <!-- Templates for libs: --> | |
225 | <!-- =============================================================== --> | |
cdc0282e | 226 | |
4f6e1dac VS |
227 | <set var="DEBUGINFO"> |
228 | <if cond="BUILD=='debug' and DEBUG_INFO=='default'">on</if> | |
229 | <if cond="DEBUG_INFO=='1'">on</if> | |
230 | <if cond="BUILD=='release' and DEBUG_INFO=='default'">off</if> | |
231 | <if cond="DEBUG_INFO=='0'">off</if> | |
232 | </set> | |
233 | <set var="DEBUGRUNTIME"> | |
51c4bf88 VS |
234 | <if cond="DEBUG_RUNTIME_LIBS=='default' and BUILD=='debug'">on</if> |
235 | <if cond="DEBUG_RUNTIME_LIBS=='default' and BUILD=='release'">off</if> | |
4f6e1dac VS |
236 | <if cond="DEBUG_RUNTIME_LIBS=='0'">off</if> |
237 | <if cond="DEBUG_RUNTIME_LIBS=='1'">on</if> | |
cdc0282e VS |
238 | </set> |
239 | <set var="OPTIMIZEFLAG"> | |
546a7e42 VS |
240 | <if cond="BUILD=='debug'">off</if> |
241 | <if cond="BUILD=='release'">speed</if> | |
cdc0282e | 242 | </set> |
9833a21a VS |
243 | <set var="EXCEPTIONSFLAG"> |
244 | <if cond="USE_EXCEPTIONS=='1'">on</if> | |
245 | <if cond="USE_EXCEPTIONS=='0'">off</if> | |
246 | </set> | |
c2efd890 VZ |
247 | <set var="RTTIFLAG"> |
248 | <if cond="USE_RTTI=='1'">on</if> | |
249 | <if cond="USE_RTTI=='0'">off</if> | |
250 | </set> | |
d1e5aa07 VS |
251 | <set var="THREADSFLAG"> |
252 | <if cond="USE_THREADS=='1'">multi</if> | |
253 | <if cond="USE_THREADS=='0'">single</if> | |
254 | </set> | |
15b44c69 | 255 | |
b7e4c668 | 256 | <set var="RTTI_DEFINE"> |
7121be53 | 257 | <if cond="USE_RTTI=='0'">wxNO_RTTI</if> |
b7e4c668 VZ |
258 | </set> |
259 | <set var="EXCEPTIONS_DEFINE"> | |
7121be53 | 260 | <if cond="USE_EXCEPTIONS=='0'">wxNO_EXCEPTIONS</if> |
b7e4c668 VZ |
261 | </set> |
262 | <set var="THREAD_DEFINE"> | |
7121be53 | 263 | <if cond="USE_THREADS=='0'">wxNO_THREADS</if> |
b7e4c668 VZ |
264 | </set> |
265 | ||
15b44c69 | 266 | <set var="DEBUG_DEFINE"> |
c6684d42 | 267 | <if cond="DEBUG_FLAG=='0'">wxDEBUG_LEVEL=0</if> |
15b44c69 | 268 | </set> |
c59422a4 VS |
269 | <set var="NDEBUG_DEFINE"> |
270 | <if cond="FORMAT!='autoconf' and DEBUG_RUNTIME_LIBS=='default' and BUILD=='release'">NDEBUG</if> | |
271 | <if cond="FORMAT!='autoconf' and DEBUG_RUNTIME_LIBS=='0'">NDEBUG</if> | |
272 | </set> | |
273 | ||
4435bd42 MB |
274 | <!-- does not cover all cases, but better than nothing --> |
275 | <set var="NO_VC_CRTDBG"> | |
276 | <if cond="FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__</if> | |
277 | <if cond="FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__</if> | |
278 | </set> | |
15b44c69 | 279 | <set var="UNICODE_DEFINE"> |
ed4ccecd | 280 | <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if> |
9c7ad546 | 281 | <if cond="FORMAT!='autoconf' and UNICODE=='0'">wxUSE_UNICODE=0</if> |
15b44c69 | 282 | </set> |
22df8343 | 283 | <set var="MSLU_DEFINE"> |
a649ec01 | 284 | <if cond="FORMAT!='autoconf' and MSLU=='1'">wxUSE_UNICODE_MSLU=1</if> |
22df8343 | 285 | </set> |
e2c10c59 | 286 | |
5fae0f97 WS |
287 | <!-- fill for the specific case of the format/compiler --> |
288 | <set var="WIN32_WINNT"> | |
289 | <if cond="FORMAT=='dmars' or FORMAT=='dmars_smake'">_WIN32_WINNT=0x0400</if> | |
290 | </set> | |
291 | ||
416f5bc8 VS |
292 | <set var="UNICOWS_LIB"> |
293 | <if cond="MSLU=='1'">unicows</if> | |
294 | </set> | |
f82b7036 KO |
295 | <set var="CAIRO_LIB"> |
296 | <if cond="USE_CAIRO=='1'">cairo</if> | |
297 | </set> | |
298 | <set var="CAIRO_LIBDIR"> | |
299 | <if cond="USE_CAIRO=='1'">$(DOLLAR)(CAIRO_ROOT)/lib</if> | |
300 | </set> | |
301 | <set var="CAIRO_INCLUDEDIR"> | |
302 | <if cond="USE_CAIRO=='1'">$(DOLLAR)(CAIRO_ROOT)/include/cairo</if> | |
303 | </set> | |
2713e629 RD |
304 | <if cond="FORMAT!='autoconf'"> |
305 | <set var="GDIPLUS_LIB"> | |
306 | <if cond="USE_GDIPLUS=='1'">gdiplus</if> | |
1e6b2edf VZ |
307 | </set> |
308 | <set var="GFXCTX_DEFINE"> | |
2713e629 | 309 | <if cond="USE_GDIPLUS=='1'">wxUSE_GRAPHICS_CONTEXT=1</if> |
1e6b2edf | 310 | </set> |
2713e629 RD |
311 | </if> |
312 | ||
e40b74ba | 313 | <set var="LINK_TARGET_CPU"> |
94b6ce7f VZ |
314 | <if cond="TARGET_CPU=='amd64'">/MACHINE:X64</if> |
315 | <if cond="TARGET_CPU=='AMD64'">/MACHINE:X64</if> | |
b974b0da | 316 | <if cond="TARGET_CPU=='ia64'">/MACHINE:IA64</if> |
e40b74ba MW |
317 | <if cond="TARGET_CPU=='IA64'">/MACHINE:IA64</if> |
318 | </set> | |
e40b74ba | 319 | |
149cc218 | 320 | <template id="common_settings"> |
4f6e1dac VS |
321 | <debug-info>$(DEBUGINFO)</debug-info> |
322 | <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs> | |
5e3746dc | 323 | <optimize>$(OPTIMIZEFLAG)</optimize> |
d1e5aa07 | 324 | <threading>$(THREADSFLAG)</threading> |
4b44ea2b | 325 | <runtime-libs>$(RUNTIME_LIBS)</runtime-libs> |
c2efd890 | 326 | <cxx-rtti>$(RTTIFLAG)</cxx-rtti> |
9833a21a | 327 | <cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions> |
5e3746dc VS |
328 | <if cond="FORMAT!='autoconf'"> |
329 | <cppflags>$(EXTRACFLAGS)</cppflags> | |
330 | </if> | |
4435bd42 | 331 | <define>$(NO_VC_CRTDBG)</define> |
5fae0f97 | 332 | <define>$(WIN32_WINNT)</define> |
e40b74ba MW |
333 | <if cond="FORMAT=='msvc'"> |
334 | <ldflags>$(LINK_TARGET_CPU)</ldflags> | |
e40b74ba | 335 | </if> |
92d594fc | 336 | <include cond="FORMAT=='msevc4prj'">$(TOP_SRCDIR)build/wince/missing</include> |
5e3746dc | 337 | </template> |
e2c10c59 | 338 | |
4843dc4c | 339 | <template id="anylib"> |
4843dc4c VS |
340 | <dirname>$(LIBDIRNAME)</dirname> |
341 | <install-to>$(LIBDIR)</install-to> | |
342 | </template> | |
343 | ||
149cc218 | 344 | <template id="3rdparty_lib" template="common_settings,anylib"> |
a1bf307a | 345 | <if cond="FORMAT=='autoconf'"> |
c6684d42 | 346 | <libname>$(id)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)</libname> |
a1bf307a RL |
347 | </if> |
348 | <if cond="FORMAT!='autoconf'"> | |
9c2d002b | 349 | <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname> |
a1bf307a | 350 | </if> |
52a5a009 VS |
351 | <!-- |
352 | we want to install 3rd party libs system-wide only with static | |
77ffb593 | 353 | version of wxWidgets; otherwise they are embedded in shared libs: |
52a5a009 VS |
354 | --> |
355 | <install-if>SHARED=='0'</install-if> | |
af594eca | 356 | <pic>$(substituteFromDict(SHARED, {'0':'off', '1':'on'}))</pic> |
9dab58b1 VZ |
357 | |
358 | <!-- | |
359 | we don't want to have asserts in the 3rd party libraries code, | |
360 | neither we nor wx users are interested in debugging them anyhow | |
361 | --> | |
362 | <define>NDEBUG</define> | |
41c89b91 VZ |
363 | |
364 | <if cond="IS_MSVC"> | |
365 | <!-- | |
366 | we're not interested in deprecation warnings about the use of | |
367 | standard C functions in the 3rd party libraries (these warnings | |
368 | are only given by VC8+ but it's simpler to just always define | |
369 | this symbol which disables them, even for previous VC versions) | |
370 | --> | |
371 | <define>_CRT_SECURE_NO_WARNINGS</define> | |
372 | </if> | |
82cb0280 | 373 | </template> |
e2c10c59 WS |
374 | |
375 | ||
cb9548d9 | 376 | <!-- deal with the need to copy setup.h here: --> |
82cb0280 | 377 | |
cb9548d9 | 378 | <define-tag name="msvc-headers" rules="dll,lib"> |
af594eca | 379 | <if cond="IS_MSVC_PRJ"> |
79a2ea34 VS |
380 | <msvc-project-files> |
381 | $(addPrefixToList('include\\', wxwin.headersOnly(value))) | |
382 | </msvc-project-files> | |
cb9548d9 VS |
383 | </if> |
384 | </define-tag> | |
385 | ||
c7f476c9 | 386 | <set var="msvc_copy_setup_h_script"> |
af594eca | 387 | <if cond="IS_MSVC_PRJ"> |
cb9548d9 | 388 | Creating $(SETUPHDIR)\wx\setup.h |
9c26fe83 | 389 | InputPath=..\..\include\wx\%s |
cb9548d9 VS |
390 | |
391 | "$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)" | |
392 | $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h | |
c7f476c9 MW |
393 | </if> |
394 | </set> | |
395 | ||
396 | <define-tag name="msvc-headers-setup-h" rules="dll,lib"> | |
397 | <if cond="IS_MSVC_PRJ"> | |
398 | <msvc-headers> | |
399 | $(addPrefixToList('wx/', value)) | |
400 | </msvc-headers> | |
401 | <set var="_custom_build_files" append="1"> | |
402 | $(nativePaths(addPrefixToList('include/wx/', value))) | |
cb9548d9 VS |
403 | </set> |
404 | </if> | |
405 | </define-tag> | |
406 | ||
c7f476c9 MW |
407 | <define-tag name="msvc-copy-setup-h" rules="dll,lib"> |
408 | <if cond="IS_MSVC_PRJ"> | |
409 | <if cond="FORMAT=='msevc4prj'"> | |
410 | <msvc-headers-setup-h> | |
411 | msw/wince/setup.h | |
412 | </msvc-headers-setup-h> | |
413 | <set var="_custom_build_include_wx_msw_wince_setup_h"> | |
414 | $(msvc_copy_setup_h_script % 'msw\wince\setup.h') | |
415 | </set> | |
416 | </if> | |
417 | <if cond="FORMAT!='msevc4prj'"> | |
418 | <msvc-headers-setup-h> | |
419 | msw/setup.h | |
420 | univ/setup.h | |
421 | </msvc-headers-setup-h> | |
422 | <set var="_custom_build_include_wx_msw_setup_h"> | |
423 | <if cond="WXUNIV=='0'"> | |
424 | $(msvc_copy_setup_h_script % 'msw\setup.h') | |
425 | </if> | |
426 | </set> | |
427 | <set var="_custom_build_include_wx_univ_setup_h"> | |
428 | <if cond="WXUNIV=='1'"> | |
429 | $(msvc_copy_setup_h_script % 'univ\setup.h') | |
430 | </if> | |
431 | </set> | |
432 | </if> | |
433 | </if> | |
434 | </define-tag> | |
435 | ||
c8d58531 MW |
436 | <define-tag name="msvc-create-rcdefs-h" rules="dll,lib"> |
437 | <if cond="IS_MSVC_PRJ"> | |
438 | <msvc-headers-setup-h> | |
439 | msw/genrcdefs.h | |
440 | </msvc-headers-setup-h> | |
92641c0d | 441 | <!-- FIXME: we need another way to get the compiler name --> |
c8d58531 MW |
442 | <set var="VC_COMPILER"> |
443 | <if cond="FORMAT=='msevc4prj'">$(_COMPILER)</if> | |
444 | <if cond="FORMAT!='msevc4prj'">cl</if> | |
445 | </set> | |
446 | <set var="_custom_build_include_wx_msw_genrcdefs_h"> | |
447 | Creating $(SETUPHDIR)\wx\msw\rcdefs.h | |
9c26fe83 | 448 | InputPath=..\..\include\wx\msw\genrcdefs.h |
c8d58531 | 449 | |
81073d92 | 450 | "$(SETUPHDIR)\wx\msw\rcdefs.h" : "$(DOLLAR)(SOURCE)" "$(SETUPHDIR)\wx\msw" |
c8d58531 MW |
451 | $(TAB)$(VC_COMPILER) /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\rcdefs.h" |
452 | </set> | |
453 | </if> | |
454 | </define-tag> | |
455 | ||
cb9548d9 VS |
456 | <template id="msvc_setup_h"> |
457 | <msvc-copy-setup-h/> | |
c8d58531 | 458 | <msvc-create-rcdefs-h/> |
cb9548d9 | 459 | </template> |
ddf98968 VS |
460 | |
461 | <!-- =============================================================== --> | |
462 | <!-- 3rd party libs: --> | |
463 | <!-- =============================================================== --> | |
e2c10c59 | 464 | |
ddf98968 VS |
465 | <!-- 3rd party libraries: --> |
466 | <include file="regex.bkl"/> | |
467 | <include file="zlib.bkl"/> | |
468 | <include file="png.bkl"/> | |
469 | <include file="jpeg.bkl"/> | |
470 | <include file="tiff.bkl"/> | |
a69544bf | 471 | <include file="expat.bkl"/> |
54429bb3 | 472 | <include file="scintilla.bkl"/> |
ddf98968 | 473 | |
e2c10c59 | 474 | |
ddf98968 | 475 | <!-- =============================================================== --> |
77ffb593 | 476 | <!-- Templates for wxWidgets libs: --> |
ddf98968 | 477 | <!-- =============================================================== --> |
cdc0282e | 478 | |
2cc75628 VS |
479 | <!-- NB: in monolithic build, even wxBase-only must be linked against |
480 | GUI extralibs, otherwise there would be unresolved references. | |
481 | The variables below are defined so that all libs are used | |
482 | in monolithic build, but not in multilib one. --> | |
483 | <set var="EXTRALIBS_FOR_BASE"> | |
484 | <if cond="MONOLITHIC=='1'">$(EXTRALIBS) $(EXTRALIBS_GUI)</if> | |
485 | <if cond="MONOLITHIC=='0'">$(EXTRALIBS)</if> | |
486 | </set> | |
487 | <set var="EXTRALIBS_FOR_GUI"> | |
488 | <if cond="MONOLITHIC=='1'"></if> | |
489 | <if cond="MONOLITHIC=='0'">$(EXTRALIBS_GUI)</if> | |
490 | </set> | |
491 | ||
43b0b6bc WS |
492 | <if cond="TOOLKIT=='MGL' and FORMAT=='watcom'"> |
493 | <set var="MGLLIBPATH">$(DOLLAR)(%SCITECH)/lib/$(BUILD)/dos32/ow10</set> | |
494 | <set var="MGLPMLIBPATH"> | |
495 | <if cond="DOS32=='DOS4GW'">dos4gw</if> | |
496 | </set> | |
497 | </if> | |
498 | ||
149cc218 | 499 | <template id="wx" template="common_settings"> |
ddf98968 VS |
500 | <set var="wxid">$(wxwin.mk_wxid(id))</set> |
501 | <define>__WX$(TOOLKIT)__</define> | |
502 | <define>$(WXUNIV_DEFINE)</define> | |
15b44c69 | 503 | <define>$(DEBUG_DEFINE)</define> |
c59422a4 | 504 | <define>$(NDEBUG_DEFINE)</define> |
b7e4c668 VZ |
505 | <define>$(EXCEPTIONS_DEFINE)</define> |
506 | <define>$(RTTI_DEFINE)</define> | |
507 | <define>$(THREAD_DEFINE)</define> | |
15b44c69 | 508 | <define>$(UNICODE_DEFINE)</define> |
22df8343 | 509 | <define>$(MSLU_DEFINE)</define> |
2713e629 | 510 | <if cond="FORMAT!='autoconf'"><define>$(GFXCTX_DEFINE)</define></if> |
c8d58531 | 511 | <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include> |
85ebb95c | 512 | <include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include> |
f82b7036 | 513 | <include cond="FORMAT!='autoconf'">$(CAIRO_INCLUDEDIR)</include> |
e2c10c59 | 514 | <lib-path>$(LIBDIRNAME)</lib-path> |
43b0b6bc WS |
515 | <if cond="TOOLKIT=='MGL' and FORMAT=='watcom'"> |
516 | <lib-path>$(MGLLIBPATH)</lib-path> | |
517 | <lib-path>$(MGLLIBPATH)/$(MGLPMLIBPATH)</lib-path> | |
518 | </if> | |
b1b592ad | 519 | |
432afc17 | 520 | <warnings>max</warnings> |
b1b592ad | 521 | <cxxflags cond="FORMAT=='autoconf'">$(CXXWARNINGS)</cxxflags> |
a0177486 WS |
522 | <cppflags-watcom> |
523 | -wcd=549 <!-- 'sizeof' operand contains compiler generated information --> | |
524 | -wcd=656 <!-- define this function inside its class definition (may improve code quality) --> | |
525 | -wcd=657 <!-- define this function inside its class definition (could have improved code quality) --> | |
526 | -wcd=667 <!-- 'va_start' macro will not work without an argument before '...' --> | |
527 | </cppflags-watcom> | |
329a2be8 | 528 | <cxxflags-mingw> |
f8fbc92b | 529 | -Wno-ctor-dtor-privacy <!-- only defines a private destructor and has no friends --> |
329a2be8 | 530 | </cxxflags-mingw> |
ddf98968 VS |
531 | </template> |
532 | ||
c74dc163 | 533 | <!-- for both GUI and wxBase libs/samples: --> |
e83a52a2 | 534 | <template id="wx_append_base_nomono"> |
ddf98968 | 535 | <!-- link against builtin 3rd party libs, if needed: --> |
ddf98968 | 536 | <sys-lib>$(LIB_ZLIB)</sys-lib> |
ddf98968 | 537 | <sys-lib>$(LIB_REGEX)</sys-lib> |
a69544bf | 538 | <sys-lib>$(LIB_EXPAT)</sys-lib> |
e2c10c59 | 539 | |
2cc75628 | 540 | <ldlibs>$(EXTRALIBS_FOR_BASE)</ldlibs> |
15b44c69 | 541 | |
52abdc83 WS |
542 | <!-- system libraries on os2: --> |
543 | <if cond="FORMAT!='autoconf' and PLATFORM_OS2=='1'"> | |
544 | <if cond="FORMAT=='watcom'"> | |
545 | <sys-lib>upm32</sys-lib> | |
546 | </if> | |
547 | </if> | |
548 | ||
43b0b6bc WS |
549 | <!-- system libraries on mgl: --> |
550 | <if cond="FORMAT=='watcom' and TOOLKIT=='MGL'"> | |
551 | <sys-lib>mgl</sys-lib> | |
552 | <sys-lib>mglcpp</sys-lib> | |
553 | <sys-lib>pm</sys-lib> | |
554 | </if> | |
555 | ||
15b44c69 | 556 | <!-- system libraries on windows: --> |
52abdc83 | 557 | <if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'"> |
416f5bc8 | 558 | <sys-lib>$(UNICOWS_LIB)</sys-lib> |
2713e629 | 559 | <sys-lib>$(GDIPLUS_LIB)</sys-lib> |
f82b7036 KO |
560 | <sys-lib>$(CAIRO_LIB)</sys-lib> |
561 | <lib-path>$(CAIRO_LIBDIR)</lib-path> | |
328f5196 | 562 | <if cond="FORMAT=='borland'"> |
cb8bbc13 VS |
563 | <sys-lib>ole2w32</sys-lib> |
564 | </if> | |
f9c4805a VS |
565 | <if cond="FORMAT=='msevc4prj'"> |
566 | <sys-lib>ole32</sys-lib> | |
567 | <sys-lib>oleaut32</sys-lib> | |
568 | <sys-lib>uuid</sys-lib> | |
569 | <sys-lib>commctrl</sys-lib> | |
f9c4805a VS |
570 | <sys-lib>winsock</sys-lib> |
571 | <sys-lib>wininet</sys-lib> | |
572 | </if> | |
573 | <if cond="FORMAT!='borland' and FORMAT!='msevc4prj'"> | |
cb8bbc13 VS |
574 | <sys-lib>kernel32</sys-lib> |
575 | <sys-lib>user32</sys-lib> | |
576 | <sys-lib>gdi32</sys-lib> | |
577 | <sys-lib>comdlg32</sys-lib> | |
578 | <sys-lib>winspool</sys-lib> | |
579 | <sys-lib>winmm</sys-lib> | |
580 | <sys-lib>shell32</sys-lib> | |
cb8bbc13 | 581 | <sys-lib>comctl32</sys-lib> |
cb8bbc13 VS |
582 | <sys-lib>ole32</sys-lib> |
583 | <sys-lib>oleaut32</sys-lib> | |
584 | <sys-lib>uuid</sys-lib> | |
585 | <sys-lib>rpcrt4</sys-lib> | |
586 | <sys-lib>advapi32</sys-lib> | |
587 | <sys-lib>wsock32</sys-lib> | |
b44f5137 VZ |
588 | <!-- this one is only used if wxUSE_URL_NATIVE==1 but we don't |
589 | know if it is here so just add it unconditionally --> | |
590 | <sys-lib>wininet</sys-lib> | |
15b44c69 | 591 | </if> |
1b48afd2 | 592 | <if cond="FORMAT=='borland'"> |
3682ea7d VS |
593 | <sys-lib>oleacc</sys-lib> |
594 | </if> | |
57670219 | 595 | </if> |
ddf98968 VS |
596 | </template> |
597 | ||
82ca3afe | 598 | |
c74dc163 | 599 | <!-- for GUI libs/samples: --> |
0019dee6 VS |
600 | <template id="wx_append_nomono" template_append="wx_append_base_nomono"> |
601 | <sys-lib>$(LIB_TIFF)</sys-lib> | |
602 | <sys-lib>$(LIB_JPEG)</sys-lib> | |
603 | <sys-lib>$(LIB_PNG)</sys-lib> | |
2cc75628 | 604 | <ldlibs>$(EXTRALIBS_FOR_GUI)</ldlibs> |
c74dc163 VS |
605 | </template> |
606 | ||
e83a52a2 VS |
607 | |
608 | <template id="wx_append_base" template_append="wx_append_base_nomono"> | |
609 | <!-- Always link against the wxWin library in monolithic build: --> | |
610 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
611 | </template> | |
612 | <template id="wx_append" template_append="wx_append_nomono"> | |
613 | <!-- Always link against the wxWin library in monolithic build: --> | |
614 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
615 | </template> | |
e2c10c59 | 616 | |
e83a52a2 | 617 | |
0469579d | 618 | <set var="WX_DISABLE_PRECOMP_HEADERS" overwrite="0">0</set> |
e2c10c59 | 619 | |
4843dc4c | 620 | <template id="wx_lib_b" template="wx,anylib"> |
ddf98968 | 621 | <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set> |
ddf98968 | 622 | <libname>$(WXLIBNAME)</libname> |
cb8bbc13 | 623 | |
5d88a6b5 VZ |
624 | <define>WXBUILDING</define> |
625 | ||
0469579d | 626 | <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'"> |
b9c94fbf | 627 | <if cond="FORMAT!='autoconf' and TOOLKIT in ['MSW','MGL','PM','WINCE']"> |
66b9f7f7 | 628 | <sources>$(WXTOPDIR)src/common/dummy.cpp</sources> |
0469579d | 629 | <precomp-headers-gen> |
66b9f7f7 | 630 | $(WXTOPDIR)src/common/dummy.cpp |
0469579d VS |
631 | </precomp-headers-gen> |
632 | </if> | |
a420c7ed | 633 | <precomp-headers-location>$(WXTOPDIR)include</precomp-headers-location> |
0469579d VS |
634 | <precomp-headers-header>wx/wxprec.h</precomp-headers-header> |
635 | <precomp-headers>on</precomp-headers> | |
636 | <precomp-headers-file>wxprec_$(id)</precomp-headers-file> | |
3fe70739 | 637 | <precomp-headers-exclude> |
3fe70739 | 638 | src/common/extended.c |
3fe70739 | 639 | </precomp-headers-exclude> |
cb8bbc13 | 640 | </if> |
e2c10c59 | 641 | |
3a811096 | 642 | <if cond="IS_MSVC_PRJ=='1' and BUILDING_LIB=='1'"> |
82ca3afe VS |
643 | <msvc-file-group>Common Sources:src/common/*</msvc-file-group> |
644 | <msvc-file-group>MSW Sources:src/msw/*</msvc-file-group> | |
645 | <msvc-file-group>Generic Sources:src/generic/*</msvc-file-group> | |
646 | <msvc-file-group>wxUniv Sources:src/univ/*</msvc-file-group> | |
647 | <msvc-file-group>wxHTML Sources:src/html/*</msvc-file-group> | |
648 | <msvc-file-group>Setup Headers:*/setup.h</msvc-file-group> | |
82ca3afe VS |
649 | <msvc-file-group>MSW Headers:*wx/msw/*.h</msvc-file-group> |
650 | <msvc-file-group>Generic Headers:*wx/generic/*.h</msvc-file-group> | |
651 | <msvc-file-group>wxUniv Headers:*wx/univ/*.h</msvc-file-group> | |
652 | <msvc-file-group>wxHTML Headers:*wx/html/*.h</msvc-file-group> | |
cbba971f | 653 | <msvc-file-group>Common Headers:*wx/*.h</msvc-file-group> |
82ca3afe | 654 | </if> |
ddf98968 | 655 | </template> |
cb8bbc13 | 656 | |
c8d58531 MW |
657 | <if cond="FORMAT=='autoconf'"> |
658 | <set var="RCDEFDIR"> | |
659 | <if cond="TOOLKIT=='MSW'"> | |
660 | $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME) | |
661 | </if> | |
662 | </set> | |
663 | </if> | |
664 | ||
fab9850d | 665 | <template id="wx_dll_b" template="wx_lib_b"> |
ddf98968 VS |
666 | <set var="WXDLLNAME">$(wxwin.mkDllName(wxid))</set> |
667 | <dllname>$(WXDLLNAME)</dllname> | |
668 | <version>$(WX_VERSION)</version> | |
669 | <so_version>$(WXSOVERSION)</so_version> | |
7121be53 | 670 | |
31da10de VS |
671 | <!-- FIXME: until libtool scheme is implemented in bakefile --> |
672 | <ldflags cond="FORMAT=='autoconf'">$(WXMACVERSION_CMD)</ldflags> | |
d181c36e VS |
673 | |
674 | <!-- version info resources: --> | |
79a2ea34 VS |
675 | <res-define>WXDLLNAME=$(WXDLLNAME)</res-define> |
676 | <if cond="FORMAT=='autoconf'"> | |
677 | <res-include>$(RCDEFDIR)</res-include> | |
678 | <res-include>$(TOP_SRCDIR)include</res-include> | |
19beefa6 | 679 | <postlink-command>$(DYLIB_RPATH_POSTLINK)</postlink-command> |
260c165f | 680 | </if> |
102d46f3 | 681 | <win32-res>$(WXTOPDIR)src/msw/version.rc</win32-res> |
19beefa6 | 682 | |
ddf98968 | 683 | </template> |
c0608865 | 684 | |
0bcf9597 | 685 | <template id="wx_3rdparty_dependencies_gui" cond="USE_GUI=='1'"> |
3fe70739 VS |
686 | <depends>wxtiff</depends> |
687 | <depends>wxjpeg</depends> | |
688 | <depends>wxpng</depends> | |
303a585d | 689 | <depends>wxscintilla</depends> |
0bcf9597 WS |
690 | </template> |
691 | ||
692 | <template id="wx_3rdparty_dependencies" | |
693 | template="wx_3rdparty_dependencies_gui"> | |
390c0cfb | 694 | <depends>wxexpat</depends> |
c74dc163 VS |
695 | <depends>wxzlib</depends> |
696 | <depends>wxregex</depends> | |
697 | </template> | |
ee929bcf | 698 | |
0bcf9597 | 699 | <template id="wx_3rdparty_includes_gui" cond="USE_GUI=='1'"> |
43b0b6bc WS |
700 | <if cond="FORMAT=='watcom' and TOOLKIT=='MGL'"> |
701 | <include>$(DOLLAR)(%SCITECH)/include</include> | |
702 | </if> | |
3442c078 | 703 | <include>$(INC_TIFF_BUILD)</include> |
ee929bcf VS |
704 | <include>$(INC_TIFF)</include> |
705 | <include>$(INC_JPEG)</include> | |
706 | <include>$(INC_PNG)</include> | |
0bcf9597 WS |
707 | </template> |
708 | ||
709 | <template id="wx_3rdparty_includes" | |
710 | template="wx_3rdparty_includes_gui"> | |
ee929bcf | 711 | <include>$(INC_ZLIB)</include> |
ee929bcf VS |
712 | <include>$(INC_REGEX)</include> |
713 | <include>$(INC_EXPAT)</include> | |
714 | </template> | |
e2c10c59 | 715 | |
9698d244 VS |
716 | <template id="wx_lib" |
717 | template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/> | |
718 | <template id="wx_base_lib" | |
719 | template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"> | |
e2c10c59 | 720 | <define>wxUSE_GUI=0</define> |
15d93f1e VS |
721 | </template> |
722 | ||
ee929bcf VS |
723 | <template id="wx_dll" |
724 | template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes" | |
9698d244 | 725 | template_append="msvc_setup_h,wx_append_nomono"/> |
ee929bcf VS |
726 | <template id="wx_base_dll" |
727 | template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes" | |
9698d244 | 728 | template_append="msvc_setup_h,wx_append_base_nomono"> |
e2c10c59 | 729 | <define>wxUSE_GUI=0</define> |
15d93f1e | 730 | </template> |
e2c10c59 | 731 | |
ae4ae157 | 732 | <!-- =============================================================== --> |
77ffb593 | 733 | <!-- Templates for building wxWidgets plugins: --> |
ae4ae157 VS |
734 | <!-- =============================================================== --> |
735 | ||
ae4ae157 | 736 | <if cond="WX_STABLE_BRANCH=='1'"> |
c79241a2 | 737 | <set var="PLUGIN_VERSION0"> |
a1bf307a RL |
738 | <if cond="PLATFORM_UNIX=='1'">$(WX_RELEASE)</if> |
739 | <if cond="PLATFORM_UNIX=='0'">$(WX_RELEASE_NODOT)</if> | |
ae4ae157 VS |
740 | </set> |
741 | </if> | |
742 | <if cond="WX_STABLE_BRANCH=='0'"> | |
c79241a2 | 743 | <set var="PLUGIN_VERSION0"> |
a1bf307a RL |
744 | <if cond="PLATFORM_UNIX=='1'">$(WX_VERSION)</if> |
745 | <if cond="PLATFORM_UNIX=='0'">$(WX_VERSION_NODOT)</if> | |
ae4ae157 VS |
746 | </set> |
747 | </if> | |
c79241a2 VS |
748 | <set var="PLUGVERDELIM"> |
749 | <if cond="PLATFORM_UNIX=='1'">-</if> | |
750 | <if cond="PLATFORM_UNIX=='0'"></if> | |
751 | </set> | |
752 | <set var="PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)</set> | |
e2c10c59 | 753 | |
c79241a2 VS |
754 | <set var="PLUGINS_INST_DIR" make_var="1"> |
755 | $(LIBDIR)/wx/$(PLUGIN_VERSION0) | |
756 | </set> | |
ae4ae157 VS |
757 | |
758 | <define-rule name="wx-base-plugin" extends="module"> | |
759 | <template> | |
760 | <dllname> | |
c6684d42 | 761 | $(id)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER) |
ae4ae157 VS |
762 | </dllname> |
763 | <define>WXUSINGDLL</define> | |
15d93f1e | 764 | <define>wxUSE_GUI=0</define> |
c79241a2 | 765 | <install-to>$(PLUGINS_INST_DIR)</install-to> |
ae4ae157 VS |
766 | </template> |
767 | </define-rule> | |
e2c10c59 | 768 | |
ae4ae157 VS |
769 | <define-rule name="wx-gui-plugin" extends="module"> |
770 | <template template="wx"> | |
771 | <dllname> | |
c6684d42 | 772 | $(id)_$(PORTNAME)$(WXUNIVNAME)$(WX_U_D_SUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER) |
ae4ae157 VS |
773 | </dllname> |
774 | <define>WXUSINGDLL</define> | |
c79241a2 | 775 | <install-to>$(PLUGINS_INST_DIR)</install-to> |
ae4ae157 VS |
776 | </template> |
777 | </define-rule> | |
e2c10c59 | 778 | |
ddf98968 | 779 | <!-- =============================================================== --> |
591a3be4 | 780 | <!-- Support for wxWidgets samples: --> |
ddf98968 VS |
781 | <!-- =============================================================== --> |
782 | ||
783 | <!-- Link against one wxWin library. Value must be literal! --> | |
485a205e | 784 | <define-tag name="wx-lib" rules="exe,dll,module"> |
ddf98968 | 785 | <sys-lib>$(wxwin.libToLink(value))</sys-lib> |
22cef566 | 786 | <ldlibs>$(wxwin.extraLdflags(value))</ldlibs> |
7a4fa569 | 787 | <!-- msvs200?prj formats don't support external dependencies yet: --> |
5acf8f1d | 788 | <if cond="FORMAT in ['msvc6prj','msevc4prj'] and MONOLITHIC=='0'"> |
dce0742b | 789 | <depends-on-dsp>$(wxwin.makeDspDependency(value))</depends-on-dsp> |
7bd54b68 | 790 | </if> |
ddf98968 VS |
791 | </define-tag> |
792 | ||
4bae0a94 VS |
793 | |
794 | <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain | |
795 | {top_srcdir} from configure, poor bakefile can't know that | |
796 | and won't output top_srcdir = @top_srcdir@ line): --> | |
797 | <set var="VARS_DONT_ELIMINATE" append="1">top_srcdir</set> | |
798 | ||
799 | ||
ddf98968 | 800 | </makefile> |