[client,SDL] add webkit2gtk4.1 support

This commit is contained in:
akallabeth 2024-06-04 12:50:09 +02:00
parent cf586b4d2e
commit 42f1da7132
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
2 changed files with 5 additions and 2 deletions

View File

@ -61,7 +61,10 @@ if (WITH_WEBVIEW)
)
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(WEBVIEW_GTK webkit2gtk-4.0 REQUIRED)
pkg_check_modules(WEBVIEW_GTK webkit2gtk-4.1)
if (NOT WEBVIEW_GTK_FOUND)
pkg_check_modules(WEBVIEW_GTK webkit2gtk-4.0 REQUIRED)
endif()
include_directories(${WEBVIEW_GTK_INCLUDE_DIRS})
list(APPEND LIBS
${WEBVIEW_GTK_LIBRARIES}

View File

@ -50,7 +50,7 @@ Build-Depends:
libsdl3-ttf-dev | libsdl2-ttf-dev,
libsdl3-image-dev | libsdl2-image-dev,
libsystemd-dev,
libwebkit2gtk-4.0-dev,
libwebkit2gtk-4.1-dev | libwebkit2gtk-4.0-dev,
liburiparser-dev,
libopus-dev,
libwebp-dev,