Magisk/native/src/boot/build.rs

20 lines
438 B
Rust
Raw Normal View History

2023-05-03 23:13:05 +00:00
use protobuf_codegen::Customize;
2023-05-19 22:16:54 +00:00
use crate::gen::gen_cxx_binding;
#[path = "../base/gen.rs"]
mod gen;
2023-05-03 23:13:05 +00:00
fn main() {
println!("cargo:rerun-if-changed=update_metadata.proto");
protobuf_codegen::Codegen::new()
.pure()
.include(".")
.input("update_metadata.proto")
.customize(Customize::default().gen_mod_rs(false))
.out_dir(".")
.run_from_script();
2023-05-19 22:16:54 +00:00
gen_cxx_binding("boot-rs");
2023-05-03 23:13:05 +00:00
}