slint/internal/renderers/skia/build.rs
Olivier Goffart 60569673b5 Remove some cargo:rustc-check-cfg output:
- The cfg_aliases crate does it out of the box already
 - Don't create a build.rs for this only purpose when it can be added in
   Cargo.toml lints group. (This wasn't possible when the warning was
   first introduced in nightly)
2024-07-02 13:33:48 +02:00

15 lines
675 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_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")) },
skia_backend_vulkan: { feature = "vulkan" },
skia_backend_software: { not(target_os = "android") },
}
}