Narrow the focus of exec client/server build
Only change of the proto file should trigger the build script.
This commit is contained in:
parent
83fcd47cd0
commit
9c390923a5
@ -1,13 +1,16 @@
|
|||||||
extern crate protoc_rust_grpc;
|
extern crate protoc_rust_grpc;
|
||||||
|
|
||||||
|
const PROTO_FILE: &str = "occlum_exec.proto";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
protoc_rust_grpc::Codegen::new()
|
protoc_rust_grpc::Codegen::new()
|
||||||
.out_dir("src")
|
.out_dir("src")
|
||||||
.input("occlum_exec.proto")
|
.input(PROTO_FILE)
|
||||||
.rust_protobuf(true)
|
.rust_protobuf(true)
|
||||||
.run()
|
.run()
|
||||||
.expect("protoc-rust-grpc");
|
.expect("protoc-rust-grpc");
|
||||||
|
|
||||||
|
println!("cargo:rerun-if-changed={}", PROTO_FILE);
|
||||||
println!("cargo:rustc-link-search=native=../../build/lib");
|
println!("cargo:rustc-link-search=native=../../build/lib");
|
||||||
println!("cargo:rustc-link-lib=dylib=occlum-pal");
|
println!("cargo:rustc-link-lib=dylib=occlum-pal");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user