backend/libinput: require libinput 1.14
We have the policy of requiring up-to-date dependencies instead of adding conditionals for older versions. libinput 1.14 was published more than 1 year ago.
This commit is contained in:
parent
2eae9ec7c8
commit
aaa3fcf66f
|
@ -113,10 +113,8 @@ static enum wlr_tablet_tool_type wlr_type_from_libinput_type(
|
||||||
return WLR_TABLET_TOOL_TYPE_MOUSE;
|
return WLR_TABLET_TOOL_TYPE_MOUSE;
|
||||||
case LIBINPUT_TABLET_TOOL_TYPE_LENS:
|
case LIBINPUT_TABLET_TOOL_TYPE_LENS:
|
||||||
return WLR_TABLET_TOOL_TYPE_LENS;
|
return WLR_TABLET_TOOL_TYPE_LENS;
|
||||||
#if LIBINPUT_MINOR >= 14
|
|
||||||
case LIBINPUT_TABLET_TOOL_TYPE_TOTEM:
|
case LIBINPUT_TABLET_TOOL_TYPE_TOTEM:
|
||||||
return WLR_TABLET_TOOL_TYPE_TOTEM;
|
return WLR_TABLET_TOOL_TYPE_TOTEM;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
abort(); // unreachable
|
abort(); // unreachable
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@ egl = dependency('egl')
|
||||||
glesv2 = dependency('glesv2')
|
glesv2 = dependency('glesv2')
|
||||||
drm = dependency('libdrm', version: '>=2.4.95')
|
drm = dependency('libdrm', version: '>=2.4.95')
|
||||||
gbm = dependency('gbm', version: '>=17.1.0')
|
gbm = dependency('gbm', version: '>=17.1.0')
|
||||||
libinput = dependency('libinput', version: '>=1.9.0')
|
libinput = dependency('libinput', version: '>=1.14.0')
|
||||||
xkbcommon = dependency('xkbcommon')
|
xkbcommon = dependency('xkbcommon')
|
||||||
udev = dependency('libudev')
|
udev = dependency('libudev')
|
||||||
pixman = dependency('pixman-1')
|
pixman = dependency('pixman-1')
|
||||||
|
@ -133,13 +133,6 @@ wlr_deps = [
|
||||||
rt,
|
rt,
|
||||||
]
|
]
|
||||||
|
|
||||||
libinput_ver = libinput.version().split('.')
|
|
||||||
add_project_arguments([
|
|
||||||
'-DLIBINPUT_MAJOR=' + libinput_ver[0],
|
|
||||||
'-DLIBINPUT_MINOR=' + libinput_ver[1],
|
|
||||||
'-DLIBINPUT_PATCH=' + libinput_ver[2],
|
|
||||||
], language: 'c')
|
|
||||||
|
|
||||||
subdir('protocol')
|
subdir('protocol')
|
||||||
subdir('render')
|
subdir('render')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue