1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
2 | // SPDX-License-Identifier: MIT |
3 | |
4 | fn main() -> std::io::Result<()> { |
5 | #[allow (unused)] |
6 | let mut board_config_path: Option<std::path::PathBuf> = None; |
7 | |
8 | cfg_if::cfg_if! { |
9 | if #[cfg(feature = "pico-st7789" )] { |
10 | board_config_path = Some([env!("CARGO_MANIFEST_DIR" ), "pico_st7789" , "board_config.toml" ].iter().collect()); |
11 | } else if #[cfg(feature = "stm32h735g" )] { |
12 | board_config_path = Some([env!("CARGO_MANIFEST_DIR" ), "stm32h735g" , "board_config.toml" ].iter().collect()); |
13 | } |
14 | } |
15 | |
16 | if let Some(path: PathBuf) = board_config_path { |
17 | println!("cargo:BOARD_CONFIG_PATH= {}" , path.display()) |
18 | } |
19 | |
20 | println!("cargo:EMBED_TEXTURES=1" ); |
21 | |
22 | Ok(()) |
23 | } |
24 | |