Skip to content

Commit

Permalink
Exclude Android Vulkan sources from Unity Build
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
amirmasoudabdol committed Apr 20, 2023
1 parent d76e1d9 commit 972d602
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/platforms/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 972d602

Please sign in to comment.