mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 05:14:48 +00:00

* Add MCU board config setup Let the mcu backend provide the link flags via I_DEP_* and the Slint-build crate now offers a function to allow printing Slint-specific rustc flags.
19 lines
578 B
Rust
19 lines
578 B
Rust
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
fn main() -> std::io::Result<()> {
|
|
#[allow(unused)]
|
|
let mut board_config_path: Option<std::path::PathBuf> = None;
|
|
|
|
cfg_if::cfg_if! {
|
|
if #[cfg(feature = "pico-st7789")] {
|
|
board_config_path = Some([env!("CARGO_MANIFEST_DIR"), "pico_st7789", "board_config.toml"].iter().collect());
|
|
}
|
|
}
|
|
|
|
if let Some(path) = board_config_path {
|
|
println!("cargo:BOARD_CONFIG_PATH={}", path.display())
|
|
}
|
|
|
|
Ok(())
|
|
}
|