Exclude Android Vulkan sources from Unity Build

If not excluded, `VK_USE_PLATFORM_ANDROID_KHR` might end up being
undefined due to the order of includes.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: Ib7bbf42af319568bc39db0b9e5c796d25db3c364
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Amir Masoud Abdol 2023-04-20 09:05:30 +02:00
parent d76e1d9cbd
commit 972d602ee6
1 changed files with 3 additions and 0 deletions

View File

@ -87,4 +87,7 @@ qt_internal_extend_target(QAndroidIntegrationPlugin CONDITION QT_FEATURE_vulkan
SOURCES
qandroidplatformvulkaninstance.cpp qandroidplatformvulkaninstance.h
qandroidplatformvulkanwindow.cpp qandroidplatformvulkanwindow.h
NO_UNITY_BUILD_SOURCES
# To avoid undefined symbols due to missing VK_USE_PLATFORM_ANDROID_KHR
qandroidplatformvulkaninstance.cpp qandroidplatformvulkanwindow.cpp
)