Maarten Bent
a2ddfcf80b
CMake: Fix warning when copying inplace config
...
Quote all parameters to ensure paths are handled properly.
2022-04-20 20:33:28 +02:00
Maarten Bent
d61c9ee4bf
CMake: Apply source groups using a function
...
This will add source groups to all projects, not only libraries.
And there is no need anymore to include it in every project file.
2022-04-11 23:18:58 +02:00
Maarten Bent
f00e7ced27
CMake: Fix monolithic build
...
Don't target net and webview libraries directly, but use the wx_ function that will add it to the mono library when applicable.
2022-04-10 21:00:39 +02:00
Maarten Bent
0125a52376
CMake: Improve handling plugin in wx_set_target_properties
...
Don't link with toolkit or wx libraries, and set the correct defines.
2022-04-10 21:00:39 +02:00
Maarten Bent
614d58bf38
CMake: Set precompiled headers when adding libraries
...
Combine the three pch related functions into one.
2022-04-10 20:46:56 +02:00
Maarten Bent
de495c19a3
CMake: Make all target_include_directories private
...
There is no need to expose them to external projects.
2022-04-10 20:46:26 +02:00
Tobias Taschner
57ebad4f7d
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.
2022-02-07 22:49:33 +01:00
Maarten Bent
6f34937993
CMake: Improve webkit plugin name
2021-06-06 23:38:38 +02:00
Maarten Bent
0bb9cd004d
CMake: copy webview2 loader for monolithic build
2021-03-08 00:26:24 +01:00
Maarten Bent
3198ed0b18
CMake: reset webview2 package dir if it does not exist anymore
...
And make the variable internal so it does not create an 'Ungrouped Entries' group in cmake-gui.
2021-03-07 22:06:46 +01:00
Maarten Bent
560656c699
CMake: do not use target webview in monolithic build
2021-03-07 22:06:46 +01:00
Maarten Bent
272c903234
Silence unknown pragmas warning in the WebView2 header
...
Using wxGCC_WARNING_SUPPRESS(unknown-pragmas) around the webview2 header does
not work, so suppress it for the entire webview project.
2021-03-01 00:09:23 +01:00
Maarten Bent
09bc566b60
Support building wxWebViewEdge with GCC or Clang
...
Add EventToken.h with EventRegistrationToken implementation, that can be used by the WebView2 header.
2021-03-01 00:09:23 +01:00
Tobias Taschner
1ee05c54ed
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.
2021-02-08 21:29:08 +01:00
Václav Slavík
40e5152cfc
Remove WX_WEB_EXTENSIONS_DIRECTORY define
...
wxWidgets already has a mechanism for locating plugins under
$libdir/wx/*, there's no reason to duplicate it with another
compile-time symbol.
As a consequence, this makes the library relocatable via WXPREFIX again.
2020-10-05 16:54:16 +02:00
Václav Slavík
737e9be2d0
CMake: use same location for web-extensions as Bakefile
...
Fix the location where the web-extension plugin is installed to be
consistent with the primary bakefile-based build system: i.e. to use
lib/wx/x.y.z for devel versions and lib/wx/x.y for stable.
2020-10-05 16:54:16 +02:00
Maarten Bent
0f806ad96d
CMake: use wx prefix in library names
...
Rename all library targets to start with wx. This way it does not use generic
names like base or core that could interfere with other libraries that add
include the wxWidgets project.
2020-05-17 20:01:02 +02:00
Tobias Taschner
41f4a21736
Apply suggestions from code review
...
Co-Authored-By: Maarten <MaartenBent@users.noreply.github.com >
2020-01-16 10:15:11 +01:00
Tobias Taschner
6750d30102
Load WebView2Loader.dll dynamically
2020-01-10 22:22:29 +01:00
Markus Pingel
6a99e7e273
Add wxWebView Edge (Chromium) implementation
...
This backend requires WebView2 SDK and enables usage of Edge (Chromium)
on Windows 7 and newer
2020-01-10 22:22:28 +01:00
Maarten Bent
e984857b0e
CMake: Improve webview checks
...
Try to match behavior of configure.
Fix building webview sample with STC disabled.
2018-12-03 00:20:38 +01:00
Maarten Bent
c80aecbfc1
CMake: Put include and link commands on one line
...
Use correct check for LIBICONV.
2018-12-02 17:45:43 +01:00
Maarten Bent
97f64e9941
CMake: Build the webextensions plugin
2018-12-02 03:23:02 +01:00
Maarten Bent
1c5cbe0a61
CMake: Add support for webkit2
2018-12-02 03:21:33 +01:00
Tobias Taschner
da2b8ea812
Add CMake build system
...
Add CMake build system for libraries, tests and samples
update_files.py converts build/files into CMake format.
build/update-setup-h has been modified to update build/cmake/setup.h.in.
2017-01-03 20:53:10 +01:00