diff options
author | rustdesk <[email protected]> | 2023-01-27 11:00:59 +0800 |
---|---|---|
committer | rustdesk <[email protected]> | 2023-01-27 11:00:59 +0800 |
commit | 17ddc89bd025dd0304b858f39a264fe707ea40bc (patch) | |
tree | af08cca0ed11bd69f4bd8b565383e38754dd57a1 /libs/hbb_common/build.rs | |
parent | 2314783d4284a94711e48620e8fd9f315d1154dc (diff) | |
download | rustdesk-server-17ddc89bd025dd0304b858f39a264fe707ea40bc.tar.gz rustdesk-server-17ddc89bd025dd0304b858f39a264fe707ea40bc.zip |
sync rustdesk's hbb_common here
Diffstat (limited to 'libs/hbb_common/build.rs')
-rw-r--r-- | libs/hbb_common/build.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/hbb_common/build.rs b/libs/hbb_common/build.rs index 225ec34..bff0cfa 100644 --- a/libs/hbb_common/build.rs +++ b/libs/hbb_common/build.rs @@ -1,8 +1,11 @@ fn main() { - std::fs::create_dir_all("src/protos").unwrap(); + let out_dir = format!("{}/protos", std::env::var("OUT_DIR").unwrap()); + + std::fs::create_dir_all(&out_dir).unwrap(); + protobuf_codegen::Codegen::new() .pure() - .out_dir("src/protos") + .out_dir(out_dir) .inputs(&["protos/rendezvous.proto", "protos/message.proto"]) .include("protos") .customize( |