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:
Vadim Zeitlin 2023-09-13 18:31:24 +02:00
parent 168ca9403d
commit ae8619b6dd
36 changed files with 499 additions and 1338 deletions

View file

@ -2510,6 +2510,7 @@ set(WEBVIEW_CMN_SRC
src/common/webview.cpp
src/common/webviewarchivehandler.cpp
src/common/webviewfshandler.cpp
src/common/webview_chromium.cpp
)
set(WEBVIEW_MSW_HDR
@ -2522,6 +2523,7 @@ set(WEBVIEW_CMN_HDR
wx/webview.h
wx/webviewarchivehandler.h
wx/webviewfshandler.h
wx/webview_chromium.h
)
set(WEBVIEW_OSX_SHARED_HDR
@ -2531,6 +2533,7 @@ set(WEBVIEW_OSX_SHARED_HDR
set(WEBVIEW_OSX_SHARED_SRC
src/osx/webview_webkit.mm
src/osx/webview_chromium.mm
)
set(WEBVIEW_GTK_HDR