summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/fontdatabases
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-05-02 22:59:04 -0700
committerJake Petroules <jake.petroules@qt.io>2017-05-11 05:57:08 +0000
commitcf969f0be313acc99a1ba4d8ffc4d3adfec8c5cc (patch)
treebefd39d37b2717ef6191386c4854b2456d294246 /src/platformsupport/fontdatabases
parent38bbd8fbaced1408b9e39b156503c470e0472150 (diff)
Add undeclared CoreFoundation and Foundation deps to coretext.pri
This fixes shared library builds of Qt on iOS and tvOS. Change-Id: I29d4c7e779e51b1adc19ca9dc18bc46a45a60093 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/platformsupport/fontdatabases')
-rw-r--r--src/platformsupport/fontdatabases/mac/coretext.pri14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/platformsupport/fontdatabases/mac/coretext.pri b/src/platformsupport/fontdatabases/mac/coretext.pri
index a533234c26..2a9b32f65a 100644
--- a/src/platformsupport/fontdatabases/mac/coretext.pri
+++ b/src/platformsupport/fontdatabases/mac/coretext.pri
@@ -7,12 +7,16 @@ qtConfig(freetype) {
SOURCES += freetype/qfontengine_ft.cpp
}
-uikit: \
- # On iOS/tvOS/watchOS CoreText and CoreGraphics are stand-alone frameworks
- LIBS_PRIVATE += -framework CoreText -framework CoreGraphics
-else: \
- # On macOS they are re-exported by the AppKit framework
+LIBS_PRIVATE += \
+ -framework CoreFoundation \
+ -framework CoreGraphics \
+ -framework CoreText \
+ -framework Foundation
+
+macos: \
LIBS_PRIVATE += -framework AppKit
+else: \
+ LIBS_PRIVATE += -framework UIKit
# CoreText is documented to be available on watchOS, but the headers aren't present
# in the watchOS Simulator SDK like they are supposed to be. Work around the problem