xmr-btc-swap/monero-adaptor/build.rs
2021-04-21 15:25:02 +10:00

16 lines
483 B
Rust

extern crate bindgen;
fn main() {
// Tell cargo to invalidate the built crate whenever the wrapper changes
println!("cargo:rerun-if-changed=depend/hash");
let mut base_config = cc::Build::new();
base_config.include("depend/hash/include");
base_config.file("depend/hash/hash.c");
base_config.file("depend/hash/crypto-ops.c");
base_config.file("depend/hash/keccak.c");
base_config.compile("hash");
println!("cargo:rustc-link-lib=static=hash");
}