Compile kwin without some of backends. Then
Compile kwin with that backend separately, manually
copy the appropriate plugin into plugins directory.
Verify that `kwin_wayland --help` lists that option,
and running kwin_wayland without arguments, with proper
environment automatically selects proper backend plugin.
Or, kompile kwin as usual with all backends, install it,
then manually delete some plugins.