+ <template id="3rdparty_lib" template="common_settings,anylib">
+ <if cond="FORMAT=='autoconf'">
+ <libname>$(id)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)</libname>
+ </if>
+ <if cond="FORMAT!='autoconf'">
+ <libname>$(id)$(WXDEBUGFLAG)$(HOST_SUFFIX)</libname>
+ </if>
+ <!--
+ 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>
+
+ <!--
+ we don't want to have asserts in the 3rd party libraries code,
+ neither we nor wx users are interested in debugging them anyhow
+ -->
+ <define>NDEBUG</define>
+
+ <if cond="IS_MSVC">
+ <!--
+ we're not interested in deprecation warnings about the use of
+ standard C functions in the 3rd party libraries (these warnings
+ are only given by VC8+ but it's simpler to just always define
+ this symbol which disables them, even for previous VC versions)
+ -->
+ <define>_CRT_SECURE_NO_WARNINGS</define>
+ </if>
+ </template>
+
+
+ <!-- deal with the need to copy setup.h here: -->
+
+ <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>
+
+ <set var="msvc_copy_setup_h_script">
+ <if cond="IS_MSVC_PRJ=='1' and FORMAT not in ['msvc6prj','msevc4prj']">
+Creating $(SETUPHDIR)\wx\setup.h
+InputPath=..\..\include\wx\%s
+
+"$(SETUPHDIR)\wx\setup.h" :
+$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
+ </if>
+ <if cond="IS_MSVC_PRJ=='1' and FORMAT in ['msvc6prj','msevc4prj']">
+Creating $(SETUPHDIR)\wx\setup.h
+InputPath=..\..\include\wx\%s
+
+"$(SETUPHDIR)\wx\setup.h" : $(DOLLAR)(SOURCE) "$(DOLLAR)(INTDIR)" "$(DOLLAR)(OUTDIR)"
+$(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
+ </if>
+ </set>
+
+ <define-tag name="msvc-headers-setup-h" rules="dll,lib">
+ <if cond="IS_MSVC_PRJ">
+ <msvc-headers>
+ $(addPrefixToList('wx/', value))
+ </msvc-headers>
+ <set var="_custom_build_files" append="1">
+ $(nativePaths(addPrefixToList('include/wx/', value)))
+ </set>
+ </if>
+ </define-tag>
+
+ <define-tag name="msvc-copy-setup-h" rules="dll,lib">
+ <if cond="IS_MSVC_PRJ">
+ <if cond="FORMAT=='msevc4prj'">
+ <msvc-headers-setup-h>
+ msw/wince/setup.h
+ </msvc-headers-setup-h>
+ <set var="_custom_build_include_wx_msw_wince_setup_h">
+ $(msvc_copy_setup_h_script % 'msw\wince\setup.h')
+ </set>
+ </if>
+ <if cond="FORMAT!='msevc4prj'">
+ <!-- Unfortunately we have to include wx/univ/setup.h in both
+ cases because WXUNIV==1 is not a weak condition, but at
+ least don't include wxGTK setup.h when building wxMSW. -->
+ <if cond="TOOLKIT=='MSW'">
+ <msvc-headers-setup-h>
+ msw/setup.h
+ univ/setup.h
+ </msvc-headers-setup-h>
+ </if>
+ <if cond="TOOLKIT=='GTK'">
+ <msvc-headers-setup-h>
+ gtk/setup.h
+ univ/setup.h
+ </msvc-headers-setup-h>
+ </if>
+ <set var="_custom_build_include_wx_msw_setup_h">
+ <if cond="WXUNIV=='0' and TOOLKIT=='MSW'">
+ $(msvc_copy_setup_h_script % 'msw\setup.h')
+ </if>
+ </set>
+ <set var="_custom_build_include_wx_gtk_setup_h">
+ <if cond="WXUNIV=='0' and TOOLKIT=='GTK'">
+ $(msvc_copy_setup_h_script % 'gtk\setup.h')
+ </if>
+ </set>
+ <set var="_custom_build_include_wx_univ_setup_h">
+ <if cond="WXUNIV=='1'">
+ $(msvc_copy_setup_h_script % 'univ\setup.h')
+ </if>
+ </set>
+ </if>
+ </if>
+ </define-tag>
+
+ <define-tag name="msvc-create-rcdefs-h" rules="dll,lib">
+ <if cond="IS_MSVC_PRJ">
+ <msvc-headers-setup-h>
+ msw/genrcdefs.h
+ </msvc-headers-setup-h>
+ <!-- FIXME: we need another way to get the compiler name -->
+ <set var="VC_COMPILER">
+ <if cond="FORMAT=='msevc4prj'">$(_COMPILER)</if>
+ <if cond="FORMAT!='msevc4prj'">cl</if>
+ </set>
+ <set var="_custom_build_include_wx_msw_genrcdefs_h">
+Creating $(SETUPHDIR)\wx\msw\rcdefs.h
+InputPath=..\..\include\wx\msw\genrcdefs.h
+
+"$(SETUPHDIR)\wx\msw\rcdefs.h" : "$(DOLLAR)(SOURCE)" "$(SETUPHDIR)\wx\msw"
+$(TAB)$(VC_COMPILER) /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\rcdefs.h"
+ </set>
+ </if>
+ </define-tag>
+
+ <template id="msvc_setup_h">
+ <msvc-copy-setup-h/>
+ <msvc-create-rcdefs-h/>
+ </template>