15 lines
444 B
Rust
15 lines
444 B
Rust
use std::path::Path;
|
|
|
|
fn main() {
|
|
println!("cargo::rerun-if-changed=shrooms-vb-core");
|
|
cc::Build::new()
|
|
.include(Path::new("shrooms-vb-core/core"))
|
|
.opt_level(2)
|
|
.flag_if_supported("-fno-strict-aliasing")
|
|
.define("VB_LITTLE_ENDIAN", None)
|
|
.define("VB_SIGNED_PROPAGATE", None)
|
|
.define("VB_DIV_GENERIC", None)
|
|
.file(Path::new("shrooms-vb-core/core/vb.c"))
|
|
.compile("vb");
|
|
}
|