]> git.saurik.com Git - wxWidgets.git/commitdiff
splitted gizmos library into gizmos and gizmos_xrc in order to fix broken compilation...
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 10 Apr 2005 19:41:03 +0000 (19:41 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 10 Apr 2005 19:41:03 +0000 (19:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

autoconf_inc.m4
contrib/build/gizmos/gizmos.bkl
contrib/include/wx/gizmos/gizmos.h
contrib/include/wx/gizmos/xh_statpict.h

index ade3761380f9b97a07c9ea65b5a372cfdd2cdd03..bc3fe699cca1a6d662cdb63037bf7531af5e7213 100644 (file)
@@ -398,6 +398,12 @@ dnl ### begin block 20_COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN[wx.bkl] ###
         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
     fi
     AC_SUBST(COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN)
         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
     fi
     AC_SUBST(COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN)
+dnl ### begin block 20_COND_SHARED_0_USE_XRC_1[../../contrib/build/gizmos/gizmos.bkl] ###
+    COND_SHARED_0_USE_XRC_1="#"
+    if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
+        COND_SHARED_0_USE_XRC_1=""
+    fi
+    AC_SUBST(COND_SHARED_0_USE_XRC_1)
 dnl ### begin block 20_COND_SHARED_0_WXUSE_EXPAT_BUILTIN[wx.bkl] ###
     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
 dnl ### begin block 20_COND_SHARED_0_WXUSE_EXPAT_BUILTIN[wx.bkl] ###
     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
@@ -434,6 +440,12 @@ dnl ### begin block 20_COND_SHARED_1_USE_GUI_1_USE_OPENGL_1[wx.bkl] ###
         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
     fi
     AC_SUBST(COND_SHARED_1_USE_GUI_1_USE_OPENGL_1)
         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
     fi
     AC_SUBST(COND_SHARED_1_USE_GUI_1_USE_OPENGL_1)
+dnl ### begin block 20_COND_SHARED_1_USE_XRC_1[../../contrib/build/gizmos/gizmos.bkl] ###
+    COND_SHARED_1_USE_XRC_1="#"
+    if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
+        COND_SHARED_1_USE_XRC_1=""
+    fi
+    AC_SUBST(COND_SHARED_1_USE_XRC_1)
 dnl ### begin block 20_COND_TOOLKIT_[wx.bkl] ###
     COND_TOOLKIT_="#"
     if test "x$TOOLKIT" = "x" ; then
 dnl ### begin block 20_COND_TOOLKIT_[wx.bkl] ###
     COND_TOOLKIT_="#"
     if test "x$TOOLKIT" = "x" ; then
index 31bb831e16d73b1e5b6f9fcb1d626ff14cb0a07b..7f6500c0fdb5969b018e27ab78f1464b44a1b1dd 100644 (file)
@@ -12,6 +12,9 @@
         multicell.cpp
         splittree.cpp
         statpict.cpp
         multicell.cpp
         splittree.cpp
         statpict.cpp
+    </set>
+    
+    <set var="GIZMOS_XRC_SRC">
         xh_statpict.cpp
     </set>
 
         xh_statpict.cpp
     </set>
 
@@ -23,8 +26,8 @@
             wx/gizmos/multicell.h
             wx/gizmos/splittree.h
             wx/gizmos/statpict.h
             wx/gizmos/multicell.h
             wx/gizmos/splittree.h
             wx/gizmos/statpict.h
-            wx/gizmos/xh_statpict.h
             wx/gizmos/gizmos.h
             wx/gizmos/gizmos.h
+            wx/gizmos/xh_statpict.h
         </files>
     </headers>
 
         </files>
     </headers>
 
         <define>WXUSINGDLL</define>
         <define>WXMAKINGDLL_GIZMOS</define>
         <sources>$(GIZMOS_SRC)</sources>
         <define>WXUSINGDLL</define>
         <define>WXMAKINGDLL_GIZMOS</define>
         <sources>$(GIZMOS_SRC)</sources>
+        <wx-lib>core</wx-lib>
         <wx-lib>base</wx-lib>
         <wx-lib>base</wx-lib>
+    </dll>
+    
+    <dll id="gizmos_xrcdll" template="wx_contrib_dll"
+         cond="SHARED=='1' and USE_XRC=='1'">
+        <define>WXUSINGDLL</define>
+        <define>WXMAKINGDLL_GIZMOS_XRC</define>
+        <sources>$(GIZMOS_XRC_SRC)</sources>
+        <library>gizmosdll</library>
+        <wx-lib>xrc</wx-lib>
         <wx-lib>core</wx-lib>
         <wx-lib>core</wx-lib>
+        <wx-lib>base</wx-lib>
     </dll>
 
     <lib id="gizmoslib" template="wx_contrib_lib" cond="SHARED=='0'">
         <sources>$(GIZMOS_SRC)</sources>
     </lib>
     </dll>
 
     <lib id="gizmoslib" template="wx_contrib_lib" cond="SHARED=='0'">
         <sources>$(GIZMOS_SRC)</sources>
     </lib>
+
+    <lib id="gizmos_xrclib" template="wx_contrib_lib"
+         cond="SHARED=='0' and USE_XRC=='1'">
+        <sources>$(GIZMOS_XRC_SRC)</sources>
+    </lib>
     
     <set var="MSVC6PRJ_MERGED_TARGETS" append="1">gizmos=gizmoslib+gizmosdll</set>
     
     <set var="MSVC6PRJ_MERGED_TARGETS" append="1">gizmos=gizmoslib+gizmosdll</set>
+    <set var="MSVC6PRJ_MERGED_TARGETS" append="1">gizmos_xrc=gizmos_xrclib+gizmos_xrcdll</set>
 
 </makefile>
 
 </makefile>
index d9a8aadfc6a036d12ba9d6139a5a2a3cddf99de0..7093f400e045e359f73a0f66e7425f360ab1ef0e 100644 (file)
@@ -9,4 +9,12 @@
     #define WXDLLIMPEXP_GIZMOS
 #endif
 
     #define WXDLLIMPEXP_GIZMOS
 #endif
 
+#ifdef WXMAKINGDLL_GIZMOS_XRC
+    #define WXDLLIMPEXP_GIZMOS_XRC WXEXPORT
+#elif defined(WXUSINGDLL)
+    #define WXDLLIMPEXP_GIZMOS_XRC WXIMPORT
+#else // not making nor using DLL
+    #define WXDLLIMPEXP_GIZMOS
+#endif
+
 #endif
 #endif
index d562f712674ed1c9f63906d13d2804bc3ca0b62e..e9d20c15fc8a615d4ba6523ce240438d7d4c2cf4 100644 (file)
@@ -21,7 +21,8 @@
 // XML resource handler for the wxStaticPicture class in wxContrib.
 //
 
 // XML resource handler for the wxStaticPicture class in wxContrib.
 //
 
-class WXDLLIMPEXP_GIZMOS wxStaticPictureXmlHandler : public wxXmlResourceHandler
+class WXDLLIMPEXP_GIZMOS_XRC wxStaticPictureXmlHandler
+    : public wxXmlResourceHandler
 {
 public:
 
 {
 public: