forked from vitrine/wmaker
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.
9 lines
159 B
Rust
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");
|
|
}
|