2024-05-29 18:39:54 +02:00
|
|
|
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 18:39:54 +02:00
|
|
|
|
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");
|
2024-05-29 18:39:54 +02:00
|
|
|
}
|