libopenraw-sys 0.1.0

Rust FFI for libopenraw
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    // Tell cargo to invalidate the built crate whenever the wrapper changes
    println!("cargo:rerun-if-changed=wrapper.h");

    // Detect libraries with pkg-config
    let libopenraw = pkg_config::Config::new().probe("libopenraw-0.3").unwrap();

    // Tell cargo to tell rustc to link the system libopenraw shared library
    for lib in &libopenraw.libs {
        println!("cargo:rustc-link-lib={}", lib);
    }
}