mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 14:59:02 +08:00
add env VCPKG_INSTALLED_ROOT (#9985)
This commit is contained in:
parent
4a49fbe4a6
commit
608d7d55d5
6
build.rs
6
build.rs
@ -61,7 +61,11 @@ fn install_android_deps() {
|
|||||||
let target = format!("{}-android", target_arch);
|
let target = format!("{}-android", target_arch);
|
||||||
let vcpkg_root = std::env::var("VCPKG_ROOT").unwrap();
|
let vcpkg_root = std::env::var("VCPKG_ROOT").unwrap();
|
||||||
let mut path: std::path::PathBuf = vcpkg_root.into();
|
let mut path: std::path::PathBuf = vcpkg_root.into();
|
||||||
path.push("installed");
|
if let Ok(vcpkg_root) = std::env::var("VCPKG_INSTALLED_ROOT") {
|
||||||
|
path = vcpkg_root.into();
|
||||||
|
} else {
|
||||||
|
path.push("installed");
|
||||||
|
}
|
||||||
path.push(target);
|
path.push(target);
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"{}",
|
||||||
|
@ -55,7 +55,11 @@ fn link_vcpkg(mut path: PathBuf, name: &str) -> PathBuf {
|
|||||||
target = target.replace("x64", "x86");
|
target = target.replace("x64", "x86");
|
||||||
}
|
}
|
||||||
println!("cargo:info={}", target);
|
println!("cargo:info={}", target);
|
||||||
path.push("installed");
|
if let Ok(vcpkg_root) = std::env::var("VCPKG_INSTALLED_ROOT") {
|
||||||
|
path = vcpkg_root.into();
|
||||||
|
} else {
|
||||||
|
path.push("installed");
|
||||||
|
}
|
||||||
path.push(target);
|
path.push(target);
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"{}",
|
||||||
|
Loading…
Reference in New Issue
Block a user