1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
2 | // SPDX-License-Identifier: MIT |
3 | |
4 | #[cfg (not(feature = "mcu-board-support" ))] |
5 | fn main() { |
6 | slint_build::compile(path:"../ui/carousel_demo.slint" ).unwrap(); |
7 | } |
8 | |
9 | #[cfg (feature = "mcu-board-support" )] |
10 | fn main() { |
11 | let config = slint_build::CompilerConfiguration::new() |
12 | .embed_resources(slint_build::EmbedResourcesKind::EmbedForSoftwareRenderer); |
13 | slint_build::compile_with_config("../ui/carousel_demo.slint" , config).unwrap(); |
14 | slint_build::print_rustc_flags().unwrap(); |
15 | } |
16 | |