aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2021-08-07 18:27:52 +0200
committerSimon Ser <contact@emersion.fr>2021-09-27 15:30:31 +0200
commit95970b361960e5b8786eaa608d66f18b15d86efb (patch)
treedde016c1ae373e2a65d5dda9d565266543978041 /backend/libinput
parentd069a783bcafe65c240f2369b68f5e8d45d0b9a2 (diff)
build: check if libinput supports hold gestures
Add a project argument (LIBINPUT_HAS_HOLD_GESTURES) to allow building against old versions of libinput.
Diffstat (limited to 'backend/libinput')
-rw-r--r--backend/libinput/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/libinput/meson.build b/backend/libinput/meson.build
index 44bb57e1..38ba05f1 100644
--- a/backend/libinput/meson.build
+++ b/backend/libinput/meson.build
@@ -27,3 +27,9 @@ wlr_files += files(
features += { 'libinput-backend': true }
wlr_deps += libinput
+
+# libinput hold gestures are available since 1.19.0
+add_project_arguments(
+ '-DLIBINPUT_HAS_HOLD_GESTURES=@0@'.format(libinput.version().version_compare('>=1.19.0').to_int()),
+ language: 'c',
+)