use std::path::Path;
fn main() {
let source_path = Path::new("ghidra/Ghidra/Features/Decompiler/src/decompile/cpp");
cxx_build::bridge("src/ffi/sys.rs")
.define("LOCAL_ZLIB", "1")
.define("NO_GZIP", "1")
.flag_if_supported("-std=c++14")
.file("src/ffi/cpp/bridge.cc")
.file("src/ffi/cpp/slgh_compile.cc")
.include(source_path) .warnings(false) .compile("slacomp");
println!("cargo:rustc-link-lib=sla");
println!("cargo:rerun-if-changed=src/ffi/sys.rs");
println!("cargo:rerun-if-changed=src/ffi/cpp");
}