mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00

* [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
16 lines
414 B
Rust
16 lines
414 B
Rust
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
use slint_build::CompilerConfiguration;
|
|
use std::env;
|
|
|
|
fn main() {
|
|
let style = if env::var("TARGET").unwrap().contains("android") { "material" } else { "cosmic" }
|
|
.to_string();
|
|
|
|
slint_build::compile_with_config(
|
|
"../ui/app.slint",
|
|
CompilerConfiguration::new().with_style(style),
|
|
)
|
|
.unwrap();
|
|
}
|