Files
wmaker/wutil-rs/build.rs
T
trurl 5b593fb19a Expose the GSUSER_SUBDIR preprocessor symbol to Rust.
This symbol's value must be known to port `wmkdirhier` and `wrmdirhier` from
`proplist.c` to Rust.

This change introduces a basic C library under wutil-rs that is linked into the
Rust code to expose preprocessor symbols and other Autotools configuration
decisions to Rust. See the rust rewrite notes at the top of
`wutil-rs/src/defines.rs` for further thoughts.
2025-10-23 14:46:56 -04:00

9 lines
159 B
Rust

use cc;
fn main() {
cc::Build::new()
.file("src/defines.c")
.compile("defines");
println!("cargo::rerun-if-changed=src/defines.c");
}