This commit is contained in:
rustdesk 2022-05-12 17:55:49 +08:00
parent 2e75028d83
commit 1ab061a690
3 changed files with 273 additions and 3 deletions

View file

@ -40,7 +40,7 @@ fn install_oboe() {
} else {
target_arch = "arm".to_owned();
}
let target = format!("{}-android-static", target_arch);
let target = format!("{}-android", target_arch);
let vcpkg_root = std::env::var("VCPKG_ROOT").unwrap();
let mut path: std::path::PathBuf = vcpkg_root.into();
path.push("installed");
@ -63,12 +63,17 @@ fn install_oboe() {
}
fn main() {
hbb_common::gen_version();
install_oboe();
// there is problem with cfg(target_os) in build.rs, so use our workaround
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
if target_os == "android" || target_os == "ios" {
return;
}
#[cfg(all(windows, feature = "inline"))]
build_manifest();
#[cfg(windows)]
build_windows();
#[cfg(target_os = "macos")]
println!("cargo:rustc-link-lib=framework=ApplicationServices");
hbb_common::gen_version();
install_oboe();
}