Fix Cmake build on Android

Update CMakeList.txt for Dawn cmake build on Android platform

Bug: dawn:1765
Change-Id: I559dddcf378ccaa0868bfccac904b627e3ea22c5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/128780
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Albin Bernhardsson <albin.bernhardsson@arm.com>
This commit is contained in:
Yan,Shaobo 2023-04-25 10:12:48 +00:00 committed by Dawn LUCI CQ
parent 154bb3460c
commit 90d5154b5f
1 changed files with 4 additions and 3 deletions

View File

@ -627,9 +627,10 @@ if (DAWN_ENABLE_VULKAN)
if (ANDROID)
target_sources(dawn_native PRIVATE
"vulkan/external_memory/MemoryServiceAHardwareBuffer.cpp"
"vulkan/external_semaphore/ServiceImplementationFD.cpp"
"vulkan/external_semaphore/ServiceImplementationFD.h"
"vulkan/external_memory/MemoryServiceImplementationAHardwareBuffer.cpp"
"vulkan/external_memory/MemoryServiceImplementationAHardwareBuffer.h"
"vulkan/external_semaphore/SemaphoreServiceImplementationFD.cpp"
"vulkan/external_semaphore/SemaphoreServiceImplementationFD.h"
)
elseif (UNIX AND NOT APPLE)
target_sources(dawn_native PRIVATE