mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
udev is now optional at build-time but will fail at runtime because we don't have an alternative implementation yet.
40 lines
911 B
Meson
40 lines
911 B
Meson
msg = ['Required for libinput backend support.']
|
|
if 'libinput' in backends
|
|
msg += 'Install "@0@" or disable the libinput backend.'
|
|
endif
|
|
|
|
libinput = dependency(
|
|
'libinput',
|
|
version: '>=1.19.0',
|
|
required: 'libinput' in backends,
|
|
not_found_message: '\n'.join(msg).format('libinput'),
|
|
)
|
|
udev = dependency(
|
|
'libudev',
|
|
required: 'libinput' in backends,
|
|
not_found_message: '\n'.join(msg).format('libudev'),
|
|
)
|
|
|
|
if not (libinput.found() and udev.found() and features['session'])
|
|
subdir_done()
|
|
endif
|
|
|
|
wlr_files += files(
|
|
'backend.c',
|
|
'events.c',
|
|
'keyboard.c',
|
|
'pointer.c',
|
|
'switch.c',
|
|
'tablet_pad.c',
|
|
'tablet_tool.c',
|
|
'touch.c',
|
|
)
|
|
|
|
features += { 'libinput-backend': true }
|
|
wlr_deps += libinput
|
|
|
|
internal_config.set10('HAVE_LIBINPUT_BUSTYPE', libinput.version().version_compare('>=1.26.0'))
|
|
internal_config.set10(
|
|
'HAVE_LIBINPUT_SWITCH_KEYPAD_SLIDE',
|
|
libinput.version().version_compare('>=1.30.901')
|
|
)
|