kolibri-cyd-tester-app-embassy/slint-based/build.rs

31 lines
1.0 KiB
Rust
Raw Permalink Normal View History

2024-11-18 15:35:01 +00:00
fn main() {
2024-11-25 20:53:08 +00:00
#[cfg(feature = "starter")]
2024-11-18 15:35:01 +00:00
slint_build::compile_with_config(
"ui/app-window.slint",
slint_build::CompilerConfiguration::new()
.embed_resources(slint_build::EmbedResourcesKind::EmbedForSoftwareRenderer),
)
.unwrap();
2024-11-25 20:53:08 +00:00
#[cfg(feature = "timer")]
slint_build::compile_with_config(
"ui/timer-app.slint",
slint_build::CompilerConfiguration::new()
.embed_resources(slint_build::EmbedResourcesKind::EmbedForSoftwareRenderer),
)
.unwrap();
2024-11-25 20:53:08 +00:00
#[cfg(feature = "light-control")]
slint_build::compile_with_config(
"ui/lights-app.slint",
slint_build::CompilerConfiguration::new()
.embed_resources(slint_build::EmbedResourcesKind::EmbedForSoftwareRenderer),
)
.unwrap();
2024-11-25 20:53:08 +00:00
#[cfg(feature = "microwave-ui")]
slint_build::compile_with_config(
"ui/microwave-ui.slint",
slint_build::CompilerConfiguration::new()
.embed_resources(slint_build::EmbedResourcesKind::EmbedForSoftwareRenderer),
)
.unwrap();
2024-11-18 15:35:01 +00:00
}