3 PLUGIN_TYPE = platforms
4 PLUGIN_CLASS_NAME = QCocoaIntegrationPlugin
7 OBJECTIVE_SOURCES += main.mm \
10 qcocoabackingstore.mm \
13 qnsviewaccessibility.mm \
14 qcocoaautoreleasepool.mm \
15 qnswindowdelegate.mm \
17 qcocoanativeinterface.mm \
18 qcocoaeventdispatcher.mm \
19 qcocoaapplicationdelegate.mm \
20 qcocoaapplication.mm \
27 qcocoaaccessibilityelement.mm \
28 qcocoaaccessibility.mm \
29 qcocoacolordialoghelper.mm \
30 qcocoafiledialoghelper.mm \
31 qcocoafontdialoghelper.mm \
37 qcocoasystemsettings.mm \
38 qcocoainputcontext.mm \
40 qcocoasystemtrayicon.mm \
41 qcocoaintrospection.mm \
44 HEADERS += qcocoaintegration.h \
46 qcocoabackingstore.h \
49 qcocoaautoreleasepool.h \
52 qcocoanativeinterface.h \
53 qcocoaeventdispatcher.h \
54 qcocoaapplicationdelegate.h \
62 qcocoaaccessibilityelement.h \
63 qcocoaaccessibility.h \
64 qcocoacolordialoghelper.h \
65 qcocoafiledialoghelper.h \
66 qcocoafontdialoghelper.h \
72 qcocoasystemsettings.h \
73 qcocoainputcontext.h \
75 qcocoasystemtrayicon.h \
76 qcocoaintrospection.h \
79 RESOURCES += qcocoaresources.qrc
81 LIBS += -framework Cocoa -framework IOKit
83 QT += core-private gui-private platformsupport-private
85 !contains(QT_CONFIG, no-widgets) {
86 OBJECTIVE_SOURCES += \
89 qcocoaprintersupport.mm \
92 qpaintengine_mac_p.h \
93 qprintengine_mac_p.h \
94 qcocoaprintersupport.h \
96 QT += widgets-private printsupport-private
99 OTHER_FILES += cocoa.json
101 # Build the release libqcocoa.dylib only, skip the debug version.
102 # The Qt plugin loader will dlopen both if found, causing duplicate
103 # Objective-c class definitions for the classes defined in the plugin.
104 contains(QT_CONFIG,release):CONFIG -= debug
105 contains(QT_CONFIG,debug_and_release):CONFIG -= debug_and_release
106 contains(QT_CONFIG,build_all):CONFIG -= build_all
108 # Acccessibility debug support
109 # DEFINES += QT_COCOA_ENABLE_ACCESSIBILITY_INSPECTOR
110 # include ($$PWD/../../../../util/accessibilityinspector/accessibilityinspector.pri)
112 # Accessibility is currently unstable and disabled.
113 DEFINES += QT_NO_COCOA_ACCESSIBILITY
115 # Window debug support
116 #DEFINES += QT_COCOA_ENABLE_WINDOW_DEBUG