openjlc 2.23.7

Ultra-fast Gerber conversion tool.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* build.rs */

use std::env;
use std::path::PathBuf;

fn main() {
    if env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows"
        && env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "x86_64"
    {
        let out = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
        println!(
            "cargo:rustc-link-arg-bin=openjlc={}",
            out.join("icon.res").display()
        );
    }
}