napi-rs/build/src/lib.rs

12 lines
209 B
Rust
Raw Normal View History

cfg_if::cfg_if! {
2020-11-10 12:09:25 +09:00
if #[cfg(windows)] {
mod windows;
pub use windows::setup;
} else if #[cfg(target_os = "macos")] {
mod macos;
pub use macos::setup;
2020-02-18 22:09:17 +09:00
} else {
2020-11-10 12:09:25 +09:00
pub fn setup() { }
2020-02-18 22:09:17 +09:00
}
}