From cf969f0be313acc99a1ba4d8ffc4d3adfec8c5cc Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Tue, 2 May 2017 22:59:04 -0700 Subject: 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 --- src/platformsupport/fontdatabases/mac/coretext.pri | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/platformsupport/fontdatabases') 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 -- cgit v1.2.3