Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
20
third-party/vendor/wayland-client/build.rs
vendored
Normal file
20
third-party/vendor/wayland-client/build.rs
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
extern crate wayland_scanner;
|
||||
|
||||
use std::env::var;
|
||||
use std::path::Path;
|
||||
use wayland_scanner::*;
|
||||
|
||||
fn main() {
|
||||
let protocol_file = "./wayland.xml";
|
||||
|
||||
let out_dir_str = var("OUT_DIR").unwrap();
|
||||
let out_dir = Path::new(&out_dir_str);
|
||||
|
||||
println!("cargo:rerun-if-changed={}", protocol_file);
|
||||
generate_code_with_destructor_events(
|
||||
protocol_file,
|
||||
out_dir.join("wayland_api.rs"),
|
||||
Side::Client,
|
||||
&[("wl_callback", "done")],
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue