mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
14 lines
697 B
Rust
14 lines
697 B
Rust
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
use cfg_aliases::cfg_aliases;
|
|
|
|
fn main() {
|
|
// Setup cfg aliases
|
|
cfg_aliases! {
|
|
enable_skia_renderer: { any(feature = "renderer-skia", feature = "renderer-skia-opengl")},
|
|
skia_backend_opengl: { any(feature = "renderer-skia-opengl", all(feature = "renderer-skia", not(any(target_os = "macos", target_family = "windows", target_arch = "wasm32")))) },
|
|
skia_backend_metal: { all(target_os = "macos", not(feature = "renderer-skia-opengl")) },
|
|
skia_backend_d3d: { all(target_family = "windows", not(feature = "renderer-skia-opengl")) },
|
|
}
|
|
}
|