mirror of
https://github.com/hanzoai/rustautogui.git
synced 2026-10-30 18:23:05 +00:00
11 lines
243 B
Rust
11 lines
243 B
Rust
// build.rs
|
|
use std::env;
|
|
|
|
fn main() {
|
|
//required for X11 binding connection
|
|
if env::var("CARGO_CFG_TARGET_OS").unwrap() == "linux" {
|
|
println!("cargo:rustc-link-lib=X11");
|
|
println!("cargo:rustc-link-lib=Xtst");
|
|
}
|
|
}
|