+
+ <!-- =============================================================== -->
+ <!-- Templates for libs: -->
+ <!-- =============================================================== -->
+
+ <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>
+ <if cond="BUILD=='release'">speed</if>
+ </set>
+
+ <set var="DEBUG_DEFINE">
+ <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>$(DEBUGINFO)</debug-info>
+ <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs>
+ <optimize>$(OPTIMIZEFLAG)</optimize>
+ <threading>multi</threading>
+ <runtime-libs>$(RUNTIME_LIBS)</runtime-libs>
+ <if cond="FORMAT!='autoconf'">
+ <cppflags>$(EXTRACFLAGS)</cppflags>
+ </if>
+ </template>
+
+ <template id="anylib">
+ <dirname>$(LIBDIRNAME)</dirname>
+ <install-to>$(LIBDIR)</install-to>
+ </template>
+
+ <template id="3rdparty_lib" template="common_settings,anylib">
+ <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname>
+ </template>
+
+