mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
1ab1737653
Some distros like Fedora build libinput with plugin autoloading, however by default, the compositor needs to explicitly load them. Plus, we need to load manually if we want to also load from $XDG_CONFIG_HOME/libinput/plugins. Ref. https://gitlab.gnome.org/GNOME/mutter/-/commit/c5b12fbf6313d51f3279901bb561023e56181e36
11 lines
274 B
Rust
11 lines
274 B
Rust
fn main() {
|
|
println!("cargo:rustc-check-cfg=cfg(have_libinput_plugin_system)");
|
|
if pkg_config::Config::new()
|
|
.atleast_version("1.30.0")
|
|
.probe("libinput")
|
|
.is_ok()
|
|
{
|
|
println!("cargo:rustc-cfg=have_libinput_plugin_system")
|
|
}
|
|
}
|