Update wxWebView guards to stop backend compilation when wxUSE_WEBVIEW is 0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
||||||
|
|
||||||
#include "webkit/webkit.h"
|
#include "webkit/webkit.h"
|
||||||
#include "wx/sharedptr.h"
|
#include "wx/sharedptr.h"
|
||||||
@@ -154,6 +154,6 @@ private:
|
|||||||
wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit);
|
wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
||||||
|
|
||||||
#include "webkit/webkit.h"
|
#include "webkit/webkit.h"
|
||||||
|
|
||||||
@@ -31,6 +31,6 @@ private:
|
|||||||
WebKitWebHistoryItem* m_histItem;
|
WebKitWebHistoryItem* m_histItem;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
||||||
|
|
||||||
#endif // _WX_GTK_WEBVIEWHISTORYITEM_H_
|
#endif // _WX_GTK_WEBVIEWHISTORYITEM_H_
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
||||||
|
|
||||||
#include "wx/control.h"
|
#include "wx/control.h"
|
||||||
#include "wx/webview.h"
|
#include "wx/webview.h"
|
||||||
@@ -225,6 +225,6 @@ private:
|
|||||||
wxSharedPtr<wxWebViewHandler> m_handler;
|
wxSharedPtr<wxWebViewHandler> m_handler;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
||||||
|
|
||||||
#endif // wxWebViewIE_H
|
#endif // wxWebViewIE_H
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
||||||
|
|
||||||
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
|
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
|
||||||
{
|
{
|
||||||
@@ -26,6 +26,6 @@ private:
|
|||||||
wxString m_url, m_title;
|
wxString m_url, m_title;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
||||||
|
|
||||||
#endif // _WX_MSW_WEBVIEWHISTORYITEM_H_
|
#endif // _WX_MSW_WEBVIEWHISTORYITEM_H_
|
||||||
|
@@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|
||||||
|| defined(__WXOSX_CARBON__))
|
|| defined(__WXOSX_CARBON__))
|
||||||
|
|
||||||
#include "wx/control.h"
|
#include "wx/control.h"
|
||||||
#include "wx/webview.h"
|
#include "wx/webview.h"
|
||||||
@@ -158,6 +158,6 @@ private:
|
|||||||
//TODO: look into using DECLARE_WXCOCOA_OBJC_CLASS rather than this.
|
//TODO: look into using DECLARE_WXCOCOA_OBJC_CLASS rather than this.
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_WEBKIT
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT
|
||||||
|
|
||||||
#endif // _WX_WEBKIT_H_
|
#endif // _WX_WEBKIT_H_
|
||||||
|
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|
||||||
|| defined(__WXOSX_CARBON__))
|
|| defined(__WXOSX_CARBON__))
|
||||||
|
|
||||||
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
|
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
|
||||||
{
|
{
|
||||||
@@ -30,6 +30,6 @@ private:
|
|||||||
struct objc_object *m_histItem;
|
struct objc_object *m_histItem;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXOSX_MAC__)
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT
|
||||||
|
|
||||||
#endif // _WX_OSX_WEBVIEWHISTORYITEM_H_
|
#endif // _WX_OSX_WEBVIEWHISTORYITEM_H_
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_WEBKIT
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT
|
||||||
|
|
||||||
#include "wx/stockitem.h"
|
#include "wx/stockitem.h"
|
||||||
#include "wx/gtk/webview_webkit.h"
|
#include "wx/gtk/webview_webkit.h"
|
||||||
@@ -930,4 +930,4 @@ wxWebViewWebKit::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // wxHAVE_WEB_BACKEND_GTK_WEBKIT
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "wx/msw/webview_ie.h"
|
#include "wx/msw/webview_ie.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_IE
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE
|
||||||
|
|
||||||
#include <olectl.h>
|
#include <olectl.h>
|
||||||
#include <oleidl.h>
|
#include <oleidl.h>
|
||||||
@@ -1134,4 +1134,4 @@ ULONG ClassFactory::Release(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_IE
|
||||||
|
@@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
#include "wx/osx/webview_webkit.h"
|
#include "wx/osx/webview_webkit.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|
||||||
|| defined(__WXOSX_CARBON__))
|
|| defined(__WXOSX_CARBON__))
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
@@ -1315,4 +1315,4 @@ wxString nsErrorToWxHtmlError(NSError* error, wxWebViewNavigationError* out)
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif //wxUSE_WEBVIEW_WEBKIT
|
#endif //wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT
|
||||||
|
Reference in New Issue
Block a user