16 lines
339 B
Rust
16 lines
339 B
Rust
// build.rs
|
|
|
|
use std::path::PathBuf;
|
|
|
|
fn main() {
|
|
let out_dir = PathBuf::from("./generated");
|
|
|
|
let bridges = vec!["src/lib.rs"];
|
|
for path in &bridges {
|
|
println!("cargo:rerun-if-changed={}", path);
|
|
}
|
|
|
|
swift_bridge_build::parse_bridges(bridges)
|
|
.write_all_concatenated(out_dir, env!("CARGO_PKG_NAME"));
|
|
}
|