1
0
slint-memory-game/build.rs

18 lines
467 B
Rust
Raw Normal View History

2023-05-03 13:54:11 -04:00
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");
}