diff options
author | ayaka <ayaka@soulik.info> | 2021-03-26 23:28:37 +0800 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-07-22 09:56:38 -0400 |
commit | 70fb21c35ba432bec86b61ef6e938d65629fde31 (patch) | |
tree | a921aace6ca17b164d7755fd68ad9cb1f323ddc8 /backend/libinput | |
parent | 66c42f4fcb77724d9b19829eeb0c66fe4771f2db (diff) |
backend: make DRM and libinput backends optional
Co-authored-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
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 |