+ <template id="wx_3rdparty_dependencies">
+ <depends>wxtiff</depends>
+ <depends>wxjpeg</depends>
+ <depends>wxpng</depends>
+ <depends>wxexpat</depends>
+ <depends>wxzlib</depends>
+ <depends cond="FORMAT=='autoconf'">wxodbc</depends>
+ <depends>wxregex</depends>
+ </template>
+
+ <template id="wx_3rdparty_includes">
+ <include>$(INC_TIFF)</include>
+ <include>$(INC_JPEG)</include>
+ <include>$(INC_PNG)</include>
+ <include>$(INC_ZLIB)</include>
+ <include>$(INC_ODBC)</include>
+ <include>$(INC_REGEX)</include>
+ <include>$(INC_EXPAT)</include>
+ </template>
+
+ <template id="msvc_setup_h">
+ <msvc-copy-setup-h/>
+ </template>
+
+ <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 wxWindows plugins: -->
+ <!-- =============================================================== -->
+
+ <if cond="WX_STABLE_BRANCH=='1'">
+ <set var="PLUGIN_VERSION">
+ <if cond="PLATFORM_UNIX=='1'">
+ -$(WXVER_MAJOR).$(WXVER_MINOR)
+ </if>
+ <if cond="PLATFORM_UNIX=='0'">
+ $(WXVER_MAJOR)$(WXVER_MINOR)
+ </if>
+ </set>
+ </if>
+ <if cond="WX_STABLE_BRANCH=='0'">
+ <set var="PLUGIN_VERSION">
+ <if cond="PLATFORM_UNIX=='1'">
+ -$(WXVER_MAJOR).$(WXVER_MINOR).$(WXVER_RELEASE)
+ </if>
+ <if cond="PLATFORM_UNIX=='0'">
+ $(WXVER_MAJOR)$(WXVER_MINOR)$(WXVER_RELEASE)
+ </if>
+ </set>
+ </if>
+
+ <define-rule name="wx-base-plugin" extends="module">
+ <template>
+ <dllname>
+ $(id)$(addPrefixIfNotEmpty('_',WXNAMESUFFIX))$(PLUGIN_VERSION)$(WXCOMPILER)
+ </dllname>
+ <define>WXUSINGDLL</define>
+ <define>wxUSE_GUI=0</define>
+ </template>
+ </define-rule>
+
+ <define-rule name="wx-gui-plugin" extends="module">
+ <template template="wx">
+ <dllname>
+ $(id)_$(PORTNAME)$(WXUNIVNAME)$(WXNAMESUFFIX)$(PLUGIN_VERSION)$(WXCOMPILER)
+ </dllname>
+ <define>WXUSINGDLL</define>
+ </template>
+ </define-rule>