2022-06-10 00:38:43 +09:00
|
|
|
mod android;
|
2021-03-31 06:31:52 +09:00
|
|
|
mod macos;
|
|
|
|
|
|
|
|
pub fn setup() {
|
2021-11-22 23:35:05 +09:00
|
|
|
println!("cargo:rerun-if-env-changed=DEBUG_GENERATED_CODE");
|
2022-06-10 00:38:43 +09:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|