fn main() { // Compile the LeapMotion wrapper (and Leap itself) cc::Build::new().file("cpp/wrapper.cc").flag("-Wno-deprecated").flag("-Wno-deprecated-copy").flag("-L lib").flag("-lLeap").flag("-lstdc++").compile("foo"); // pkg_config::Config::new().probe("Leap").unwrap(); // Set up the linker to include Leap println!("cargo:rustc-link-search=native=libodm/lib"); println!("cargo:rustc-link-lib=Leap"); // Set up the linker to include stdc++ println!("cargo:rustc-link-lib=static-nobundle=stdc++"); // Make cargo auto-rebuild these files println!("cargo:rerun-if-changed=libodm/build.rs"); println!("cargo:rerun-if-changed=libodm/cpp/wrapper.cc"); println!("cargo:rerun-if-changed=libodm/cpp/listener.cc"); }