build: override dependency for use as subproject

Allows e.g. compositors to setup libinput as a subproject. Makes
it easier to ad support for libinput features which haven't been
released yet.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2022-12-09 11:17:33 +01:00
parent 69fe6f37cd
commit ea9db278f3

View file

@ -401,6 +401,10 @@ dep_libinput = declare_dependency(
link_with : lib_libinput,
dependencies : deps_libinput)
if meson.version().version_compare('>= 0.54.0')
meson.override_dependency('libinput', dep_libinput)
endif
pkgconfig.generate(
filebase : 'libinput',
name : 'Libinput',