rustdesk/libs/hbb_common/build.rs

10 lines
340 B
Rust
Raw Normal View History

2021-03-29 15:59:14 +08:00
fn main() {
std::fs::create_dir_all("src/protos").unwrap();
protobuf_codegen_pure::Codegen::new()
.out_dir("src/protos")
.inputs(&["protos/rendezvous.proto", "protos/base_proto.proto", "protos/message.proto", "protos/discovery.proto"])
2021-03-29 15:59:14 +08:00
.include("protos")
.run()
.expect("Codegen failed.");
}