mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
f0375eed24
Some compositors are not interested in wlr_session, for instance nested compositors. Disabling wlr_session removes the udev dependency.
35 lines
875 B
Meson
35 lines
875 B
Meson
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),
|
|
)
|
|
|
|
if not (libinput.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
|
|
|
|
# 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')
|