summaryrefslogtreecommitdiffstats
path: root/src/gui/configure.pri
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/configure.pri')
-rw-r--r--src/gui/configure.pri19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/gui/configure.pri b/src/gui/configure.pri
index d79c5a6bba..ee5c7730df 100644
--- a/src/gui/configure.pri
+++ b/src/gui/configure.pri
@@ -1,5 +1,20 @@
# custom tests
+defineTest(qtConfLibrary_freetype) {
+ TRY_INCLUDEPATHS = $$EXTRA_INCLUDEPATH $$QMAKE_INCDIR_X11
+ haiku: TRY_INCLUDEPATHS += /system/develop/headers
+ TRY_INCLUDEPATHS += $$QMAKE_DEFAULT_INCDIR
+ for (p, TRY_INCLUDEPATHS) {
+ includedir = $$p/freetype2
+ exists($$includedir) {
+ $${1}.includedir = "$$val_escape(includedir)"
+ export($${1}.includedir)
+ return(true)
+ }
+ }
+ return(false)
+}
+
# Check for Direct X SDK (include, lib, and direct shader compiler 'fxc').
# Up to Direct X SDK June 2010 and for MinGW, this is pointed to by the
# DXSDK_DIR variable. Starting with Windows Kit 8, it is included in
@@ -50,9 +65,11 @@ defineTest(qtConfTest_qpaDefaultPlatform) {
else: win32: name = windows
else: android: name = android
else: macos: name = cocoa
- else: ios: name = ios
+ else: if(ios|tvos): name = ios
+ else: watchos: name = minimal
else: qnx: name = qnx
else: integrity: name = integrityfb
+ else: haiku: name = haiku
else: name = xcb
$${1}.value = $$name