slint/internal/renderers/skia/build.rs
Simon Hausmann a0823d8638
Skia: Use software rendering by default on Windows (#7934)
We've had some reports like #7641 . Now that we enable partial rendering by default, let's default to software rendering for Skia on Windows, until perhaps the Skia dawn backend arrives.

Closes #7641

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2025-03-25 10:04:49 +01:00

14 lines
597 B
Rust

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
use cfg_aliases::cfg_aliases;
fn main() {
// Setup cfg aliases
cfg_aliases! {
skia_backend_opengl: { any(feature = "opengl", not(any(target_vendor = "apple", target_family = "windows", target_arch = "wasm32"))) },
skia_backend_metal: { all(target_vendor = "apple", not(feature = "opengl")) },
skia_backend_vulkan: { feature = "vulkan" },
skia_backend_software: { not(target_os = "android") },
}
}