Skip to content

Commit

Permalink
TEMP COMMIT: print cmake output folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxinal committed Aug 9, 2024
1 parent 33ff1e4 commit 1649271
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion uiohook-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{env, path::PathBuf};
use std::{env, io::Read, path::PathBuf, process::Command};

fn main() {
println!("cargo:rerun-if-changed=build.rs");
Expand All @@ -7,6 +7,10 @@ fn main() {
.define("USE_XTEST", "OFF")
.define("USE_XT", "OFF")
.build();
println!("cargo:warning={}", dst.display());
let path = std::path::Path::new(&dst.display().to_string()).read_dir().unwrap();
path.for_each(|file| println!("cargo:warning={}", file.unwrap().file_name().to_string_lossy()));

println!("cargo:rustc-link-search=native={}/lib64", dst.display());
println!("cargo:rustc-link-lib=static=uiohook");
println!("cargo:rustc-link-lib=X11");
Expand Down

0 comments on commit 1649271

Please sign in to comment.