occt-sys 7.8.1

Static build of the C++ OpenCascade CAD Kernel for use as a Rust dependency
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::{env::var, path::Path};

fn main() {
    println!(
        "cargo:rustc-env=OCCT_SRC_DIR={}",
        Path::new(&var("CARGO_MANIFEST_DIR").unwrap()).join("OCCT").to_string_lossy()
    );
    println!(
        "cargo:rustc-env=OCCT_PATCH_DIR={}",
        Path::new(&var("CARGO_MANIFEST_DIR").unwrap()).join("patch").to_string_lossy()
    );
}