//! this build script compiles STA kernels fn main() { println!("Building the C source files for GB-STA.."); println!("cargo:rerun-if-changed=csrc"); let csrc_headers = ucc::import_csrc(); ucc::cl_cpp_openmp() .files(["csrc/levelize.cpp", "csrc/arnoldi.cpp", "csrc/dmpprop.cpp"]) .include(csrc_headers) .compile("stagraphc"); println!("cargo:rustc-link-lib=static=stagraphc"); ucc::bindgen(["csrc/levelize.cpp"], "levelize.rs"); ucc::bindgen(["csrc/arnoldi.cpp"], "arnoldi.rs"); ucc::bindgen(["csrc/dmpprop.cpp"], "dmpprop.rs"); ucc::export_csrc(); }