mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 01:29:16 +02:00
Remove our complex clipboard logic, use clipboard-ext crate instead
This commit is contained in:
parent
5bea3feffa
commit
8bfe173a18
7 changed files with 28 additions and 283 deletions
37
build.rs
37
build.rs
|
@ -1,37 +0,0 @@
|
|||
fn main() {
|
||||
#[cfg(all(
|
||||
feature = "clipboard",
|
||||
any(
|
||||
target_os = "linux",
|
||||
target_os = "freebsd",
|
||||
target_os = "dragonfly",
|
||||
target_os = "openbsd",
|
||||
target_os = "netbsd",
|
||||
)
|
||||
))]
|
||||
{
|
||||
// Select clipboard binary method
|
||||
#[cfg(not(feature = "clipboard-crate"))]
|
||||
println!("cargo:rustc-cfg=feature=\"clipboard-bin\"");
|
||||
|
||||
// xclip and xsel paths are inserted at compile time
|
||||
println!("cargo:rerun-if-env-changed=XCLIP_PATH");
|
||||
println!("cargo:rerun-if-env-changed=XSEL_PATH");
|
||||
}
|
||||
|
||||
#[cfg(all(
|
||||
feature = "clipboard",
|
||||
not(any(
|
||||
target_os = "linux",
|
||||
target_os = "freebsd",
|
||||
target_os = "dragonfly",
|
||||
target_os = "openbsd",
|
||||
target_os = "netbsd",
|
||||
))
|
||||
))]
|
||||
{
|
||||
// Select clipboard crate method
|
||||
#[cfg(not(feature = "clipboard-bin"))]
|
||||
println!("cargo:rustc-cfg=feature=\"clipboard-crate\"");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue