- <!-- FIXME: temporary kludge! remove after upgrade to 0.1.4 -->
- <if cond="FORMAT=='msvc6prj'">
- <set var="__custom_build_files">
- $(_custom_build_files)
+ </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>