+ <template id="common_settings">
+ <debug-info>$(DEBUGINFO)</debug-info>
+ <debug-runtime-libs>$(DEBUGRUNTIME)</debug-runtime-libs>
+ <optimize>$(OPTIMIZEFLAG)</optimize>
+ <threading>$(THREADSFLAG)</threading>
+ <runtime-libs>$(RUNTIME_LIBS)</runtime-libs>
+ <cxx-rtti>$(RTTIFLAG)</cxx-rtti>
+ <cxx-exceptions>$(EXCEPTIONSFLAG)</cxx-exceptions>
+ <if cond="FORMAT!='autoconf'">
+ <cppflags>$(EXTRACFLAGS)</cppflags>
+ </if>
+ <define>$(NO_VC_CRTDBG)</define>
+ <define>$(WIN32_WINNT)</define>
+ </template>
+
+ <template id="anylib">
+ <dirname>$(LIBDIRNAME)</dirname>
+ <install-to>$(LIBDIR)</install-to>
+ </template>
+
+ <template id="3rdparty_lib" template="common_settings,anylib">
+ <if cond="FORMAT=='autoconf'">
+ <libname>$(id)$(WXDEBUGFLAG)$(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>
+ </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">
+ <!-- FIXME: remove this once we require >=bkl-0.1.9 -->
+ <if cond="BAKEFILE_VERSION in ['0.1.7', '0.1.8']">
+ <msvc-project-files>
+ $(addPrefixToList('include\', wxwin.headersOnly(value)))
+ </msvc-project-files>
+ </if>
+ <if cond="BAKEFILE_VERSION not in ['0.1.7', '0.1.8']">
+ <msvc-project-files>
+ $(addPrefixToList('include\\', wxwin.headersOnly(value)))
+ </msvc-project-files>
+ </if>
+ </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>
+