Don't build separate webview_chromium library
Just include wxWebViewChromium in the webview library if it's enabled during the build. There doesn't seem to be any reason to build a separate library for it, it's not really different from the other disabled by default wxWebView backend (Edge). And now that we don't need to link with an extra library, there is also no need to have a separate webview_chromium sample, so just add a possibility to run webview sample itself using Chromium backend by setting WX_WEBVIEW_BACKEND environment variable.
This commit is contained in:
parent
168ca9403d
commit
ae8619b6dd
36 changed files with 499 additions and 1338 deletions
|
|
@ -14,7 +14,7 @@
|
|||
#include "wx/webview.h"
|
||||
#include "wx/timer.h"
|
||||
|
||||
extern WXDLLIMPEXP_DATA_WEBVIEW_CHROMIUM(const char) wxWebViewBackendChromium[];
|
||||
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewBackendChromium[];
|
||||
|
||||
// Private namespace containing classes used only in the implementation.
|
||||
namespace wxCEF
|
||||
|
|
@ -23,7 +23,7 @@ class ClientHandler;
|
|||
struct ImplData;
|
||||
}
|
||||
|
||||
class WXDLLIMPEXP_WEBVIEW_CHROMIUM wxWebViewChromium : public wxWebView
|
||||
class WXDLLIMPEXP_WEBVIEW wxWebViewChromium : public wxWebView
|
||||
{
|
||||
public:
|
||||
wxWebViewChromium() { Init(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue