Would be nice if KGlobalAccel and X11 could be made optional, the first one was easy to disable when I checked a build on Haiku yesterday, for X11 I haven’t yet looked how hard it would be.
Had a very very quick look: probably not too hard. KX11Extras is used in approx. dozen places for optionally checking desktop, compositing status etc., probably could be ifdeffed out. KGlobalAccel only in two files where global shortcuts are set, I think.
Will do some checking on Haiku today to see how far this gets me, if it turns out OK I could do a MR for those 2, fwiw, other projects have similar checks for HAVE_X11 or HAVE_KGLOBALACCEL(? need to check that last in sources, but ran into this not that long ago).
EDIT, this will be a no go on Haiku, too much references to KX11Extras in the source. Was worth trying.
I might have a look at some point. Every KX11Extras usage is pretty much optional (e.g. only some options grayed out if not running under X11), so should be doable
Worked out fine so far, as mentioned in the chat a small part needed to disable qt6webengine. Wanted to comment on the PR, but with the new install I need to figure out how to login again at invent.kde.org. (fixed)