summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/cocoa.pro
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2018-04-04 12:48:39 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2018-04-12 12:14:18 +0000
commit0300886c134799c7b3d1331f99cb6777ad568ba8 (patch)
tree6dc5f50b70340a8bfd32036b1058c529a6c3d6c2 /src/plugins/platforms/cocoa/cocoa.pro
parent5c63e6fd7541609c3fadb694c071b42e93b7acf5 (diff)
Cocoa: Add QNSView Metal Layer support
Make sure the layer is updated on window resize and screen change. Add a support test and print a warning if we try to create a Metal layer without Metal system support. This test should ideally be done earlier, before configuring the QWindow to use Metal. Link against the Metal framework: The minimum deployment target is already 10.11 so this does not add additional deployment requirements. Change-Id: I0a38e824d0b6042bb52520dfaf0958ce21bb40b8 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/cocoa.pro')
-rw-r--r--src/plugins/platforms/cocoa/cocoa.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/cocoa.pro b/src/plugins/platforms/cocoa/cocoa.pro
index 2694cb3607..596b6d8b7f 100644
--- a/src/plugins/platforms/cocoa/cocoa.pro
+++ b/src/plugins/platforms/cocoa/cocoa.pro
@@ -78,7 +78,7 @@ qtConfig(opengl.*) {
RESOURCES += qcocoaresources.qrc
-LIBS += -framework AppKit -framework Carbon -framework IOKit -framework QuartzCore -lcups
+LIBS += -framework AppKit -framework Carbon -framework IOKit -framework QuartzCore -framework Metal -lcups
QT += \
core-private gui-private \