From 70419e31f9a8de172459a6e1cce67e816c7ddbed Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 31 Jan 2019 11:43:51 +0100 Subject: [PATCH] cmake: Fix build of xcb platform plugin when vulkan is available Change-Id: I79760aa0cb08752cfc20aabc1a890f60c91c9dfd Reviewed-by: Tobias Hunger --- src/platformsupport/CMakeLists.txt | 4 ++++ src/platformsupport/vkconvenience/CMakeLists.txt | 16 ++++++++++++++++ src/plugins/platforms/xcb/CMakeLists.txt | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/platformsupport/vkconvenience/CMakeLists.txt diff --git a/src/platformsupport/CMakeLists.txt b/src/platformsupport/CMakeLists.txt index e298eb4bc5..a86b958c10 100644 --- a/src/platformsupport/CMakeLists.txt +++ b/src/platformsupport/CMakeLists.txt @@ -19,6 +19,10 @@ if(QT_FEATURE_accessibility) endif() endif() +if(QT_FEATURE_vulkan) + add_subdirectory(vkconvenience) +endif() + if(APPLE) add_subdirectory(clipboard) add_subdirectory(graphics) diff --git a/src/platformsupport/vkconvenience/CMakeLists.txt b/src/platformsupport/vkconvenience/CMakeLists.txt new file mode 100644 index 0000000000..b9504f2b94 --- /dev/null +++ b/src/platformsupport/vkconvenience/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from vkconvenience.pro. + +##################################################################### +## VulkanSupport Module: +##################################################################### + +add_qt_module(VulkanSupport + STATIC + SOURCES + qbasicvulkanplatforminstance.cpp qbasicvulkanplatforminstance_p.h + DEFINES + QT_NO_CAST_FROM_ASCII + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate +) diff --git a/src/plugins/platforms/xcb/CMakeLists.txt b/src/plugins/platforms/xcb/CMakeLists.txt index d1fff8bf25..5540822875 100644 --- a/src/plugins/platforms/xcb/CMakeLists.txt +++ b/src/plugins/platforms/xcb/CMakeLists.txt @@ -75,7 +75,7 @@ extend_target(XcbQpa CONDITION TARGET Qt::LinuxAccessibilitySupportPrivate extend_target(XcbQpa CONDITION QT_FEATURE_vulkan LIBRARIES - vulkan_supportPrivate + VulkanSupportPrivate ) extend_target(XcbQpa CONDITION QT_FEATURE_draganddrop