slint/examples/carousel/rust/build.rs
Olivier Goffart 580b1375cb carousel: use "mcu-board-support" as feature name, so it is easier to use
then we just enable the support for the pico with --features=mcu-board-support/pico-st7789
2022-10-20 08:01:34 +02:00

15 lines
572 B
Rust

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
#[cfg(not(feature = "mcu-board-support"))]
fn main() {
slint_build::compile("../ui/carousel_demo.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/carousel_demo.slint", config).unwrap();
slint_build::print_rustc_flags().unwrap();
}