blob: a8813425dbd83d1f351fe12787fe203129a0e415 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
extern crate wayland_scanner;
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(
"./protocols/river-status-unstable-v1.xml",
out_dir.join("river-status-unstable-v1.rs"),
Side::Client,
);
generate_code(
"./protocols/river-control-unstable-v1.xml",
out_dir.join("river-control-unstable-v1.rs"),
Side::Client,
);
}
|