summaryrefslogtreecommitdiff
path: root/engine/build.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-06-04 19:27:34 +0200
committerHampusM <hampus@hampusmat.com>2026-06-04 19:27:34 +0200
commit370db2f2c4406f3373be9065cda8fcdb3929b693 (patch)
treed196dfd100ed22b91bcd88e2dc7720cc788de642 /engine/build.rs
parentc5f04bc1ff1b96d3aa1f2e46693b0b2726167586 (diff)
refactor(engine): remove cfg aliases
Diffstat (limited to 'engine/build.rs')
-rw-r--r--engine/build.rs34
1 files changed, 0 insertions, 34 deletions
diff --git a/engine/build.rs b/engine/build.rs
index 7ad5a9b..e9a8322 100644
--- a/engine/build.rs
+++ b/engine/build.rs
@@ -1,7 +1,6 @@
use std::path::{Path, PathBuf};
use std::process::Command;
-use cfg_aliases::cfg_aliases;
use serde::Deserialize;
fn main()
@@ -52,39 +51,6 @@ fn main()
)
.unwrap();
}
-
- // Setup alias to reduce `cfg` boilerplate.
- cfg_aliases! {
- // Systems.
- android_platform: { target_os = "android" },
- wasm_platform: { target_family = "wasm" },
- macos_platform: { target_os = "macos" },
- ios_platform: { target_os = "ios" },
- apple: { any(ios_platform, macos_platform) },
- free_unix: { all(unix, not(apple), not(android_platform)) },
-
- // Native displays.
- x11_platform: { all(free_unix, not(wasm_platform)) },
- wayland_platform: { all(free_unix, not(wasm_platform)) },
- // x11_platform: { all(feature = "x11", free_unix, not(wasm_platform)) },
- // wayland_platform: { all(feature = "wayland", free_unix, not(wasm_platform)) },
-
- // Backends.
- egl_backend: {
- all(any(windows, unix), not(apple), not(wasm_platform))
- },
- glx_backend: { all(x11_platform, not(wasm_platform)) },
- wgl_backend: { all(windows, not(wasm_platform)) },
- cgl_backend: { all(macos_platform, not(wasm_platform)) },
-
- // Backends.
- // egl_backend: {
- // all(feature = "egl", any(windows, unix), not(apple), not(wasm_platform))
- // },
- // glx_backend: { all(feature = "glx", x11_platform, not(wasm_platform)) },
- // wgl_backend: { all(feature = "wgl", windows, not(wasm_platform)) },
- // cgl_backend: { all(macos_platform, not(wasm_platform)) },
- }
}
#[derive(Debug, Deserialize)]