The design of the build enablement flags is for PlatformEnable.h to contain the default state of flags, and for individual ports to have specific files that control the state on those platforms (assuming they do not want the default behavior). In general, features should start of enabled in some ports and not others, then be enabled on all ports, then eventually the compile option is removed and all ports just build it all the time. We have dedicated files for Playstation, Cocoa, and Windows, but the GTK/WPE port flags live inside the main PlatformEnable header, leading to confusion and encouraging developers to add more conditional flags in that "default" file. This patch adds a new PlatformEnableGTKWPE.h file that moves the relevant flags, and tidies up the primary file.
<rdar://problem/115902210>
Pull request: https://github.com/WebKit/WebKit/pull/18109
Committed 268543@main (73e0d4c74d1b): <https://commits.webkit.org/268543@main> Reviewed commits have been landed. Closing PR #18109 and removing active labels.