summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_functions.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-02-25 16:00:58 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-03-05 12:52:33 +0000
commit67289d0dfa64bf805c7ff2e455611affaea28558 (patch)
tree32884aae336e167adf3609f028a10b9d5c41a302 /mkspecs/features/qt_functions.prf
parent8c0ef140b3a7202c03f223b692b31206aaf9d8b8 (diff)
restore qt4's qtLibraryTarget() behavior
the function is used in our examples and code generated by qt-creator, so the qt5-specific magic behavior is inappropriate. create a separate function instead. Task-number: QTBUG-44595 Change-Id: I4d72cc1e5cbfc274b3210520baa213f4c5479ca9 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs/features/qt_functions.prf')
-rw-r--r--mkspecs/features/qt_functions.prf16
1 files changed, 11 insertions, 5 deletions
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
index 7961f6512a..79b4eab949 100644
--- a/mkspecs/features/qt_functions.prf
+++ b/mkspecs/features/qt_functions.prf
@@ -18,14 +18,20 @@ defineReplace(qtLibraryTarget) {
mac:CONFIG(shared, static|shared):contains(QT_CONFIG, qt_framework) {
QMAKE_FRAMEWORK_BUNDLE_NAME = $$LIBRARY_NAME
export(QMAKE_FRAMEWORK_BUNDLE_NAME)
- } else {
- # insert the major version of Qt in the library name
- # unless it's a framework build
- LIBRARY_NAME ~= s,^Qt,Qt$$QT_MAJOR_VERSION,
}
return($$LIBRARY_NAME$$qtPlatformTargetSuffix())
}
+defineReplace(qt5LibraryTarget) {
+ LIBRARY_NAME = $$qtLibraryTarget($$1)
+ isEmpty(QMAKE_FRAMEWORK_BUNDLE_NAME) {
+ # Insert the major version of Qt in the library name
+ # unless it's a framework build.
+ LIBRARY_NAME ~= s,^Qt,Qt$$QT_MAJOR_VERSION,
+ }
+ return($$LIBRARY_NAME)
+}
+
defineTest(qtAddLibrary) {
warning("qtAddLibrary() is deprecated. Use QT+= instead.")
@@ -100,7 +106,7 @@ defineTest(qtAddModule) {
# to give access to sources or include files, and not for linking.
!isEmpty(MODULE_LIBS):!contains(MODULE_CONFIG, no_link) {
- # Re-insert the major version in the library name (cf qtLibraryTarget above)
+ # Re-insert the major version in the library name (cf qt5LibraryTarget above)
# unless it's a framework build
!mac|!contains(MODULE_CONFIG, lib_bundle): \
MODULE_NAME ~= s,^Qt,Qt$$QT_MAJOR_VERSION,