From e62299daa45de139b912325eb5800796586e57c7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 26 Nov 2022 20:18:43 +0100 Subject: Make libinput backend optional --- sway/meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sway/meson.build') diff --git a/sway/meson.build b/sway/meson.build index 8a73cc86..de10e14f 100644 --- a/sway/meson.build +++ b/sway/meson.build @@ -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( -- cgit v1.2.3-54-g00ecf