</set>
<set var="WXDEBUGFLAG">
- <if cond="BUILD=='debug'">d</if>
+ <if cond="BUILD=='debug' and DEBUG_FLAG=='default'">d</if>
+ <if cond="DEBUG_FLAG=='1'">d</if>
</set>
<set var="WXUNICODEFLAG">
<if cond="UNICODE=='1'">u</if>
<!-- Templates for libs: -->
<!-- =============================================================== -->
- <set var="DEBUGFLAG">
- <if cond="BUILD=='debug'">on</if>
- <if cond="BUILD=='release'">off</if>
+ <set var="DEBUGINFO">
+ <if cond="BUILD=='debug' and DEBUG_INFO=='default'">on</if>
+ <if cond="DEBUG_INFO=='1'">on</if>
+ <if cond="BUILD=='release' and DEBUG_INFO=='default'">off</if>
+ <if cond="DEBUG_INFO=='0'">off</if>
+ </set>
+ <set var="DEBUGRUNTIME">
+ <if cond="DEBUG_RUNTIME_LIBS=='default'">$(DEBUGINFO)</if>
+ <if cond="DEBUG_RUNTIME_LIBS=='0'">off</if>
+ <if cond="DEBUG_RUNTIME_LIBS=='1'">on</if>
</set>
<set var="OPTIMIZEFLAG">
<if cond="BUILD=='debug'">off</if>
</set>
<set var="DEBUG_DEFINE">
- <if cond="FORMAT!='autoconf' and BUILD=='debug'">__WXDEBUG__</if>
+ <if cond="FORMAT!='autoconf' and BUILD=='debug' and DEBUG_FLAG=='default'">__WXDEBUG__</if>
+ <if cond="FORMAT!='autoconf' and DEBUG_FLAG=='1'">__WXDEBUG__</if>
</set>
<set var="UNICODE_DEFINE">
<if cond="FORMAT!='autoconf' and UNICODE=='1'">wxUSE_UNICODE=1</if>
</set>
<template id="common_settings">
- <debug-info>$(DEBUGFLAG)</debug-info>
+ <debug-info>$(DEBUGINFO)</debug-info>
+ <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs>
<optimize>$(OPTIMIZEFLAG)</optimize>
<threading>multi</threading>
<runtime-libs>$(RUNTIME_LIBS)</runtime-libs>
<set var="BUILDING_LIB" overwrite="0">0</set>
+ <option name="BUILD">
+ <values>debug release</values>
+ <values-description>Debug Release</values-description>
+ <default-value>release</default-value>
+ <description>
+ Type of compiled binaries
+ </description>
+ </option>
+
+ <option name="DEBUG_INFO">
+ <values>0 1 default</values>
+ <default-value>default</default-value>
+ <description>
+Should debugging info be included in the executables? The default value
+"default" means that debug info will be included if BUILD=debug
+and not included if BUILD=release.
+ </description>
+ </option>
+
+ <option name="DEBUG_FLAG">
+ <values>0 1 default</values>
+ <default-value>default</default-value>
+ <description>
+Should __WXDEBUG__ be defined? The default value "default" means that it will
+be defined if BUILD=debug and not defined if BUILD=release.
+ </description>
+ </option>
+
+ <if cond="FORMAT=='msvc'">
+ <option name="DEBUG_RUNTIME_LIBS">
+ <values>0 1 default</values>
+ <default-value>default</default-value>
+ <description>
+Should link against debug RTL (msvcrtd.dll) or release (msvcrt.dll)?
+Acts according to DEBUG_INFO by default.
+ </description>
+ </option>
+ </if>
+ <if cond="FORMAT!='msvc'">
+ <set var="DEBUG_RUNTIME_LIBS">default</set>
+ </if>
<option name="UNICODE">
<values>0 1</values>
<option name="CFG">
<default-value></default-value>
<description>
- Name of your custom configuration. This affects directory
- where object files are stored as well as the location of
- compiled .lib files and setup.h under the lib/ toplevel directory.
+Name of your custom configuration. This affects directory
+where object files are stored as well as the location of
+compiled .lib files and setup.h under the lib/ toplevel directory.
</description>
</option>
<values>dynamic static</values>
<default-value>dynamic</default-value>
<description>
- Version of C runtime library to use. You can change this to
- static if SHARED=0, but it is highly recommended to not do
- it if SHARED=1 unless you know what you are doing.
+Version of C runtime library to use. You can change this to
+static if SHARED=0, but it is highly recommended to not do
+it if SHARED=1 unless you know what you are doing.
</description>
</option>
<values>3 2.95</values>
<default-value>3</default-value>
<description>
- Set the version of your Mingw installation here.
- "3" ...... this is for Mingw 2.0 or newer that cames with gcc3
- "2.95" ... for Mingw 1.1 or any of the older versions
+Set the version of your Mingw installation here.
+ "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
+ "2.95" ... for Mingw 1.1 or any of the older versions
</description>
</option>
<set var="GCCFLAGS">