diff --git a/Cargo.toml b/Cargo.toml index 456347c..ff1c3ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ exclude = [ "res/*", ] edition = "2018" +build = "build.rs" [package.metadata.deb] section = "utility" diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..e4bed5f --- /dev/null +++ b/build.rs @@ -0,0 +1,8 @@ +fn main() { + // xclip and xsel paths are inserted at compile time on Linux + #[cfg(target_os = "linux")] + { + println!("cargo:rerun-if-env-changed=XCLIP_PATH"); + println!("cargo:rerun-if-env-changed=XSEL_PATH"); + } +}