Nacre/build.rs

8 lines
442 B
Rust

// Nacre's patched libgstmse-1.0.so.0 (tools/gst-mse.sh) must win over the system copy: the binary's RUNPATH
// looks next to it first (`lib/`, the release layout), then in a dev tree's `target/gst-mse/lib`.
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") {
println!("cargo:rustc-link-arg-bins=-Wl,-rpath,$ORIGIN/lib:$ORIGIN/../gst-mse/lib");
}
println!("cargo:rerun-if-changed=build.rs");
}