This commit is contained in:
Alex Kerr
2024-01-29 00:04:21 +00:00
commit cb52707b55
23 changed files with 9117 additions and 0 deletions

17
build.rs Normal file
View File

@@ -0,0 +1,17 @@
fn main() {
// Instruct cargo to rerun the build script if any of the reference library
// is changed.
println!("cargo:rerun-if-changed=src/reference/Romulus-M");
// Use cmake to build the romulus reference library, and link to it.
// We need to link to both the .dll and the .lib file, which appear
// in different folders.
let dst = cmake::build("src/reference");
let mut libpath = dst.clone();
libpath.push("lib");
let mut binpath = dst;
binpath.push("bin");
println!("cargo:rustc-link-search=native={}", libpath.display());
println!("cargo:rustc-link-search=native={}", binpath.display());
println!("cargo:rustc-link-lib=romulus-m-static");
}