<define>WXMAKINGDLL_ADV</define>
<sources>$(ADVANCED_SRC) $(PLUGIN_ADV_SRC)</sources>
<msvc-headers>$(ADVANCED_HDR)</msvc-headers>
- <library>htmldll</library>
- <library>xmldll</library>
<library>coredll</library>
<library>basedll</library>
<ldlibs>$(PLUGIN_ADV_EXTRALIBS)</ldlibs>
<msvc-headers>$(HTML_HDR)</msvc-headers>
</dll>
+ <!-- use this to conditonally link against htmldll with <library>: -->
+ <set var="htmldll_library_link">
+ <if cond="SHARED=='1' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">htmldll</if>
+ </set>
+
<lib id="htmllib" template="wx_lib"
cond="SHARED=='0' and USE_GUI=='1' and USE_HTML=='1' and MONOLITHIC=='0'">
<sources>$(HTML_SRC)</sources>
<define>WXUSINGDLL</define>
<define>WXMAKINGDLL_XRC</define>
<sources>$(XRC_SRC)</sources>
- <library>htmldll</library>
+ <library>$(htmldll_library_link)</library>
<library>advdll</library>
<library>coredll</library>
<library>xmldll</library>
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">aui=auilib+auidll</set>
+ <!-- ================================================================ -->
+ <!-- RICHTEXT -->
+ <!-- ================================================================ -->
+
+ <dll id="richtextdll" template="wx_dll"
+ cond="SHARED=='1' and USE_RICHTEXT=='1' and MONOLITHIC=='0'">
+ <define>WXUSINGDLL</define>
+ <define>WXMAKINGDLL_RICHTEXT</define>
+ <sources>$(RICHTEXT_SRC)</sources>
+ <library>advdll</library>
+ <library>$(htmldll_library_link)</library>
+ <library>xmldll</library>
+ <library>coredll</library>
+ <library>basedll</library>
+ <msvc-headers>$(RICHTEXT_HDR)</msvc-headers>
+ </dll>
+
+ <lib id="richtextlib" template="wx_lib"
+ cond="SHARED=='0' and USE_RICHTEXT=='1' and MONOLITHIC=='0'">
+ <sources>$(RICHTEXT_SRC)</sources>
+ <msvc-headers>$(RICHTEXT_HDR)</msvc-headers>
+ </lib>
+
+ <set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">richtext=richtextlib+richtextdll</set>
+
</makefile>