]> git.saurik.com Git - wxWidgets.git/commitdiff
split wxBase into wxBase and wxNet libraries
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 27 Jul 2003 22:41:06 +0000 (22:41 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 27 Jul 2003 22:41:06 +0000 (22:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

21 files changed:
build/bakefiles/common.bkl
build/bakefiles/files.bkl
build/bakefiles/monolithic.bkl
build/bakefiles/multilib.bkl
build/bakefiles/wxwin.py
include/wx/defs.h
include/wx/filesys.h
include/wx/fs_inet.h
include/wx/gsocket.h
include/wx/protocol/file.h
include/wx/protocol/ftp.h
include/wx/protocol/http.h
include/wx/protocol/protocol.h
include/wx/sckaddr.h
include/wx/sckipc.h
include/wx/sckstrm.h
include/wx/socket.h
include/wx/url.h
samples/html/test/test.bkl
samples/sockets/sockets.bkl
src/common/fs_zip.cpp

index 0f29c350e298551f6133c3a891136cefe9ac6f81..450525a16dc9d83cd7e22a8bcf56c2e08532a55b 100644 (file)
     <set var="WXLIB_BASE">
         <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if>
     </set>
+    <set var="WXLIB_NET">
+        <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('net')))</if>
+    </set>
     <set var="WXLIB_CORE">
         <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if>
     </set>
index d9f031a353f9e615b56ac5d026b83dff9c2b4d18..335cab0a7601b2c707dc82368d8e4e16dd25c3b1 100644 (file)
@@ -39,7 +39,6 @@
 <set var="BASE_UNIX_SRC" hints="files">
     src/unix/baseunix.cpp
     src/unix/dir.cpp
-    src/unix/gsocket.c
     src/unix/mimetype.cpp
     src/unix/snglinst.cpp
     src/unix/threadpsx.cpp
     src/unix/utilsunx.cpp
 </set>
 <set var="BASE_UNIX_HDR" hints="files">
-    wx/unix/gsockunx.h
     wx/unix/mimetype.h
 </set>
 
 <set var="BASE_WIN32_SRC" hints="files">
-    src/msw/gsocket.c
-    src/msw/gsockmsw.c
     src/msw/basemsw.cpp
     src/msw/dde.cpp
     src/msw/dir.cpp
@@ -85,7 +81,6 @@
 <set var="BASE_DARWIN_SRC" hints="files">
     src/unix/baseunix.cpp
     src/unix/dir.cpp
-    src/unix/gsocket.c
     src/unix/mimetype.cpp
     src/unix/snglinst.cpp
     src/unix/threadpsx.cpp
@@ -99,7 +94,6 @@
 <set var="BASE_MAC_SRC" hints="files">
     src/unix/baseunix.cpp
     src/mac/dirmac.cpp
-    src/mac/gsocket.c
     src/mac/mimetmac.cpp
     src/mac/utils.cpp
     src/mac/utilsexc.cpp
     src/common/filename.cpp
     src/common/filesys.cpp
     src/common/fmapbase.cpp
-    src/common/fs_inet.cpp
     src/common/fs_zip.cpp
-    src/common/ftp.cpp
     src/common/hash.cpp
     src/common/hashmap.cpp
-    src/common/http.cpp
     src/common/init.cpp
     src/common/intl.cpp
     src/common/ipcbase.cpp
     src/common/mstream.cpp
     src/common/object.cpp
     src/common/process.cpp
-    src/common/protocol.cpp
     src/common/regex.cpp
-    src/common/sckaddr.cpp
-    src/common/sckfile.cpp
-    src/common/sckipc.cpp
-    src/common/sckstrm.cpp
-    src/common/socket.cpp
     src/common/stopwatch.cpp
     src/common/strconv.cpp
     src/common/stream.cpp
     src/common/tokenzr.cpp
     src/common/txtstrm.cpp
     src/common/unzip.c
