Introduce WPE 2.0 API version, and ENABLE_2022_GLIB_API flag to indicate either GTK 4 or WPE 2.0 Since there are few users of the WPE 1.1 API, and we don't need to keep it around, WPE 2.0 will simply replace WPE 1.1. In contrast, the WPE 1.0 API is still required until Igalia is ready to phase out libsoup 2.
Pull request: https://github.com/WebKit/WebKit/pull/3886
Committed 254653@main (b2a6414f90b3): <https://commits.webkit.org/254653@main> Reviewed commits have been landed. Closing PR #3886 and removing active labels.
This broke WPE builds where ENABLE_COG is ON BTW. Current cog depends on the 1.1 API.
I'm bamboozled... how does this option work? It doesn't seem to be used anywhere: $ git grep 'ENABLE(COG)' $ git grep ENABLE_COG cmake/OptionsWPE.cmake: WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_COG PRIVATE ON) cmake/WebKitFeatures.cmake: WEBKIT_OPTION_DEFINE(ENABLE_COG "Toggle Cog browser compilation." PRIVATE OFF)
Problem was I was searching only under Source/, but ENABLE_COG is used under Tools/. Anyway it doesn't look hard to solve, just needs some attention from the cog developers to decide which branch to use based on the WPE API version.