Remove "duplicate objective-c class" warning.
Qt would dlopen both libqcocoa.dylib and libqcocoa_debug.dylib, causing duplicate implementations if the classes in the cocoa plugin (QNSView etc) Fix this by building the release version only. Change-Id: I1244a83c49999ce28edd97400e792fa2a0665fec Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
This commit is contained in:
parent
f6e0a2f59f
commit
5603f94eaa
@ -53,6 +53,11 @@ CONFIG += qpa/basicunixfontdatabase
|
|||||||
target.path += $$[QT_INSTALL_PLUGINS]/platforms
|
target.path += $$[QT_INSTALL_PLUGINS]/platforms
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
|
||||||
|
# Build the release libqcocoa.dylib only, skip the debug version.
|
||||||
|
# The Qt plugin loader will dlopen both if found, causing duplicate
|
||||||
|
# Objective-c class definitions for the classes defined in the plugin.
|
||||||
|
contains(QT_CONFIG,release):CONFIG -= debug
|
||||||
|
|
||||||
# Acccessibility debug support
|
# Acccessibility debug support
|
||||||
# DEFINES += QT_COCOA_ENABLE_ACCESSIBILITY_INSPECTOR
|
# DEFINES += QT_COCOA_ENABLE_ACCESSIBILITY_INSPECTOR
|
||||||
# include ($$PWD/../../../../util/accessibilityinspector/accessibilityinspector.pri)
|
# include ($$PWD/../../../../util/accessibilityinspector/accessibilityinspector.pri)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user