Rebuild if XCLIP_PATH or XSEL_PATH environment variable is changed

This commit is contained in:
timvisee 2019-03-25 19:15:25 +01:00
parent 5702367b84
commit 53e5843fed
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
2 changed files with 9 additions and 0 deletions

View file

@ -22,6 +22,7 @@ exclude = [
"res/*", "res/*",
] ]
edition = "2018" edition = "2018"
build = "build.rs"
[package.metadata.deb] [package.metadata.deb]
section = "utility" section = "utility"

8
build.rs Normal file
View file

@ -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");
}
}