Vulkan: Choose correct libvulkan on Android

Contrary to Linux, libvulkan.so on Android doesn't have the additional
.1 at the end (libvulkan.so.1 on Linux)

BUG=dawn:286

Change-Id: I22f06121b81e0fe08faae7d105a7c2094e788184
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14104
Reviewed-by: David Turner <digit@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2019-11-28 09:48:44 +00:00 committed by Commit Bot service account
parent 1e2c2f2af3
commit 0ee91fc0a1
1 changed files with 7 additions and 3 deletions

View File

@ -22,11 +22,15 @@
#include <iostream> #include <iostream>
#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"; const char kVulkanLibName[] = "libvulkan.so.1";
#elif DAWN_PLATFORM_WINDOWS # endif
#elif defined(DAWN_PLATFORM_WINDOWS)
const char kVulkanLibName[] = "vulkan-1.dll"; const char kVulkanLibName[] = "vulkan-1.dll";
#elif DAWN_PLATFORM_FUCHSIA #elif defined(DAWN_PLATFORM_FUCHSIA)
const char kVulkanLibName[] = "libvulkan.so"; const char kVulkanLibName[] = "libvulkan.so";
#else #else
# error "Unimplemented Vulkan backend platform" # error "Unimplemented Vulkan backend platform"