Allow usage of static loader with wxWebViewEdge

Add a new build option wxUSE_WEBVIEW_EDGE_STATIC.
If it is set to 1 the WebView2 loader is static linked into the binary
and removes the runtime dependency on WebView2Loader.dll.
This commit is contained in:
Tobias Taschner
2022-02-02 22:39:28 +01:00
committed by Tobias Taschner
parent f0c6b42ad0
commit 57ebad4f7d
15 changed files with 95 additions and 5 deletions

View File

@@ -802,6 +802,13 @@
// Recommended setting: 1 when building for Windows with WebView2 SDK
#define wxUSE_WEBVIEW_EDGE 0
// Use the Edge (Chromium) wxWebView backend without loader DLL
//
// Default is 0, set it to 1 if you don't want to depend on WebView2Loader.dll.
//
// Recommended setting: 0
#define wxUSE_WEBVIEW_EDGE_STATIC 0
// Use the WebKit wxWebView backend
//
// Default is 1 on GTK and OSX