mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 01:29:16 +02:00
Use alternate clipboard method for FreeBSD and other BSD derivatives
This commit is contained in:
parent
d5bc5a4289
commit
ab55390ba8
4 changed files with 242 additions and 32 deletions
11
build.rs
11
build.rs
|
@ -1,6 +1,15 @@
|
|||
fn main() {
|
||||
// xclip and xsel paths are inserted at compile time on Linux
|
||||
#[cfg(all(feature = "clipboard", target_os = "linux"))]
|
||||
#[cfg(all(
|
||||
feature = "clipboard",
|
||||
any(
|
||||
target_os = "linux",
|
||||
target_os = "freebsd",
|
||||
target_os = "dragonfly",
|
||||
target_os = "openbsd",
|
||||
target_os = "netbsd",
|
||||
)
|
||||
))]
|
||||
{
|
||||
println!("cargo:rerun-if-env-changed=XCLIP_PATH");
|
||||
println!("cargo:rerun-if-env-changed=XSEL_PATH");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue