CMake: Re-generate plugins/platforms/cocoa

Change-Id: I6d37e018a114ba90690a6fbd8d5af71f6d1b31fd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tobias Hunger 2019-04-02 11:37:50 +02:00
parent 8a9962aba8
commit bd0f9b61fd
2 changed files with 52 additions and 37 deletions

View File

@ -1,13 +1,18 @@
if(APPLE) if(APPLE)
find_library(FWAppKit AppKit) find_library(FWAppKit AppKit)
find_library(FWApplicationServices ApplicationServices) find_library(FWApplicationServices ApplicationServices)
find_library(FWCarbon Carbon)
find_library(FWCoreFoundation CoreFoundation) find_library(FWCoreFoundation CoreFoundation)
find_library(FWCoreServices CoreServices) find_library(FWCoreServices CoreServices)
find_library(FWCoreVideo CoreVideo)
find_library(FWcups cups)
find_library(FWDiskArbitration DiskArbitration) find_library(FWDiskArbitration DiskArbitration)
find_library(FWFoundation Foundation) find_library(FWFoundation Foundation)
find_library(FWIOKit IOKit) find_library(FWIOKit IOKit)
find_library(FWImageIO ImageIO) find_library(FWImageIO ImageIO)
find_library(FWMetal Metal)
find_library(FWMobileCoreServices MobileCoreServices) find_library(FWMobileCoreServices MobileCoreServices)
find_library(FWQuartzCore QuartzCore)
find_library(FWSecurity Security) find_library(FWSecurity Security)
find_library(FWSystemConfiguration SystemConfiguration) find_library(FWSystemConfiguration SystemConfiguration)
find_library(FWUIKit UIKit) find_library(FWUIKit UIKit)

View File

@ -1,12 +1,10 @@
find_package(OpenGL) # special case:
find_library(FWAppkit AppKit) find_package(Cups)
find_library(FWCoreServices CoreServices) find_package(WrapOpenGL)
find_library(FWCarbon Carbon)
find_library(FWIOKit IOKit) #####################################################################
find_library(FWQuartzCore QuartzCore) ## qcocoa Plugin:
find_library(FWCoreVideo CoreVideo) #####################################################################
find_library(FWMetal Metal)
find_library(FWcups cups)
add_qt_plugin(qcocoa add_qt_plugin(qcocoa
TYPE platforms TYPE platforms
@ -46,70 +44,82 @@ add_qt_plugin(qcocoa
qnswindow.h qnswindow.mm qnswindow.h qnswindow.mm
qnswindowdelegate.h qnswindowdelegate.mm qnswindowdelegate.h qnswindowdelegate.mm
LIBRARIES LIBRARIES
Qt::CorePrivate ${FWcups}
Qt::GuiPrivate ${FWAppKit}
${FWCarbon}
${FWCoreServices}
${FWCoreVideo}
${FWIOKit}
${FWMetal}
${FWQuartzCore}
Cups::Cups
Qt::AccessibilitySupportPrivate Qt::AccessibilitySupportPrivate
Qt::ClipboardSupportPrivate Qt::ClipboardSupportPrivate
Qt::ThemeSupportPrivate Qt::CorePrivate
Qt::FontDatabaseSupportPrivate Qt::FontDatabaseSupportPrivate
Qt::GraphicsSupportPrivate Qt::GraphicsSupportPrivate
Qt::PlatformHeaders Qt::GuiPrivate
${FWAppKit} Qt::ThemeSupportPrivate
${FWCoreServices}
${FWCarbon}
${FWIOKit}
${FWQuartzCore}
${FWCoreVideo}
${FWMetal}
${FWcups}
) )
add_qt_resource(qcocoa qcocoaresources PREFIX "/qt-project.org/mac/cursors" # Resources:
FILES images/spincursor.png images/waitcursor.png images/sizeallcursor.png add_qt_resource(qcocoa "qcocoaresources" PREFIX "/qt-project.org/mac/cursors" FILES
) images/sizeallcursor.png
images/spincursor.png
images/waitcursor.png)
extend_target(qcocoa CONDITION QT_FEATURE_opengl
#### Keys ignored in scope 1:.:cocoa.pro:<NONE>:
# CONFIG = "no_app_extension_api_only"
# OTHER_FILES = "cocoa.json"
# PLUGIN_CLASS_NAME = "QCocoaIntegrationPlugin"
# _LOADED = "qt_plugin"
## Scopes:
#####################################################################
extend_target(qcocoa CONDITION QT_FEATURE_opengl # special case
SOURCES SOURCES
qcocoaglcontext.h qcocoaglcontext.mm qcocoaglcontext.h qcocoaglcontext.mm
LIBRARIES LIBRARIES
OpenGL::GL WrapOpenGL
) )
extend_target(qcocoa CONDITION QT_FEATURE_vulkan extend_target(qcocoa CONDITION QT_FEATURE_vulkan
SOURCES SOURCES
qcocoavulkaninstance.h qcocoavulkaninstance.mm qcocoavulkaninstance.h qcocoavulkaninstance.mm
)
extend_target(qcocoa CONDITION QT_FEATURE_vulkan
LIBRARIES LIBRARIES
vulkan_support_private Qt::VulkanSupportPrivate
) )
extend_target(qcocoa CONDITION QT_FEATURE_widgets extend_target(qcocoa CONDITION TARGET Qt::Widgets
SOURCES SOURCES
qcocoaprintdevice.h qcocoaprintdevice.mm qcocoaprintdevice.h qcocoaprintdevice.mm
qcocoaprintersupport.h qcocoaprintersupport.mm qcocoaprintersupport.h qcocoaprintersupport.mm
qpaintengine_mac.mm qpaintengine_mac_p.h qpaintengine_mac.mm qpaintengine_mac_p.h
qprintengine_mac.mm qprintengine_mac_p.h qprintengine_mac.mm qprintengine_mac_p.h
LIBRARIES LIBRARIES
Qt::WidgetsPrivate
Qt::PrintSupportPrivate Qt::PrintSupportPrivate
Qt::WidgetsPrivate
) )
extend_target(qcocoa CONDITION (QT_FEATURE_widgets) AND (QT_FEATURE_colordialog) #### Keys ignored in scope 5:.:cocoa.pro:TARGET Qt::Widgets:
# QT_FOR_CONFIG = "widgets"
extend_target(qcocoa CONDITION (TARGET Qt::Widgets) AND (QT_FEATURE_colordialog)
SOURCES SOURCES
qcocoacolordialoghelper.h qcocoacolordialoghelper.mm qcocoacolordialoghelper.h qcocoacolordialoghelper.mm
) )
extend_target(qcocoa CONDITION (QT_FEATURE_widgets) AND (QT_FEATURE_filedialog) extend_target(qcocoa CONDITION (TARGET Qt::Widgets) AND (QT_FEATURE_filedialog)
SOURCES SOURCES
qcocoafiledialoghelper.h qcocoafiledialoghelper.mm qcocoafiledialoghelper.h qcocoafiledialoghelper.mm
) )
extend_target(qcocoa CONDITION (QT_FEATURE_widgets) AND (QT_FEATURE_fontdialog) extend_target(qcocoa CONDITION (TARGET Qt::Widgets) AND (QT_FEATURE_fontdialog)
SOURCES SOURCES
qcocoafontdialoghelper.h qcocoafontdialoghelper.mm qcocoafontdialoghelper.h qcocoafontdialoghelper.mm
) )
#extend_target(qcocoa CONDITION NOT equals(TARGET, $$QT_DEFAULT_QPA_PLUGIN) #### Keys ignored in scope 9:.:cocoa.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
#) # PLUGIN_EXTENDS = "-"