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>
bb10
Jake Petroules 2017-05-02 22:59:04 -07:00
parent 38bbd8fbac
commit cf969f0be3
1 changed files with 9 additions and 5 deletions

View File

@ -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