We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0875a56 commit 22bf4e6Copy full SHA for 22bf4e6
packages/desktop_webview_window/linux/CMakeLists.txt
@@ -9,7 +9,6 @@ set(PLUGIN_NAME "desktop_webview_window_plugin")
9
find_package(PkgConfig REQUIRED)
10
pkg_check_modules(WebKit IMPORTED_TARGET webkit2gtk-4.1)
11
if (NOT WebKit_FOUND)
12
- add_compile_definitions(WEBKIT_OLD_USED=1)
13
pkg_check_modules(WebKit REQUIRED IMPORTED_TARGET webkit2gtk-4.0) # for backward compatibility
14
endif ()
15
packages/desktop_webview_window/linux/webview_window.cc
@@ -8,6 +8,10 @@
8
#include "message_channel_plugin.h"
+#if WEBKIT_MAJOR_VERSION < 2 || (WEBKIT_MAJOR_VERSION == 2 && WEBKIT_MINOR_VERSION < 40)
+#define WEBKIT_OLD_USED
+#endif
+
namespace
16
{
17
0 commit comments