use std::env;
const ERROR_NO_VULKAN_SDK: &'static str =
"Error in founding Vulkan SDK path, please make sure you installed vulkan sdk";
#[cfg(target_os = "linux")]
const VULKAN: &'static str = "vulkan";
#[cfg(not(target_os = "linux"))]
const VULKAN: &'static str = "vulkan-1";
fn main() {
let vulkan_sdk_path = "VK_SDK_PATH";
let vulkan_sdk_path = match env::var_os(vulkan_sdk_path) {
Some(val) => val.into_string().expect(ERROR_NO_VULKAN_SDK),
None => panic!(ERROR_NO_VULKAN_SDK),
};
println!("cargo:rustc-flags=-l {} -L {}/x86_64/lib", VULKAN, vulkan_sdk_path);
}