mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-22 13:38:34 +03:00
62 lines
2.0 KiB
Rust
62 lines
2.0 KiB
Rust
use shadow_rs::ShadowBuilder;
|
|
|
|
fn main() {
|
|
ShadowBuilder::builder()
|
|
.deny_const(Default::default())
|
|
.build()
|
|
.expect("shadow build");
|
|
|
|
let unix = cfg!(unix);
|
|
let macos = cfg!(target_os = "macos");
|
|
|
|
let layer_shell_capture = cfg!(feature = "layer_shell_capture");
|
|
let libei_capture = cfg!(feature = "libei_capture");
|
|
let x11_capture = cfg!(feature = "x11_capture");
|
|
|
|
let libei_emulation = cfg!(feature = "libei_emulation");
|
|
let x11_emulation = cfg!(feature = "x11_emulation");
|
|
let wlroots_emulation = cfg!(feature = "wlroots_emulation");
|
|
let rdp_emulation = cfg!(feature = "rdp_emulation");
|
|
|
|
let layer_shell_capture = unix && !macos && layer_shell_capture;
|
|
let libei_capture = unix && !macos && libei_capture;
|
|
let x11_capture = unix && !macos && x11_capture;
|
|
|
|
let libei_emulation = unix && !macos && libei_emulation;
|
|
let rdp_emulation = unix && !macos && rdp_emulation;
|
|
let wlroots_emulation = unix && !macos && wlroots_emulation;
|
|
let x11_emulation = unix && !macos && x11_emulation;
|
|
|
|
println!("cargo::rustc-check-cfg=cfg(layer_shell_capture)");
|
|
println!("cargo::rustc-check-cfg=cfg(libei_capture)");
|
|
println!("cargo::rustc-check-cfg=cfg(x11_capture)");
|
|
|
|
println!("cargo::rustc-check-cfg=cfg(libei_emulation)");
|
|
println!("cargo::rustc-check-cfg=cfg(rdp_emulation)");
|
|
println!("cargo::rustc-check-cfg=cfg(wlroots_emulation)");
|
|
println!("cargo::rustc-check-cfg=cfg(x11_emulation)");
|
|
|
|
if layer_shell_capture {
|
|
println!("cargo::rustc-cfg=layer_shell_capture");
|
|
}
|
|
if libei_capture {
|
|
println!("cargo::rustc-cfg=libei_capture");
|
|
}
|
|
if x11_capture {
|
|
println!("cargo::rustc-cfg=x11_capture");
|
|
}
|
|
|
|
if libei_emulation {
|
|
println!("cargo::rustc-cfg=libei_emulation");
|
|
}
|
|
if rdp_emulation {
|
|
println!("cargo::rustc-cfg=rdp_emulation");
|
|
}
|
|
if wlroots_emulation {
|
|
println!("cargo::rustc-cfg=wlroots_emulation");
|
|
}
|
|
if x11_emulation {
|
|
println!("cargo::rustc-cfg=x11_emulation");
|
|
}
|
|
}
|