wgpu/wgpu-core/build.rs
2020-11-28 16:11:16 -08:00

21 lines
651 B
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
fn main() {
// Setup cfg aliases
cfg_aliases::cfg_aliases! {
// Vendors/systems
ios: { target_os = "ios" },
macos: { target_os = "macos" },
apple: { any(ios, macos) },
// Backends
vulkan: { any(windows, all(unix, not(apple)), feature = "gfx-backend-vulkan") },
metal: { apple },
dx12: { windows },
dx11: { windows },
gl: { all(unix, not(apple)) },
}
}