libcsp-rust/examples/build.rs

12 lines
332 B
Rust
Raw Normal View History

use std::{env, path::PathBuf};
use libcsp_cargo_build::Builder;
fn main() {
2024-05-29 20:14:53 +02:00
let out_dir = env::var("OUT_DIR").unwrap_or_default();
2024-05-29 20:14:53 +02:00
let libcsp_path = "../lib/libcsp";
let mut csp_builder = Builder::new(PathBuf::from(libcsp_path), PathBuf::from(out_dir));
csp_builder.compile().expect("compiling libcsp failed");
}