2021-03-26 15:28:37 +00:00
|
|
|
msg = ['Required for libinput backend support.']
|
|
|
|
if 'libinput' in backends
|
|
|
|
msg += 'Install "libinput" or disable the libinput backend.'
|
|
|
|
endif
|
|
|
|
|
|
|
|
libinput = dependency(
|
|
|
|
'libinput',
|
2024-07-04 20:51:07 +00:00
|
|
|
version: '>=1.19.0',
|
2021-03-26 15:28:37 +00:00
|
|
|
required: 'libinput' in backends,
|
|
|
|
not_found_message: '\n'.join(msg),
|
|
|
|
)
|
|
|
|
|
2022-11-23 15:04:43 +00:00
|
|
|
if not (libinput.found() and features['session'])
|
2021-03-26 15:28:37 +00:00
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2019-11-22 07:11:15 +00: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 15:28:37 +00:00
|
|
|
|
|
|
|
features += { 'libinput-backend': true }
|
|
|
|
wlr_deps += libinput
|
2021-08-07 16:27:52 +00:00
|
|
|
|
2024-02-29 11:29:28 +00:00
|
|
|
internal_config.set10('HAVE_LIBINPUT_BUSTYPE', libinput.version().version_compare('>=1.26.0'))
|