2020-08-30 02:40:07 +00:00
|
|
|
fn main() {
|
|
|
|
// Setup cfg aliases
|
|
|
|
cfg_aliases::cfg_aliases! {
|
|
|
|
// Vendors/systems
|
2020-12-17 20:47:57 +00:00
|
|
|
wasm: { target_arch = "wasm32" },
|
2020-12-03 05:30:38 +00:00
|
|
|
apple: { any(target_os = "ios", target_os = "macos") },
|
2020-12-17 20:47:57 +00:00
|
|
|
unix_wo_apple: {all(unix, not(apple))},
|
2020-08-30 02:40:07 +00:00
|
|
|
|
|
|
|
// 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) },
|
2021-07-05 22:19:57 +00:00
|
|
|
dx12: { all(not(wasm), windows) },
|
2021-06-08 15:46:53 +00:00
|
|
|
dx11: { all(false, not(wasm), windows) },
|
2021-06-26 03:03:11 +00:00
|
|
|
gl: { all(not(wasm), unix_wo_apple) },
|
2020-08-30 02:40:07 +00:00
|
|
|
}
|
|
|
|
}
|