diff --git a/src/dawn_native/vulkan/BackendVk.cpp b/src/dawn_native/vulkan/BackendVk.cpp index 02b5b3a9d0..06a2c3417e 100644 --- a/src/dawn_native/vulkan/BackendVk.cpp +++ b/src/dawn_native/vulkan/BackendVk.cpp @@ -22,11 +22,15 @@ #include -#if DAWN_PLATFORM_LINUX +#if defined(DAWN_PLATFORM_LINUX) +# if defined(DAWN_PLATFORM_ANDROID) +const char kVulkanLibName[] = "libvulkan.so"; +# else const char kVulkanLibName[] = "libvulkan.so.1"; -#elif DAWN_PLATFORM_WINDOWS +# endif +#elif defined(DAWN_PLATFORM_WINDOWS) const char kVulkanLibName[] = "vulkan-1.dll"; -#elif DAWN_PLATFORM_FUCHSIA +#elif defined(DAWN_PLATFORM_FUCHSIA) const char kVulkanLibName[] = "libvulkan.so"; #else # error "Unimplemented Vulkan backend platform"