slint/demos/energy-monitor/build.rs
Simon Hausmann a98d4709be Move printer demo and energy-monitor into new top-level demos/ folder
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.
2024-10-25 12:09:32 +02:00

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();
}