kwayland is provided by kde:kwayland and is located at kde/workspace/kwayland It's an optional build dependency needed only for kwin_wayland.
This reduces the needed ifdefs in screens and makes it easier to unit test Screens.