app
Fusion - the Fusion 360 Bridge
Public Made by Adomby adom
Drive Autodesk Fusion 360 from the cloud via Adom Bridge: component libraries, IPC package generation, board layout, exports (STEP/Gerbers/BOM/CPL), fast APS cloud search, and parametric modeling.
master
Drew Owens
Port occurrence translation and contract authoring to Rust; publish verified R21 source
a06dfd7
26d ago
use std::{env, path::PathBuf};
fn main() {
println!("cargo:rerun-if-env-changed=FUSION_CPP_SDK");
for p in ["shim/session.cpp", "shim/session.h"] {
println!("cargo:rerun-if-changed={p}");
}
if env::var_os("CARGO_FEATURE_NATIVE_SDK").is_none() {
return;
}
assert_eq!(env::var("TARGET").unwrap(), "x86_64-pc-windows-msvc");
let sdk = PathBuf::from(env::var_os("FUSION_CPP_SDK").expect("installed SDK required"));
cc::Build::new()
.cpp(true)
.file("shim/session.cpp")
.include(sdk.join("include"))
.std("c++17")
.flag("/EHsc")
.compile("session_sdk");
println!(
"cargo:rustc-link-search=native={}",
sdk.join("lib").display()
);
println!("cargo:rustc-link-lib=core");
println!("cargo:rustc-link-lib=fusion");
}