A patch to build with cmake >= 4.4:
Fix a CMake parse error with CMake >= 4.4 in _WEBKIT_TARGET_LINK_FRAMEWORK.
When the global property <framework>_LINKED_INTO is unset, the unquoted
${_linked_into} expansions collapse to nothing and leave if() with a
malformed argument list ("WTF STREQUAL" / "NOT IN_LIST ..."), which newer
CMake rejects instead of silently accepting. Quote the expansions so the
empty case still parses; the (NOT _linked_into) branch already handles it.
--- a/Source/cmake/WebKitMacros.cmake
+++ b/Source/cmake/WebKitMacros.cmake
@@ -308,7 +308,7 @@
get_property(_linked_into GLOBAL PROPERTY ${framework}_LINKED_INTO)
# See if the target is linking a framework that the specified framework is already linked into
- if ((NOT _linked_into) OR (${framework} STREQUAL ${_linked_into}) OR (NOT ${_linked_into} IN_LIST ${_target}_FRAMEWORKS))
+ if ((NOT _linked_into) OR ("${framework}" STREQUAL "${_linked_into}") OR (NOT "${_linked_into}" IN_LIST ${_target}_FRAMEWORKS))
list(APPEND ${_target}_PRIVATE_LIBRARIES WebKit::${framework})
# The WebKit:: alias targets do not propagate OBJECT libraries so the
Pinned Comments
q234rty commented on 2023-09-02 04:41 (UTC)
Prebuilt packages can be found in the [archlinuxcn] repo, see https://github.com/archlinuxcn/repo for instructions.
q234rty commented on 2022-06-22 13:31 (UTC) (edited on 2022-06-22 13:32 (UTC) by q234rty)
This is a patched version of webkit2gtk w/ image data pasting support.
This is based on the original patch in https://github.com/ttys3/archlinux-webkit2gtk, modified to use proper filenames and support larger images.