2022-06-10 00:38:43 +09:00
|
|
|
mod android;
|
2021-03-31 06:31:52 +09:00
|
|
|
mod macos;
|
2023-11-02 13:57:11 +09:00
|
|
|
mod wasi;
|
2021-03-31 06:31:52 +09:00
|
|
|
|
|
|
|
pub fn setup() {
|
2021-11-22 23:35:05 +09:00
|
|
|
println!("cargo:rerun-if-env-changed=DEBUG_GENERATED_CODE");
|
2023-04-06 12:04:53 +09:00
|
|
|
println!("cargo:rerun-if-env-changed=TYPE_DEF_TMP_PATH");
|
2022-06-10 00:38:43 +09:00
|
|
|
match std::env::var("CARGO_CFG_TARGET_OS").as_deref() {
|
|
|
|
Ok("macos") => {
|
|
|
|
macos::setup();
|
|
|
|
}
|
2022-06-10 16:20:06 +09:00
|
|
|
Ok("android") => if android::setup().is_ok() {},
|
2023-11-02 13:57:11 +09:00
|
|
|
Ok("wasi") => {
|
|
|
|
wasi::setup();
|
|
|
|
}
|
2022-06-10 00:38:43 +09:00
|
|
|
_ => {}
|
2020-02-18 22:09:17 +09:00
|
|
|
}
|
|
|
|
}
|