mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 07:07:25 +00:00

These are showing off use-cases for Slint, but they're not examples showing individual Slint features. Also removed the old printerdemo while at it.
15 lines
521 B
Rust
15 lines
521 B
Rust
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#[cfg(not(feature = "mcu-board-support"))]
|
|
fn main() {
|
|
slint_build::compile("ui/desktop_window.slint").unwrap();
|
|
}
|
|
|
|
#[cfg(feature = "mcu-board-support")]
|
|
fn main() {
|
|
let config = slint_build::CompilerConfiguration::new()
|
|
.embed_resources(slint_build::EmbedResourcesKind::EmbedForSoftwareRenderer);
|
|
slint_build::compile_with_config("ui/mcu_window.slint", config).unwrap();
|
|
slint_build::print_rustc_flags().unwrap();
|
|
}
|