mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 17:33:19 +01:00
27 lines
716 B
Rust
27 lines
716 B
Rust
use std::path::PathBuf;
|
|
use std::str::FromStr;
|
|
|
|
use slint_build::CompilerConfiguration;
|
|
|
|
fn main() {
|
|
// write_locales();
|
|
|
|
let root = env!("CARGO_MANIFEST_DIR");
|
|
let mut main = PathBuf::from_str(root).unwrap();
|
|
main.push("ui/main_window.slint");
|
|
|
|
let mut include = PathBuf::from_str(root).unwrap();
|
|
include.push("ui");
|
|
|
|
slint_build::print_rustc_flags().unwrap();
|
|
// slint_build::compile("ui/main_window.slint").unwrap();
|
|
slint_build::compile_with_config(
|
|
main,
|
|
CompilerConfiguration::new()
|
|
// .embed_resources(EmbedResourcesKind::EmbedFiles)
|
|
.with_include_paths(vec![include])
|
|
.with_style("fluent".into())
|
|
)
|
|
.unwrap();
|
|
}
|