Update build.rs
This commit is contained in:
1 parent
2deac96af4
commit
7a920fb09a
1 file changed
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user