-    src/common/url.cpp
     src/common/variant.cpp
     src/common/wfstream.cpp
     src/common/wxchar.cpp
     wx/filesys.h
     wx/fontenc.h
     wx/fontmap.h
-    wx/fs_inet.h
     wx/fs_zip.h
     wx/fs_mem.h
-    wx/gsocket.h
     wx/hash.h
     wx/hashmap.h
     wx/iconloc.h
     wx/platform.h
     wx/process.h
     wx/regex.h
-    wx/sckaddr.h
-    wx/sckipc.h
-    wx/sckstrm.h
-    wx/socket.h
     wx/snglinst.h
     wx/stopwatch.h
     wx/strconv.h
     wx/thrimpl.cpp
     wx/tokenzr.h
     wx/txtstrm.h
-    wx/url.h
     wx/utils.h
     wx/variant.h
     wx/vector.h
     wx/wxprec.h
     wx/zipstrm.h
     wx/zstream.h
+</set>
+
+
+<!-- ====================================================================== -->
+<!--                          wxNet (part of wxBase)                        -->
+<!-- ====================================================================== -->
+
+<set var="NET_UNIX_SRC" hints="files">
+    src/unix/gsocket.c
+</set>
+<set var="NET_UNIX_HDR" hints="files">
+    wx/unix/gsockunx.h
+</set>
+
+<set var="NET_WIN32_SRC" hints="files">
+    src/msw/gsocket.c
+    src/msw/gsockmsw.c
+</set>
+<set var="NET_WIN32_HDR" hints="files">
+    wx/msw/gsockmsw.h
+</set>
+
+<set var="NET_DARWIN_SRC" hints="files">
+    src/unix/gsocket.c
+</set>
+<set var="NET_DARWIN_HDR" hints="files">
+    wx/unix/gsockunx.h
+</set>
+
+<set var="NET_MAC_SRC" hints="files">
+    src/mac/gsocket.c
+</set>
+<set var="NET_MAC_HDR" hints="files">
+    wx/mac/gsockmac.h
+</set>
+
+<set var="NET_OS2_SRC" hints="files">
+</set>
+<set var="NET_OS2_HDR" hints="files">
+</set>
+
+<set var="NET_CMN_SRC" hints="files">
+    src/common/fs_inet.cpp
+    src/common/ftp.cpp
+    src/common/http.cpp
+    src/common/protocol.cpp
+    src/common/url.cpp
+    src/common/sckfile.cpp
+    src/common/sckaddr.cpp
+    src/common/sckipc.cpp
+    src/common/sckstrm.cpp
+    src/common/socket.cpp
+</set>
+<set var="NET_CMN_HDR" hints="files">
+    wx/fs_inet.h
+    wx/url.h
     wx/protocol/protocol.h
     wx/protocol/http.h
+    wx/protocol/ftp.h
+    wx/protocol/file.h
+    wx/gsocket.h
+    wx/sckaddr.h
+    wx/sckipc.h
+    wx/sckstrm.h
+    wx/socket.h
 </set>
 
 
 <!--                    Define sources for specific libraries:              -->
 <!-- ====================================================================== -->
 
+    <!-- wxBase files: -->
+
     <!-- Nested if would be nicer, but this works -->
     <set var="BASE_MACOSX_SRC" hints="files">
         <if cond="TOOLKIT=='MAC'">$(BASE_MAC_SRC)</if>
     <set var="BASE_AND_GUI_SRC" hints="files">
         $(BASE_AND_GUI_CMN_SRC) $(BASE_AND_GUI_PLATFORM_SRC)
     </set>
