mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00

The crate is an internal crate until the API has been polished and documented, after which we can call slint-renderer-skia for example. This also duplicates a little bit of the glutin setup code, because that would otherwise have to go into another shared crate.
13 lines
525 B
Rust
13 lines
525 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! {
|
|
skia_backend_opengl: { any(feature = "opengl", not(any(target_os = "macos", target_family = "windows", target_arch = "wasm32"))) },
|
|
skia_backend_metal: { all(target_os = "macos", not(feature = "opengl")) },
|
|
skia_backend_d3d: { all(target_family = "windows", not(feature = "opengl")) },
|
|
}
|
|
}
|