<?xml version="1.0" ?>
-<!-- $Id$ -->
<!--
Presets for building wxWidgets applications.
- WX_* : used to let the user of the generated makefile choose a wxWidgets
build among those available; you can use them in your project to
- e.g. build a target only if WX_DEBUG is 0 or if WX_PORT is "msw".
+ e.g. build a target only if WX_SHARED is 0 or if WX_PORT is "msw".
VARIABLES:
- wx, wx-lib: templates to be used respectively for <dll>/<exe> and <lib>
targets; they add all the wxWidgets-related settings (e.g. the
- include and library search paths, the __WXDEBUG__ symbol, etc).
+ include and library search paths, the necessary preprocessor
+ symbols, etc).
- wxgui: to be used when building GUI-mode applications.
need it when compiling wxBase-only code).
- wxlike: this template should be combined with "wx" or "wx-lib" and will
- make your project build with the same Unicode, debug & shared
+ make your project build with the same Unicode & shared
config as the wxWidgets build selected using the WX_* options.
NOTE: as a reference here is a list of all wxWidgets libraries satisfying
the dependency constraints mentioned in <wx-lib> description:
+ <wx-lib>webview</wx-lib>
<wx-lib>richtext</wx-lib>
<wx-lib>aui</wx-lib>
+ <wx-lib>ribbon</wx-lib>
<wx-lib>propgrid</wx-lib>
<wx-lib>stc</wx-lib>
<wx-lib>qa</wx-lib>
<requires version="0.2.2"/>
+ <using module="wx_presets"/>
<!-- this variable identifies the version of the wx presets.
this is changed only when major changes to wxpresets take place.
tag definitions.
-->
<set var="WX_LIB_LIST">
- base core net xml xrc html adv media gl qa aui propgrid richtext stc
+ base core net xml xrc html adv media gl qa aui ribbon propgrid richtext stc webview
</set>
<!-- if you define this variable to 0 before including wx presets, the
<!-- 'gnu' format needs to redefine the following options later in wx_unix.bkl -->
<if cond="FORMAT=='gnu'">
<set var="WX_UNICODE"/>
- <set var="WX_DEBUG"/>
<set var="WX_SHARED"/>
<set var="WX_PORT"/>
<set var="WX_VERSION"/>
<values-description>Release,Debug</values-description>
<default-value>$(WX_DEBUG_DEFAULT)</default-value>
<description>
- Use debug build of wxWidgets (define __WXDEBUG__)?
+ Use debug build of wxWidgets (linked with debug CRT)?
</description>
</option>
</if>
<if cond="WX_DEBUG=='0' and WX_UNICODE=='1'">u</if>
</set>
+ <if cond="FORMAT!='autoconf'">
+ <set var="COMPILER_PREFIX" make_var="1">$(COMPILER)</set>
+ </if>
+
</define-tag>
<!-- Sets as output folder for the current target a directory
- called "$(value)/$(COMPILER)_lib|dll", just like wxWidgets does.
- This makes it possible to keep separed the libraries/exes compiled with
+ called "$(value)/$(COMPILER_PREFIX)_lib|dll", just like wxWidgets does.
+ This makes it possible to keep separated the libraries/exes compiled with
different compilers and with a different value for WX_SHARED.
-->
<define-tag name="wxlike-dirname" rules="lib,dll,exe,module">
<if cond="WX_SHARED=='1'">dll</if>
</set>
<set var="_DIRNAME">
- $(value)/$(COMPILER)_$(_DIRNAME_SHARED_SUFFIX)
+ $(value)/$(COMPILER_PREFIX)_$(_DIRNAME_SHARED_SUFFIX)
</set>
<dirname>$(_DIRNAME)</dirname>
<!-- -->
<!-- Sets the BUILDDIR variable using the same rules used by wxWidgets itself.
- This makes it possible to keep separed the object files compiled with
+ This makes it possible to keep separated the object files compiled with
different configuration settings.
-->
<define-global-tag name="set-wxlike-builddir">
</set>
<set var="BUILDDIR">
- $(COMPILER)$(WX_PORT)$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)
+ $(COMPILER_PREFIX)$(WX_PORT)$(WXLIBPOSTFIX)$(_BUILDDIR_SHARED_SUFFIX)
</set>
</if>
</define-global-tag>