| 1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
|---|---|
| 2 | // SPDX-License-Identifier: MIT |
| 3 | |
| 4 | fn main() { |
| 5 | let mut config: CompilerConfiguration = slint_build::CompilerConfiguration::new(); |
| 6 | let target: String = std::env::var(key:"TARGET").unwrap(); |
| 7 | if target.contains("android") || target.contains( "wasm32") { |
| 8 | config = config.with_bundled_translations(path:"../lang"); |
| 9 | } |
| 10 | slint_build::compile_with_config(relative_slint_file_path:"../ui/printerdemo.slint", config).unwrap(); |
| 11 | } |
| 12 |
