lan-mouse/input-capture/build.rs
Ferdinand Schober a9461ae830
Some checks failed
Nix Binary Cache / Build (push) Has been cancelled
Nix Binary Cache / Build-1 (push) Has been cancelled
Nix Binary Cache / Build-2 (push) Has been cancelled
Release / linux-release-build (push) Has been cancelled
Release / linux-arm64-release-build (push) Has been cancelled
Release / windows-release-build (push) Has been cancelled
Release / macos-release-build (push) Has been cancelled
Release / macos-arm64-release-build (push) Has been cancelled
Rust / Formatting (push) Has been cancelled
Rust / build macos-15-intel (push) Has been cancelled
Rust / build macos-latest (push) Has been cancelled
Rust / build ubuntu-latest (push) Has been cancelled
Rust / build windows-latest (push) Has been cancelled
Rust / check macos-15-intel (push) Has been cancelled
Rust / check macos-latest (push) Has been cancelled
Rust / check ubuntu-latest (push) Has been cancelled
Rust / check windows-latest (push) Has been cancelled
Rust / clippy macos-15-intel (push) Has been cancelled
Rust / clippy macos-latest (push) Has been cancelled
Rust / clippy ubuntu-latest (push) Has been cancelled
Rust / clippy windows-latest (push) Has been cancelled
Rust / test macos-15-intel (push) Has been cancelled
Rust / test macos-latest (push) Has been cancelled
Rust / test ubuntu-latest (push) Has been cancelled
Rust / test windows-latest (push) Has been cancelled
Release / Release (push) Has been cancelled
move feature flags to build.rs (#439)
2026-05-19 11:26:06 +02:00

25 lines
709 B
Rust

fn main() {
let unix = cfg!(unix);
let layer_shell = cfg!(feature = "layer_shell");
let libei = cfg!(feature = "libei");
let x11 = cfg!(feature = "x11");
let macos = cfg!(target_os = "macos");
let libei = unix && !macos && libei;
let layer_shell = unix && !macos && layer_shell;
let x11 = unix && !macos && x11;
println!("cargo::rustc-check-cfg=cfg(layer_shell)");
println!("cargo::rustc-check-cfg=cfg(libei)");
println!("cargo::rustc-check-cfg=cfg(x11)");
if layer_shell {
println!("cargo::rustc-cfg=layer_shell");
}
if libei {
println!("cargo::rustc-cfg=libei");
}
if x11 {
println!("cargo::rustc-cfg=x11");
}
}