+
+ <!-- =============================================================== -->
+ <!-- Templates for libs: -->
+ <!-- =============================================================== -->
+
+ <set var="DEBUGFLAG">
+ <if cond="BUILD=='debug'">on</if>
+ <if cond="BUILD=='release'">off</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'">__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>
+ <optimize>$(OPTIMIZEFLAG)</optimize>
+ <threading>multi</threading>
+ <runtime-libs>$(RUNTIME_LIBS)</runtime-libs>
+ <if cond="FORMAT!='autoconf'">
+ <cppflags>$(EXTRACFLAGS)</cppflags>
+ </if>
+ </template>
+
+ <template id="anylib">
+ <depends cond="FORMAT!='autoconf' and BUILDING_LIB=='1'">setup.h</depends>
+ <dirname>$(LIBDIRNAME)</dirname>
+ <install-to>$(LIBDIR)</install-to>
+ </template>
+
+ <template id="3rdparty_lib" template="common_settings,anylib">
+ <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname>
+ </template>
+
+