2022-06-03 04:40:54 -07:00
|
|
|
use std::env::var;
|
2021-05-24 13:04:28 -07:00
|
|
|
use std::path::Path;
|
|
|
|
use wayland_scanner::{generate_code, Side};
|
|
|
|
|
2022-06-03 04:40:54 -07:00
|
|
|
fn main() {
|
|
|
|
let out_dir = var("OUT_DIR").unwrap();
|
|
|
|
let out_dir = Path::new(&out_dir);
|
2021-05-24 13:04:28 -07:00
|
|
|
|
2022-06-03 04:40:54 -07:00
|
|
|
generate_code(
|
|
|
|
"./protocol/river-status-unstable-v1.xml",
|
|
|
|
out_dir.join("river-status-unstable-v1.rs"),
|
|
|
|
Side::Client,
|
|
|
|
);
|
2024-05-17 23:22:55 -07:00
|
|
|
generate_code(
|
|
|
|
"./protocol/wlr-output-management-unstable-v1.xml",
|
|
|
|
out_dir.join("wlr-output-management-unstable-v1.rs"),
|
|
|
|
Side::Client
|
|
|
|
);
|
2021-05-24 13:04:28 -07:00
|
|
|
}
|