Rebuild if XCLIP_PATH or XSEL_PATH environment variable is changed
This commit is contained in:
parent
5702367b84
commit
53e5843fed
2 changed files with 9 additions and 0 deletions
|
@ -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
8
build.rs
Normal 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");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue