summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-04-29 01:00:22 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-04-29 01:00:22 +0200
commit4a54e8fd821651079a53f4adc831efd6b1ba9bc7 (patch)
tree32dfcf43aa554a9e235a37a831e366b68bcaafa3 /mkspecs
parente092b32922ef650d49167aaf48f9d33190191f9f (diff)
parent9f1a1e320c118ec84d389aaf83008bf01521ce6f (diff)
Merge remote-tracking branch 'origin/5.13' into dev
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/common/mac.conf2
-rw-r--r--mkspecs/features/mac/sdk.prf7
-rw-r--r--mkspecs/features/qt_configure.prf8
3 files changed, 15 insertions, 2 deletions
diff --git a/mkspecs/common/mac.conf b/mkspecs/common/mac.conf
index f21ba5ec51..b77494ec9b 100644
--- a/mkspecs/common/mac.conf
+++ b/mkspecs/common/mac.conf
@@ -17,7 +17,7 @@ QMAKE_EXTENSION_SHLIB = dylib
QMAKE_EXTENSIONS_AUX_SHLIB = tbd
QMAKE_LIBDIR =
-# qtConfLibrary_openglMakeSpec will prefix the proper SDK sysroot
+# sdk.prf will prefix the proper SDK sysroot
QMAKE_INCDIR_OPENGL = \
/System/Library/Frameworks/OpenGL.framework/Headers \
/System/Library/Frameworks/AGL.framework/Headers/
diff --git a/mkspecs/features/mac/sdk.prf b/mkspecs/features/mac/sdk.prf
index 50a41657d8..3a9c2778bb 100644
--- a/mkspecs/features/mac/sdk.prf
+++ b/mkspecs/features/mac/sdk.prf
@@ -33,6 +33,13 @@ QMAKE_MAC_SDK_PATH = $$xcodeSDKInfo(Path)
QMAKE_MAC_SDK_PLATFORM_PATH = $$xcodeSDKInfo(PlatformPath)
QMAKE_MAC_SDK_VERSION = $$xcodeSDKInfo(SDKVersion)
+isEmpty(QMAKE_EXPORT_INCDIR_OPENGL) {
+ QMAKE_EXPORT_INCDIR_OPENGL = $$QMAKE_INCDIR_OPENGL
+ sysrootified =
+ for(val, QMAKE_INCDIR_OPENGL): sysrootified += $${QMAKE_MAC_SDK_PATH}$$val
+ QMAKE_INCDIR_OPENGL = $$sysrootified
+}
+
QMAKESPEC_NAME = $$basename(QMAKESPEC)
# Resolve SDK version of various tools
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index fc8ea4d203..0d2fe18a87 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -797,6 +797,11 @@ defineTest(qtConfLibrary_makeSpec) {
!qtConfResolvePathIncs($${1}.includedir, $$eval(QMAKE_INCDIR_$$spec), $$2): \
return(false)
+ !isEmpty(QMAKE_EXPORT_INCDIR_$$spec) {
+ $${1}.exportincludedir = $$eval(QMAKE_EXPORT_INCDIR_$$spec)
+ export($${1}.exportincludedir)
+ }
+
# note that the object is re-exported, because we resolve the libraries.
return(true)
@@ -964,7 +969,8 @@ defineTest(qtConfExportLibrary) {
}
defines = $$eval($${spfx}.defines)
!isEmpty(defines): qtConfOutputVar(assign, $$output, QMAKE_DEFINES_$$NAME, $$defines)
- includes = $$eval($${spfx}.includedir)
+ includes = $$eval($${spfx}.exportincludedir)
+ isEmpty(includes): includes = $$eval($${spfx}.includedir)
!isEmpty(includes): qtConfOutputVar(assign, $$output, QMAKE_INCDIR_$$NAME, $$includes)
uses = $$eval($${lpfx}.dependencies)
!isEmpty(uses) {