From 3c7aef4ca7f2b501b3583834f1772644a42ccc14 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 9 Dec 2022 11:17:33 +0100 Subject: [PATCH] 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 (cherry picked from commit ea9db278f3b062fe46553c741834b237350659a2) --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index d9e3eff7..41017f90 100644 --- a/meson.build +++ b/meson.build @@ -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',