aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-25 18:10:42 +0100
committerAlexander Orzechowski <alex@ozal.ski>2022-12-06 22:39:45 +0000
commita4a40618adb287d6ebebf099ca4d64f39b7f7770 (patch)
treec7596b2264c9c9c8137a3b802f96bce91b0b7586 /backend/libinput
parentcb6b1193c8aff879c79ceda8cf5bf737837fcb05 (diff)
backend/libinput: use internal_config
Removes project arguments.
Diffstat (limited to 'backend/libinput')
-rw-r--r--backend/libinput/meson.build6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/libinput/meson.build b/backend/libinput/meson.build
index 181eb04b..368ae0f9 100644
--- a/backend/libinput/meson.build
+++ b/backend/libinput/meson.build
@@ -29,7 +29,5 @@ features += { 'libinput-backend': true }
wlr_deps += libinput
# libinput hold gestures and high resolution scroll are available since 1.19.0
-add_project_arguments([
- '-DLIBINPUT_HAS_HOLD_GESTURES=@0@'.format(libinput.version().version_compare('>=1.19.0').to_int()),
- '-DLIBINPUT_HAS_SCROLL_VALUE120=@0@'.format(libinput.version().version_compare('>=1.19.0').to_int()),
-], language: 'c')
+internal_config.set10('LIBINPUT_HAS_HOLD_GESTURES', libinput.version().version_compare('>=1.19.0'))
+internal_config.set10('LIBINPUT_HAS_SCROLL_VALUE120', libinput.version().version_compare('>=1.19.0'))