mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-06-30 06:01:56 -06:00
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
31 lines
883 B
Rust
31 lines
883 B
Rust
fn main() {
|
|
let unix = cfg!(unix);
|
|
let libei = cfg!(feature = "libei");
|
|
let x11 = cfg!(feature = "x11");
|
|
let macos = cfg!(target_os = "macos");
|
|
let wlroots = cfg!(feature = "wlroots");
|
|
let rdp = cfg!(feature = "remote_desktop_portal");
|
|
|
|
let libei = unix && !macos && libei;
|
|
let wlroots = unix && !macos && wlroots;
|
|
let x11 = unix && !macos && x11;
|
|
let rdp = unix && !macos && rdp;
|
|
|
|
println!("cargo::rustc-check-cfg=cfg(wlroots)");
|
|
println!("cargo::rustc-check-cfg=cfg(libei)");
|
|
println!("cargo::rustc-check-cfg=cfg(x11)");
|
|
println!("cargo::rustc-check-cfg=cfg(rdp)");
|
|
|
|
if libei {
|
|
println!("cargo::rustc-cfg=libei");
|
|
}
|
|
if x11 {
|
|
println!("cargo::rustc-cfg=x11");
|
|
}
|
|
if wlroots {
|
|
println!("cargo::rustc-cfg=wlroots");
|
|
}
|
|
if rdp {
|
|
println!("cargo::rustc-cfg=rdp");
|
|
}
|
|
}
|