+    
+    
+    <!-- wxNet files: -->
+    <set var="NET_MACOSX_SRC" hints="files">
+        <if cond="TOOLKIT=='MAC'">$(NET_MAC_SRC)</if>
+        <if cond="TOOLKIT=='COCOA'">$(NET_DARWIN_SRC)</if>
+        <if cond="TOOLKIT=='GTK'">$(NET_DARWIN_SRC)</if>
+        <!-- FIXME: TOOLKIT!='MAC' is what we really want -->
+    </set>
+    <set var="NET_PLATFORM_SRC" hints="files">
+        <if cond="PLATFORM_UNIX=='1'">$(NET_UNIX_SRC)</if>
+        <if cond="PLATFORM_WIN32=='1'">$(NET_WIN32_SRC)</if>
+        <if cond="PLATFORM_MACOSX=='1'">$(NET_MACOSX_SRC)</if>
+    </set>
+    <set var="NET_PLATFORM_HDR" hints="files">
+        <if cond="PLATFORM_UNIX=='1'">$(NET_UNIX_HDR)</if>
+        <if cond="PLATFORM_WIN32=='1'">$(NET_WIN32_HDR)</if>
+        <if cond="TOOLKIT=='MAC'">$(NET_MAC_HDR)</if>
+        <if cond="TOOLKIT=='COCOA'">$(NET_DARWIN_HDR)</if>
+    </set>
+
+    <set var="NET_SRC" hints="files">
+        $(NET_CMN_SRC) $(NET_PLATFORM_SRC)
+    </set>
 
 
+
+    <!-- GUI sources: -->
+    
     <set var="LOWLEVEL_SRC" hints="files">
         <if cond="TOOLKIT=='GTK'">$(GTK_LOWLEVEL_SRC)</if>
         <if cond="TOOLKIT=='MOTIF'">$(MOTIF_LOWLEVEL_SRC)</if>
         <if cond="TOOLKIT=='X11'">$(X11_LOWLEVEL_HDR)</if>
         <if cond="TOOLKIT=='MGL'">$(MGL_LOWLEVEL_HDR)</if>
     </set>
-
+    
     <set var="GUI_SRC" hints="files">
         <if cond="TOOLKIT=='GTK'">$(GTK_SRC)</if>
         <if cond="TOOLKIT=='MOTIF'">$(MOTIF_SRC)</if>
 
     <set var="ALL_HEADERS" hints="files">
         $(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)
+        $(NET_CMN_HDR) $(NET_PLATFORM_HDR)
         $(ALL_GUI_HEADERS)
         $(HTML_HDR) $(XML_HDR)
         $(OPENGL_HDR)
index b59d87fac959f5f356d367bda5b2d20186992533..cd043384ac78f1ee974ab427cf31f75b7b29b43e 100644 (file)
@@ -6,7 +6,7 @@
         <if cond="USE_GUI=='1'">$(CORE_SRC) $(HTML_SRC)</if>
     </set>
     <set var="MONOLIB_SRC">
-        $(BASE_SRC) $(BASE_AND_GUI_SRC) $(MONOLIB_GUI_SRC) $(XML_SRC)
+        $(BASE_SRC) $(BASE_AND_GUI_SRC) $(NET_SRC) $(MONOLIB_GUI_SRC) $(XML_SRC)
     </set>
 
     <dll id="monodll" template="wx_dll"
index cbb21d4b6d8825015f6f6ce772b22f789dbcd49a..47e48207378881b95408aa21155202c8e7169e60 100644 (file)
         <sources>$(BASE_SRC) $(BASE_AND_GUI_SRC)</sources>
         <msvc-headers>$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)</msvc-headers>
     </lib>
+    
+    
+    <!-- ================================================================= -->
+    <!--                             wxNet library                         -->
+    <!-- ================================================================= -->
+    
+    <dll id="netdll" template="wx_base_dll"
+         cond="SHARED=='1' and MONOLITHIC=='0'">
+        <define>WXUSINGDLL</define>
+        <define>WXMAKINGDLL_NET</define>
+        <sources>$(NET_SRC)</sources>
+        <msvc-headers>$(NET_CMN_HDR) $(NET_PLATFORM_HDR)</msvc-headers>
+        <library>basedll</library>
+    </dll>
+    
+    <lib id="netlib" template="wx_base_lib"
+         cond="SHARED=='0' and MONOLITHIC=='0'">
+        <define>WXUSINGDLL</define>
+        <define>WXMAKINGDLL_NET</define>
+        <sources>$(NET_SRC)</sources>
+        <msvc-headers>$(NET_CMN_HDR)</msvc-headers>
+    </lib>
 
