napi-rs/crates/build/src/lib.rs

14 lines
287 B
Rust
Raw Normal View History

mod android;
mod macos;
pub fn setup() {
println!("cargo:rerun-if-env-changed=DEBUG_GENERATED_CODE");
match std::env::var("CARGO_CFG_TARGET_OS").as_deref() {
Ok("macos") => {
macos::setup();
}
Ok("android") => if let Ok(_) = android::setup() {},
_ => {}
2020-02-18 22:09:17 +09:00
}
}