2021-03-26 16:28:37 +01:00
|
|
|
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),
|
|
|
|
)
|
|
|
|
|
2022-11-23 16:04:43 +01:00
|
|
|
if not (libinput.found() and features['session'])
|
2021-03-26 16:28:37 +01:00
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2019-11-22 08:11:15 +01:00
|
|
|
wlr_files += files(
|
|
|
|
'backend.c',
|
|
|
|
'events.c',
|
|
|
|
'keyboard.c',
|
|
|
|
'pointer.c',
|
|
|
|
'switch.c',
|
|
|
|
'tablet_pad.c',
|
|
|
|
'tablet_tool.c',
|
|
|
|
'touch.c',
|
|
|
|
)
|
2021-03-26 16:28:37 +01:00
|
|
|
|
|
|
|
features += { 'libinput-backend': true }
|
|
|
|
wlr_deps += libinput
|
2021-08-07 18:27:52 +02:00
|
|
|
|
2022-02-25 17:30:27 +01:00
|
|
|
# libinput hold gestures and high resolution scroll are available since 1.19.0
|
2022-11-25 18:10:42 +01:00
|
|
|
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'))
|