+    
     <!-- ================================================================= -->
     <!--                           Main GUI library                        -->
     <!-- ================================================================= -->
index 78c0162b00d8652b462d285619cfd3770d9a13a2..df23f4c9cf4a4926a83aa166331763e8b026b35c 100644 (file)
@@ -30,9 +30,9 @@ def mk_wxid(id):
 
 
 # All libs that are part of the main library (i.e. non-contrib):
-MAIN_LIBS = ['mono', 'base', 'core', 'html', 'xml']
+MAIN_LIBS = ['mono', 'base', 'core', 'html', 'xml', 'net']
 # List of library names/ids for categories with different names:
-LIBS_NOGUI = ['xml']
+LIBS_NOGUI = ['xml', 'net']
 LIBS_GUI   = ['core', 'html', 'gl']
 
 def mkLibName(wxid):
index 87282cf37508682cc9cd429c00dbe2f3044cc82d..06eff5caa1a1adeeddaaf3155060cb05d17e6b75 100644 (file)
@@ -395,6 +395,7 @@ typedef int wxWindowID;
         #define WXMAKINGDLL_BASE
     #endif
 
+    #define WXMAKINGDLL_NET
     #define WXMAKINGDLL_CORE
     #define WXMAKINGDLL_HTML
     #define WXMAKINGDLL_XML
@@ -413,6 +414,17 @@ typedef int wxWindowID;
     #define WXDLLIMPEXP_DATA_BASE(type) type
 #endif
 
+#ifdef WXMAKINGDLL_NET
+    #define WXDLLIMPEXP_NET WXEXPORT
+    #define WXDLLIMPEXP_DATA_NET(type) WXEXPORT type
+#elif defined(WXUSINGDLL)
+    #define WXDLLIMPEXP_NET WXIMPORT
+    #define WXDLLIMPEXP_DATA_NET(type) WXIMPORT type
+#else // not making nor using DLL
+    #define WXDLLIMPEXP_NET
+    #define WXDLLIMPEXP_DATA_NET(type) type
+#endif
+
 #ifdef WXMAKINGDLL_CORE
     #define WXDLLIMPEXP_CORE WXEXPORT
     #define WXDLLIMPEXP_DATA_CORE(type) WXEXPORT type
index f7147901859674b4334ec00ab0a4b63cd0fc446e..8aca77fc892efe20717682c42ed15088eb4f76e0 100644 (file)
@@ -27,7 +27,6 @@
 #if wxUSE_FILESYSTEM
 
 #include "wx/stream.h"
-#include "wx/url.h"
 #include "wx/datetime.h"
 #include "wx/filename.h"
 
index e7340b8ab97287999a99a03ad63d9580c779f9e0..c2e9bc0e1e0da1685844171bf390df39a6f9c141 100644 (file)
@@ -39,7 +39,7 @@ limitation)
 // wxInternetFSHandler
 //--------------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxInternetFSHandler : public wxFileSystemHandler
