2021-03-31 06:31:52 +09:00
|
|
|
mod macos;
|
2021-06-01 00:21:56 +09:00
|
|
|
mod windows;
|
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");
|
2021-03-31 06:31:52 +09:00
|
|
|
match std::env::var("CARGO_CFG_TARGET_OS").as_deref() {
|
|
|
|
Ok("macos") => macos::setup(),
|
2021-06-01 00:21:56 +09:00
|
|
|
Ok("windows") => windows::setup(),
|
2021-03-31 06:31:52 +09:00
|
|
|
_ => {}
|
2020-02-18 22:09:17 +09:00
|
|
|
}
|
|
|
|
}
|