Skip to content

Commit

Permalink
Update build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Apr 11, 2024
1 parent 2deac96 commit 7a920fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ fn github_ver() -> Option<String> {
fn platform_cfg() {
let gstreamer_dir = env::var_os("GSTREAMER_1_0_ROOT_X86_64")
.and_then(|x| x.into_string().ok())
.unwrap_or_else(|| r#"C:\gstreamer\1.0\x86_64\"#.to_string());
.unwrap_or_else(|| {
env::var_os("GSTREAMER_1_0_ROOT_MSVC_X86_64")
.and_then(|x| x.into_string().ok())
.unwrap_or_else(|| r#"C:\gstreamer\1.0\x86_64\"#.to_string())
});

println!(r"cargo:rustc-link-search=native={}\lib", gstreamer_dir);
}
Expand Down

0 comments on commit 7a920fb

Please sign in to comment.