use cxx_build::CFG;
fn main() {
CFG.include_prefix = "risc0/zkp/accel";
CFG.exported_header_links = vec!["risc0-core", "risc0-zkp-core"];
cxx_build::bridge("src/lib.rs")
.file("backend/cpu/impl.cpp")
.define("__TBB_NO_IMPLICIT_LINKAGE", None)
.flag_if_supported("/std:c++17")
.flag_if_supported("-std=c++17")
.warnings(false)
.compile("risc0-zkp-accel");
println!("cargo:rustc-link-lib=static=tbb");
println!("cargo:rustc-link-lib=static=risc0-core");
println!("cargo:rustc-link-lib=static=risc0-zkp-core");
}