From a740870b67f35d42af5ce0c419bb74a8f30c4d9e Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 29 Jul 2021 13:30:12 +0800 Subject: [PATCH] fix on android --- libs/scrap/Cargo.toml | 2 +- libs/scrap/build.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/scrap/Cargo.toml b/libs/scrap/Cargo.toml index f20b976c0..aaee9b394 100644 --- a/libs/scrap/Cargo.toml +++ b/libs/scrap/Cargo.toml @@ -32,7 +32,7 @@ quest = "0.3" [build-dependencies] target_build_utils = "0.3" -bindgen = "0.53" +bindgen = "0.59" [target.'cfg(target_os = "linux")'.dependencies] dbus = { version = "0.9", optional = true } diff --git a/libs/scrap/build.rs b/libs/scrap/build.rs index 749ee5f42..d9319a59c 100644 --- a/libs/scrap/build.rs +++ b/libs/scrap/build.rs @@ -19,10 +19,8 @@ fn find_package(name: &str) -> Vec { "x64-osx".to_owned() } else if target_os == "windows" { "x64-windows-static".to_owned() - } else if target_os == "android" { - format!("{}-android-static", target_arch) } else { - "x64-linux".to_owned() + format!("{}-{}", target_arch, target_os) }; println!("cargo:info={}", target); path.push("installed");