feat: initial commit with build system

This commit is contained in:
Andrew Rioux
2025-01-19 20:46:46 -05:00
parent 8c4c6674a1
commit 6b33f1a5ba
12 changed files with 277 additions and 101 deletions
+8
View File
@@ -0,0 +1,8 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "freebsd" {
let freebsd_libs = std::env::var("FREEBSD_LIBS").unwrap();
println!("cargo:rustc-link-arg=--sysroot={freebsd_libs}");
println!("cargo:rustc-link-arg=-L{freebsd_libs}/lib");
println!("cargo:rustc-link-arg=-L{freebsd_libs}/usr/lib");
}
}