1048d83fc2
Apple deprecated the entire OpenGL API in favor of Metal, which we are aware of, so we don't need to see the warnings when building Qt. Instead of applying the silencing globally for all Qt consumers, both internal and external, we now limit the silencing to Qt itself. That means user code that explicitly uses any of the deprecated APIs will see the warnings. Note that this does not apply to merely using any of the Qt OpenGL APIs. The user has to explicitly use the platform APIs that have been deprecated. The warnings need to be disabled on a build system level, so that that they are passed as -D flags on the command line. If the defines were done in Qt headers (qguiglobal.h e.g.), they would require the user to always include this header before any of the Apple headers. Change-Id: I3f2a2a5211332a059ad4416394251772c677fdcb Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
26 lines
538 B
Plaintext
26 lines
538 B
Plaintext
#
|
|
# qmake configuration for common OS X
|
|
#
|
|
|
|
QMAKE_PLATFORM += macos osx macx
|
|
QMAKE_MAC_SDK = macosx
|
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
|
|
QMAKE_APPLE_DEVICE_ARCHS = x86_64
|
|
|
|
# Should be 10.15, but as long as the CI builds with
|
|
# older SDKs we have to keep this.
|
|
QT_MAC_SDK_VERSION_MIN = 10.14
|
|
|
|
QT_MAC_SDK_VERSION_MAX = 10.15
|
|
|
|
device.sdk = macosx
|
|
device.target = device
|
|
device.dir_affix = $${device.sdk}
|
|
device.CONFIG = $${device.sdk}
|
|
device.deployment_identifier = $${device.sdk}
|
|
|
|
QMAKE_LIBS_VULKAN =
|
|
|
|
include(mac.conf)
|