build: Disable certain deps when building without x11
Allows to skip those dependencies without having to explicitly disable them if -Dxwayland=false -Dx11=false
is passed.
Helps #2272
Allows to skip those dependencies without having to explicitly disable them if -Dxwayland=false -Dx11=false
is passed.
Helps #2272