+ <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>
+ <!-- does not cover all cases, but better than nothing -->
+ <set var="NO_VC_CRTDBG">
+ <if cond="FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__</if>
+ <if cond="FORMAT=='msvc' and BUILD=='release' and DEBUG_FLAG=='1'">__NO_VC_CRTDBG__</if>
+ </set>
+ <set var="UNICODE_DEFINE">
+ <if cond="FORMAT!='autoconf' and UNICODE=='1'">_UNICODE</if>
+ </set>
+
+ <set var="UNICOWS_LIB">
+ <if cond="MSLU=='1'">unicows</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>
+ <cxx-rtti>$(EXCEPTIONSFLAG)</cxx-rtti>
+ <cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions>
+ <if cond="FORMAT!='autoconf'">
+ <cppflags>$(EXTRACFLAGS)</cppflags>
+ </if>
+ <define>$(NO_VC_CRTDBG)</define>
+ </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>
+ <!--
+ we want to install 3rd party libs system-wide only with static
+ version of wxWidgets; otherwise they are embedded in shared libs:
+ -->
+ <install-if>SHARED=='0'</install-if>
+ <pic>$(substituteFromDict(SHARED, {'0':'off', '1':'on'}))</pic>
+ </template>
+
+
+ <!-- deal with the need to copy setup.h here: -->
+
+ <set var="IS_MSVC_PRJ">$(FORMAT in ['msvc6prj','msevc4prj'])</set>
+
+ <define-tag name="msvc-headers" rules="dll,lib">
+ <if cond="IS_MSVC_PRJ">
+ <msvc-project-files>
+ $(addPrefixToList('include\', wxwin.headersOnly(value)))
+ </msvc-project-files>
+ </if>
+ </define-tag>
+
+ <define-tag name="msvc-copy-setup-h" rules="dll,lib">
+ <if cond="FORMAT=='msevc4prj'">
+ <msvc-headers>wx/msw/wince/setup.h</msvc-headers>
+ <set var="vc_setup_h">wince\setup.h</set>
+ <set var="vc_setup_h_rule">wince_setup_h</set>
+ </if>
+ <if cond="FORMAT!='msevc4prj'">
+ <msvc-headers>wx/msw/setup.h</msvc-headers>
+ <set var="vc_setup_h">setup.h</set>
+ <set var="vc_setup_h_rule">setup_h</set>
+ </if>
+ <if cond="IS_MSVC_PRJ">
+ <set var="_custom_build_files" append="1">
+ include\wx\msw\$(vc_setup_h)
+ </set>
+ <set var="_custom_build_include_wx_msw_$(vc_setup_h_rule)">
+Creating $(SETUPHDIR)\wx\setup.h
+InputPath=..\include\wx\msw\$(vc_setup_h)
+
+"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
+$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
+ </set>
+ </if>
+ </define-tag>
+
+ <template id="msvc_setup_h">
+ <msvc-copy-setup-h/>
+ </template>
+