1
0
slint-memory-game/build.rs
Timothy Warren 4a6f65e9dd First commit
2023-05-03 13:54:11 -04:00

18 lines
467 B
Rust

use slint_build::compile_with_config;
use slint_build::CompilerConfiguration;
use std::path::{Path, PathBuf};
fn compile_file(path: impl AsRef<Path>) {
compile_with_config(
path,
CompilerConfiguration::new()
.with_include_paths(vec![PathBuf::from("."), PathBuf::from("src/components")]),
)
.unwrap();
}
fn main() {
compile_file("src/components/memory_tile.slint");
compile_file("src/components/main_window.slint");
}