windows_i686_gnu 0.52.3

Import lib for Windows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap();
    let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap();
    let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap();
    if family != "windows" || arch != "x86" || env != "gnu" {
        return;
    }

    let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();

    println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display());
}