Make libinput backend optional

This commit is contained in:
Simon Ser 2022-11-26 20:18:43 +01:00 committed by Simon Zeni
parent 46170580b2
commit e62299daa4
7 changed files with 59 additions and 8 deletions

View file

@ -26,7 +26,6 @@ sway_sources = files(
'input/input-manager.c',
'input/cursor.c',
'input/keyboard.c',
'input/libinput.c',
'input/seat.c',
'input/seatop_default.c',
'input/seatop_down.c',
@ -227,12 +226,16 @@ sway_deps = [
wayland_server,
wlroots,
xkbcommon,
xcb,
xcb_icccm,
]
if have_xwayland
sway_sources += 'desktop/xwayland.c'
sway_deps += xcb
endif
if wlroots_features['libinput_backend']
sway_sources += 'input/libinput.c'
endif
executable(