wgpu/wgpu-core/build.rs
Dzmitry Malyshau ab28009d80 Angle support on Windows
Also remove the macros module in favor of generic functions.
2021-12-05 17:09:36 -05:00

23 lines
622 B
Rust

fn main() {
// Setup cfg aliases
cfg_aliases::cfg_aliases! {
// Vendors/systems
wasm: { target_arch = "wasm32" },
apple: { any(target_os = "ios", target_os = "macos") },
unix_wo_apple: {all(unix, not(apple))},
// Backends
vulkan: { all(not(wasm), any(windows, unix_wo_apple)) },
metal: { all(not(wasm), apple) },
dx12: { all(not(wasm), windows) },
dx11: { all(false, not(wasm), windows) },
gl: {
any(
unix_wo_apple,
feature = "angle",
wasm
)
},
}
}