diff options
Diffstat (limited to 'mkspecs/features/qt_functions.prf')
-rw-r--r-- | mkspecs/features/qt_functions.prf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf index b2c2507807..88467e89ba 100644 --- a/mkspecs/features/qt_functions.prf +++ b/mkspecs/features/qt_functions.prf @@ -13,6 +13,16 @@ defineReplace(qtPlatformTargetSuffix) { return($$suffix) } +# suffix for the -framework linker flag when the exectuable's name +# differs from the bundle's, for example -framework QtCore,_debug +# links to QtCore.framework/QtCore_debug +defineReplace(qtFrameworkPlatformTargetSuffix) { + suffix = $$qtPlatformTargetSuffix() + !isEmpty(suffix): \ + suffix = ,$$suffix + return($$suffix) +} + defineReplace(qtLibraryTarget) { LIBRARY_NAME = $$1 CONFIG(shared, static|shared):contains(QT_CONFIG, qt_framework) { |