diff options
author | Simon Ser <contact@emersion.fr> | 2022-12-09 11:17:33 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-12-09 11:17:33 +0100 |
commit | ea9db278f3b062fe46553c741834b237350659a2 (patch) | |
tree | 5b314c9ae3ffda500d405adc78fafdc3ff33cfbc | |
parent | 69fe6f37cd90489ae0821e6c33655341cabcfd8e (diff) | |
download | libinput-ea9db278f3b062fe46553c741834b237350659a2.tar.gz |
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>
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index fda3e7a8..80456bc0 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', |