mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
Remove needless macros format! (#11456)
This commit is contained in:
7
build.rs
7
build.rs
@@ -68,11 +68,8 @@ fn install_android_deps() {
|
|||||||
}
|
}
|
||||||
path.push(target);
|
path.push(target);
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"cargo:rustc-link-search={}",
|
||||||
format!(
|
path.join("lib").to_str().unwrap()
|
||||||
"cargo:rustc-link-search={}",
|
|
||||||
path.join("lib").to_str().unwrap()
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
println!("cargo:rustc-link-lib=ndk_compat");
|
println!("cargo:rustc-link-lib=ndk_compat");
|
||||||
println!("cargo:rustc-link-lib=oboe");
|
println!("cargo:rustc-link-lib=oboe");
|
||||||
|
|||||||
@@ -62,21 +62,15 @@ fn link_vcpkg(mut path: PathBuf, name: &str) -> PathBuf {
|
|||||||
}
|
}
|
||||||
path.push(target);
|
path.push(target);
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"cargo:rustc-link-lib=static={}",
|
||||||
format!(
|
name.trim_start_matches("lib")
|
||||||
"cargo:rustc-link-lib=static={}",
|
|
||||||
name.trim_start_matches("lib")
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"cargo:rustc-link-search={}",
|
||||||
format!(
|
path.join("lib").to_str().unwrap()
|
||||||
"cargo:rustc-link-search={}",
|
|
||||||
path.join("lib").to_str().unwrap()
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
let include = path.join("include");
|
let include = path.join("include");
|
||||||
println!("{}", format!("cargo:include={}", include.to_str().unwrap()));
|
println!("cargo:include={}", include.to_str().unwrap());
|
||||||
include
|
include
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,23 +105,17 @@ fn link_homebrew_m1(name: &str) -> PathBuf {
|
|||||||
path.push(directories.pop().unwrap());
|
path.push(directories.pop().unwrap());
|
||||||
// Link the library.
|
// Link the library.
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"cargo:rustc-link-lib=static={}",
|
||||||
format!(
|
name.trim_start_matches("lib")
|
||||||
"cargo:rustc-link-lib=static={}",
|
|
||||||
name.trim_start_matches("lib")
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
// Add the library path.
|
// Add the library path.
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"cargo:rustc-link-search={}",
|
||||||
format!(
|
path.join("lib").to_str().unwrap()
|
||||||
"cargo:rustc-link-search={}",
|
|
||||||
path.join("lib").to_str().unwrap()
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
// Add the include path.
|
// Add the include path.
|
||||||
let include = path.join("include");
|
let include = path.join("include");
|
||||||
println!("{}", format!("cargo:include={}", include.to_str().unwrap()));
|
println!("cargo:include={}", include.to_str().unwrap());
|
||||||
include
|
include
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user