Add support for OpenWRT
[pulga.git] / build.rs
blob78635e53b94a60c14caf758e8d1cbd4ecc455ec2
1 // fn running_on_wayland() -> bool {
2 //     let session_type = match env::var_os("XDG_SESSION_TYPE") {
3 //         Some(session) => session.to_string_lossy().to_string(),
4 //         None                  => return false
5 //     };
7 //     session_type == "wayland"
8 // }
11 fn main() {
12     #[cfg(feature = "use_xlib")]
13     {
14         println!("cargo:warning=Compiling with X11 dependencies.");
15         println!("cargo:rustc-flags=-lX11 -lXrandr");
16     }