fn main() {
#[cfg(feature = "lighter-sdk")]
{
let lighter_go_path = std::env::var("LIGHTER_GO_PATH").unwrap_or_else(|_| {
if std::path::Path::new("/home/guest/oss/lighter-go").exists() {
"/home/guest/oss/lighter-go".to_string()
} else {
let home = std::env::var("HOME").unwrap_or("/home/ec2-user".to_string());
format!("{}/lighter-go", home)
}
});
println!("cargo:rustc-link-search=native={}", lighter_go_path);
println!("cargo:rustc-link-lib=dylib=signer");
println!("cargo:rerun-if-changed={}/libsigner.so", lighter_go_path);
}
}