20 lines
503 B
Rust
20 lines
503 B
Rust
use std::env::var;
|
|
use std::path::Path;
|
|
use wayland_scanner::{generate_code, Side};
|
|
|
|
fn main() {
|
|
let out_dir = var("OUT_DIR").unwrap();
|
|
let out_dir = Path::new(&out_dir);
|
|
|
|
generate_code(
|
|
"./protocol/river-status-unstable-v1.xml",
|
|
out_dir.join("river-status-unstable-v1.rs"),
|
|
Side::Client,
|
|
);
|
|
generate_code(
|
|
"./protocol/wlr-output-management-unstable-v1.xml",
|
|
out_dir.join("wlr-output-management-unstable-v1.rs"),
|
|
Side::Client
|
|
);
|
|
}
|