File: build.rs

package info (click to toggle)
rust-wayland-backend 0.3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 776 kB
  • sloc: ansic: 28; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    println!("cargo:rustc-check-cfg=cfg(coverage)");
    println!("cargo:rustc-check-cfg=cfg(unstable_coverage)");

    if std::env::var("CARGO_FEATURE_LOG").ok().is_some() {
        // build the client shim
        cc::Build::new().file("src/sys/client_impl/log_shim.c").compile("log_shim_client");
        println!("cargo:rerun-if-changed=src/sys/client_impl/log_shim.c");
        // build the server shim
        cc::Build::new().file("src/sys/server_impl/log_shim.c").compile("log_shim_server");
        println!("cargo:rerun-if-changed=src/sys/server_impl/log_shim.c");
    }
}