+ <template id="wx_lib"
+ template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h"/>
+ <template id="wx_base_lib"
+ template="wx_lib_b,wx_3rdparty_includes,msvc_setup_h">
+ <define>wxUSE_GUI=0</define>
+ </template>
+
+ <template id="wx_dll"
+ template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
+ template_append="msvc_setup_h,wx_append_nomono"/>
+ <template id="wx_base_dll"
+ template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
+ template_append="msvc_setup_h,wx_append_base_nomono">
+ <define>wxUSE_GUI=0</define>
+ </template>
+
+ <!-- =============================================================== -->
+ <!-- Templates for building wxWidgets plugins: -->
+ <!-- =============================================================== -->
+
+ <if cond="WX_STABLE_BRANCH=='1'">
+ <set var="PLUGIN_VERSION0">
+ <if cond="PLATFORM_UNIX=='1'">$(WX_RELEASE)</if>
+ <if cond="PLATFORM_UNIX=='0'">$(WX_RELEASE_NODOT)</if>
+ </set>
+ </if>
+ <if cond="WX_STABLE_BRANCH=='0'">
+ <set var="PLUGIN_VERSION0">
+ <if cond="PLATFORM_UNIX=='1'">$(WX_VERSION)</if>
+ <if cond="PLATFORM_UNIX=='0'">$(WX_VERSION_NODOT)</if>
+ </set>
+ </if>
+ <set var="PLUGVERDELIM">
+ <if cond="PLATFORM_UNIX=='1'">-</if>
+ <if cond="PLATFORM_UNIX=='0'"></if>
+ </set>
+ <set var="PLUGIN_VERSION">$(PLUGVERDELIM)$(PLUGIN_VERSION0)</set>
+
+ <set var="PLUGINSUFFIX">
+ <if cond="UNICODE=='0' and BUILD=='release'"></if>
+ <if cond="UNICODE=='0' and BUILD=='debug'">d</if>
+ <if cond="UNICODE=='1' and BUILD=='release'">u</if>
+ <if cond="UNICODE=='1' and BUILD=='debug'">ud</if>
+ </set>
+
+ <set var="PLUGINS_INST_DIR" make_var="1">
+ $(LIBDIR)/wx/$(PLUGIN_VERSION0)
+ </set>
+
+ <define-rule name="wx-base-plugin" extends="module">
+ <template>
+ <dllname>
+ $(id)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
+ </dllname>
+ <define>WXUSINGDLL</define>
+ <define>wxUSE_GUI=0</define>
+ <install-to>$(PLUGINS_INST_DIR)</install-to>
+ </template>
+ </define-rule>
+
+ <define-rule name="wx-gui-plugin" extends="module">
+ <template template="wx">
+ <dllname>
+ $(id)_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
+ </dllname>
+ <define>WXUSINGDLL</define>
+ <install-to>$(PLUGINS_INST_DIR)</install-to>
+ </template>
+ </define-rule>
+