openxr-sys 0.1.6

OpenXR FFI bindings
Documentation
#[cfg(feature = "static")]
fn main() {
    let dst = cmake::Config::new("OpenXR-SDK")
        .no_build_target(true)
        .define("BUILD_API_LAYERS", "OFF")
        .define("BUILD_TESTS", "OFF")
        .define("OpenGL_GL_PREFERENCE", "GLVND")
        .build();

    println!("cargo:rustc-link-search=native={}/build/src/loader", dst.display());
    println!("cargo:rustc-link-lib=static=openxr_loader");
    if cfg!(any(target_os = "macos", target_os = "freebsd")) {
        println!("cargo:rustc-link-lib=c++");
    } else {
        println!("cargo:rustc-link-lib=stdc++");
        println!("cargo:rustc-link-lib=stdc++fs");
    }
}

#[cfg(not(feature = "static"))]
fn main() {}