wgpu/wgpu-core/build.rs

17 lines
526 B
Rust
Raw Normal View History

fn main() {
// Setup cfg aliases
cfg_aliases::cfg_aliases! {
// Vendors/systems
2020-12-17 20:47:57 +00:00
wasm: { target_arch = "wasm32" },
apple: { any(target_os = "ios", target_os = "macos") },
2020-12-17 20:47:57 +00:00
unix_wo_apple: {all(unix, not(apple))},
// Backends
2021-06-12 05:04:15 +00:00
vulkan: { all(not(wasm), any(windows, unix_wo_apple)) },
2020-12-17 20:47:57 +00:00
metal: { all(not(wasm), apple) },
dx12: { all(not(wasm), windows) },
2021-06-08 15:46:53 +00:00
dx11: { all(false, not(wasm), windows) },
gl: { all(not(wasm), unix_wo_apple) },
}
}