From 70fb21c35ba432bec86b61ef6e938d65629fde31 Mon Sep 17 00:00:00 2001 From: ayaka Date: Fri, 26 Mar 2021 23:28:37 +0800 Subject: backend: make DRM and libinput backends optional Co-authored-by: Simon Ser --- backend/libinput/meson.build | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'backend/libinput') diff --git a/backend/libinput/meson.build b/backend/libinput/meson.build index ff78d2f8..44bb57e1 100644 --- a/backend/libinput/meson.build +++ b/backend/libinput/meson.build @@ -1,3 +1,19 @@ +msg = ['Required for libinput backend support.'] +if 'libinput' in backends + msg += 'Install "libinput" or disable the libinput backend.' +endif + +libinput = dependency( + 'libinput', + version: '>=1.14.0', + required: 'libinput' in backends, + not_found_message: '\n'.join(msg), +) + +if not libinput.found() + subdir_done() +endif + wlr_files += files( 'backend.c', 'events.c', @@ -8,3 +24,6 @@ wlr_files += files( 'tablet_tool.c', 'touch.c', ) + +features += { 'libinput-backend': true } +wlr_deps += libinput -- cgit v1.2.3