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