+class WXDLLIMPEXP_NET wxInternetFSHandler : public wxFileSystemHandler
 {
     private:
         wxHashTable m_Cache;
index 5cd91ae0018a6c7961345468155f0120f361a95c..a03616a9fcdb676c2f6c907c8404fd42bfd192f4 100644 (file)
@@ -17,8 +17,8 @@
 /* kludge for GTK..  gsockgtk.c craps out miserably if we include
    defs.h ...  no idea how other files get away with it.. */
 
-#if !defined( __WXMSW__ ) && !defined(  WXDLLEXPORT )
-#define WXDLLEXPORT
+#if !defined( __WXMSW__ ) && !defined(  WXDLLIMPEXP_NET )
+#define WXDLLIMPEXP_NET
 #endif
 
 #endif
@@ -251,7 +251,7 @@ void GSocket_SetTimeout(GSocket *socket, unsigned long millisec);
  *  operations do not clear this back to GSOCK_NOERROR, so use it only
  *  after an error.
  */
-GSocketError WXDLLEXPORT GSocket_GetError(GSocket *socket);
+GSocketError WXDLLIMPEXP_NET GSocket_GetError(GSocket *socket);
 
 
 /* Callbacks */
index b9474e44e5458830bbbce16ec584acc90308cbeb..f277beb912dcbfa8b5b15fb1d5f53f572c81c500 100644 (file)
@@ -23,7 +23,7 @@
 #include "wx/protocol/protocol.h"
 #include "wx/url.h"
 
-class WXDLLIMPEXP_BASE wxFileProto: public wxProtocol {
+class WXDLLIMPEXP_NET wxFileProto: public wxProtocol {
   DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto)
   DECLARE_PROTOCOL(wxFileProto)
 protected:
index 96263970368da3efed490ccf52977c1e070fa268..5356267702e26a24e4164469d19deedddbf291d8 100644 (file)
@@ -25,7 +25,7 @@
 #include "wx/protocol/protocol.h"
 #include "wx/url.h"
 
-class WXDLLIMPEXP_BASE wxFTP : public wxProtocol
+class WXDLLIMPEXP_NET wxFTP : public wxProtocol
 {
 public:
     enum TransferMode
index 05ab817ac5f02c9e6109fd5ca33f10d336d98cd2..b3ee9a5384b41137146792d9cea2e720a40d8554 100644 (file)
 #include "wx/hashmap.h"
 #include "wx/protocol/protocol.h"
 
-WX_DECLARE_EXPORTED_STRING_HASH_MAP( wxString, wxStringToStringHashMap );
+WX_DECLARE_STRING_HASH_MAP_WITH_DECL( wxString, wxStringToStringHashMap,
+                                      class WXDLLIMPEXP_NET );
 
-class WXDLLIMPEXP_BASE wxHTTP : public wxProtocol
+class WXDLLIMPEXP_NET wxHTTP : public wxProtocol
 {
 public:
   wxHTTP();
index 0e823616e02cffa1d3d68eb2d8014f52e0c40761..aa119b09c4d1c6515cac9da9ac2e61896053226d 100644 (file)
@@ -50,7 +50,7 @@ typedef enum
 // wxProtocol: abstract base class for all protocols
 // ----------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxProtocol
+class WXDLLIMPEXP_NET wxProtocol
 #if wxUSE_SOCKETS
  : public wxSocketClient
 #else
@@ -86,7 +86,7 @@ private:
 };
 
 #if wxUSE_SOCKETS
-wxProtocolError WXDLLIMPEXP_BASE GetLine(wxSocketBase *sock, wxString& result);
+wxProtocolError WXDLLIMPEXP_NET GetLine(wxSocketBase *sock, wxString& result);
 #endif
 
 // ----------------------------------------------------------------------------
@@ -108,7 +108,7 @@ bool wxProtocolUse##class = TRUE;
         wxProtocolUserFor##class() { wxProtocolUse##class = TRUE; } \
     } wxProtocolDoUse##class;
 
-class WXDLLIMPEXP_BASE wxProtoInfo : public wxObject
+class WXDLLIMPEXP_NET wxProtoInfo : public wxObject
 {
 public:
     wxProtoInfo(const wxChar *name,
index adb67509b2b3f6fe30323f35879ed691a0ed19d2..8e7067b0863b73fb3cbcd5fa72a43f193532ab87 100644 (file)
@@ -24,7 +24,7 @@
 #include "wx/gsocket.h"
 
 
-class WXDLLIMPEXP_BASE wxSockAddress : public wxObject {
+class WXDLLIMPEXP_NET wxSockAddress : public wxObject {
   DECLARE_ABSTRACT_CLASS(wxSockAddress)
 public:
   typedef enum { IPV4=1, IPV6=2, UNIX=3 } Addr;
@@ -52,7 +52,7 @@ private:
   void Init();
 };
 
-class WXDLLIMPEXP_BASE wxIPV4address : public wxSockAddress {
+class WXDLLIMPEXP_NET wxIPV4address : public wxSockAddress {
   DECLARE_DYNAMIC_CLASS(wxIPV4address)
 public:
   wxIPV4address();
@@ -79,7 +79,7 @@ private:
 };
 
 #ifdef ENABLE_IPV6
-class WXDLLIMPEXP_BASE wxIPV6address : public wxSockAddress {
+class WXDLLIMPEXP_NET wxIPV6address : public wxSockAddress {
   DECLARE_DYNAMIC_CLASS(wxIPV6address)
 private:
   struct sockaddr_in6 *m_addr;
@@ -108,7 +108,7 @@ public:
 # include <sys/un.h>
 #endif
 
-class WXDLLIMPEXP_BASE wxUNIXaddress : public wxSockAddress {
+class WXDLLIMPEXP_NET wxUNIXaddress : public wxSockAddress {
   DECLARE_DYNAMIC_CLASS(wxUNIXaddress)
 private:
   struct sockaddr_un *m_addr;
index b61a28be5900a108502314d9eaf550edee0aa937..0c159f1e54c0c394f178e15d4f7e61c785df441d 100644 (file)
  *
  */
 
-class WXDLLIMPEXP_BASE wxTCPServer;
-class WXDLLIMPEXP_BASE wxTCPClient;
+class WXDLLIMPEXP_NET wxTCPServer;
+class WXDLLIMPEXP_NET wxTCPClient;
 
-class WXDLLIMPEXP_BASE wxTCPConnection: public wxConnectionBase
+class WXDLLIMPEXP_NET wxTCPConnection: public wxConnectionBase
 {
   DECLARE_DYNAMIC_CLASS(wxTCPConnection)
 
index de42898eac9bab3c4077b658d310e4b717fdb867..af1785542e70ce917b545a9713a6892d3e6dc4eb 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "wx/socket.h"
 
-class WXDLLIMPEXP_BASE wxSocketOutputStream : public wxOutputStream
+class WXDLLIMPEXP_NET wxSocketOutputStream : public wxOutputStream
 {
  public:
   wxSocketOutputStream(wxSocketBase& s);
@@ -40,7 +40,7 @@ class WXDLLIMPEXP_BASE wxSocketOutputStream : public wxOutputStream
     DECLARE_NO_COPY_CLASS(wxSocketOutputStream)
 };
 
-class WXDLLIMPEXP_BASE wxSocketInputStream : public wxInputStream
+class WXDLLIMPEXP_NET wxSocketInputStream : public wxInputStream
 {
  public:
   wxSocketInputStream(wxSocketBase& s);
@@ -59,7 +59,7 @@ class WXDLLIMPEXP_BASE wxSocketInputStream : public wxInputStream
     DECLARE_NO_COPY_CLASS(wxSocketInputStream)
 };
 
-class WXDLLIMPEXP_BASE wxSocketStream : public wxSocketInputStream,
+class WXDLLIMPEXP_NET wxSocketStream : public wxSocketInputStream,
                    public wxSocketOutputStream
 {
  public:
index 965f39a9210dedef34d39987dcd68b1123c529c2..b3ce8ced2c71c4988e5eda609fdce195ec063202 100644 (file)
@@ -105,7 +105,7 @@ typedef int wxSocketFlags;
 // wxSocketBase
 // --------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxSocketBase : public wxObject
+class WXDLLIMPEXP_NET wxSocketBase : public wxObject
 {
   DECLARE_CLASS(wxSocketBase)
 
@@ -270,7 +270,7 @@ private:
 // wxSocketServer
 // --------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxSocketServer : public wxSocketBase
+class WXDLLIMPEXP_NET wxSocketServer : public wxSocketBase
 {
   DECLARE_CLASS(wxSocketServer)
 
@@ -290,7 +290,7 @@ public:
 // wxSocketClient
 // --------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxSocketClient : public wxSocketBase
+class WXDLLIMPEXP_NET wxSocketClient : public wxSocketBase
 {
   DECLARE_CLASS(wxSocketClient)
 
@@ -312,7 +312,7 @@ public:
 
 // WARNING: still in alpha stage
 
-class WXDLLIMPEXP_BASE wxDatagramSocket : public wxSocketBase
+class WXDLLIMPEXP_NET wxDatagramSocket : public wxSocketBase
 {
   DECLARE_CLASS(wxDatagramSocket)
 
@@ -337,7 +337,7 @@ public:
 // wxSocketEvent
 // --------------------------------------------------------------------------
 
-class WXDLLIMPEXP_BASE wxSocketEvent : public wxEvent
+class WXDLLIMPEXP_NET wxSocketEvent : public wxEvent
 {
 public:
   wxSocketEvent(int id = 0)
index 0b2c56c9a6544d80d0a7b8976cb9d5bbe532fae4..09e5b8d52a75f2a7e1b775bfb1193543f29a3efe 100644 (file)
@@ -37,7 +37,7 @@ typedef enum {
   wxURL_PROTOERR
 } wxURLError;
 
-class WXDLLIMPEXP_BASE wxURL : public wxObject
+class WXDLLIMPEXP_NET wxURL : public wxObject
 {
 public:
     wxURL(const wxString& url);
index cb0497e10f12498011237c7a8e29dd64c38f1604..cc108142e97f6dd50deca6bd6e8c75c0c3ea282f 100644 (file)
@@ -9,6 +9,7 @@
         <sources>test.cpp</sources>
         <wx-lib>html</wx-lib>
         <wx-lib>core</wx-lib>
+        <wx-lib>net</wx-lib>
         <wx-lib>base</wx-lib>
         <win32-res>test.rc</win32-res>
     </exe>
index 27bd0bc01e63b0d45924adc2d4ef15c2faa86f00..e6d17d058a783b377f4030ef6a7d613b94578f63 100644 (file)
@@ -6,6 +6,7 @@
     <exe id="client" template="wx_sample" template_append="wx_append">
         <sources>client.cpp</sources>
         <wx-lib>core</wx-lib>
+        <wx-lib>net</wx-lib>
         <wx-lib>base</wx-lib>
         <win32-res>client.rc</win32-res>
     </exe>
@@ -13,6 +14,7 @@
     <exe id="server" template="wx_sample" template_append="wx_append">
         <sources>server.cpp</sources>
         <wx-lib>core</wx-lib>
+        <wx-lib>net</wx-lib>
         <wx-lib>base</wx-lib>
         <win32-res>server.rc</win32-res>
     </exe>
index 3e879ecfdd6a04ac6d7972e2bc99c68a3d3127bf..73f404a8888452a27aeef80811ac47be59e59bab 100644 (file)
@@ -38,8 +38,8 @@
 #include "unzip.h"
 #endif
 
-WX_DECLARE_EXPORTED_HASH_MAP( long, long, wxIntegerHash, wxIntegerEqual,
-                              wxLongToLongHashMap );
+WX_DECLARE_HASH_MAP_WITH_DECL( long, long, wxIntegerHash, wxIntegerEqual,
+                               wxLongToLongHashMap, class WXDLLIMPEXP_BASE );
 
 //----------------------------------------------------------------------------
 // wxZipFSHandler