mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-11 07:22:35 +00:00
30 lines
611 B
Rust
30 lines
611 B
Rust
use pb_rs::ConfigBuilder;
|
|
use pb_rs::types::FileDescriptor;
|
|
|
|
use crate::codegen::gen_cxx_binding;
|
|
|
|
#[path = "../include/codegen.rs"]
|
|
mod codegen;
|
|
|
|
#[allow(clippy::unwrap_used)]
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=proto/update_metadata.proto");
|
|
|
|
gen_cxx_binding("boot-rs");
|
|
|
|
let cb = ConfigBuilder::new(
|
|
&["proto/update_metadata.proto"],
|
|
None,
|
|
Some(&"proto"),
|
|
&["."],
|
|
)
|
|
.unwrap();
|
|
FileDescriptor::run(
|
|
&cb.single_module(true)
|
|
.dont_use_cow(true)
|
|
.generate_getters(true)
|
|
.build(),
|
|
)
|
|
.unwrap();
|
|
}
|