CMake: Download SDK when wxUSE_WEBVIEW_EDGE=ON
Automatically download the WebView2 SDK from nuget (official repo for the SDK) when enabling wxUSE_WEBVIEW_EDGE to simplify usage. Copying to 3rdparty/webview2 is still supported optionally.
This commit is contained in:
@@ -321,12 +321,14 @@ public:
|
||||
|
||||
This backend is not enabled by default, to build it follow these steps:
|
||||
- Visual Studio 2015, or newer, is required
|
||||
- Download the <a href="https://aka.ms/webviewnuget">WebView2 SDK</a>
|
||||
nuget package (Version 1.0.622.22 or newer)
|
||||
- Extract the package (it's a zip archive) to @c wxWidgets/3rdparty/webview2
|
||||
(you should have @c 3rdparty/webview2/build/native/include/WebView2.h
|
||||
file after unpacking it)
|
||||
- Enable @c wxUSE_WEBVIEW_EDGE in CMake or @c setup.h
|
||||
- With CMake just enable @c wxUSE_WEBVIEW_EDGE
|
||||
- When not using CMake:
|
||||
- Download the <a href="https://aka.ms/webviewnuget">WebView2 SDK</a>
|
||||
nuget package (Version 1.0.622.22 or newer)
|
||||
- Extract the package (it's a zip archive) to @c wxWidgets/3rdparty/webview2
|
||||
(you should have @c 3rdparty/webview2/build/native/include/WebView2.h
|
||||
file after unpacking it)
|
||||
- Enable @c wxUSE_WEBVIEW_EDGE in @c setup.h
|
||||
- Build wxWidgets webview library
|
||||
- Copy @c WebView2Loader.dll from the subdirectory corresponding to the
|
||||
architecture used (x86 or x64) of @c wxWidgets/3rdparty/webview2/build/
|
||||
|
Reference in New Issue
Block a user