diff options
Diffstat (limited to 'mkspecs/features/qt_functions.prf')
-rw-r--r-- | mkspecs/features/qt_functions.prf | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf index 9a4d80e80f..a9a622dd1d 100644 --- a/mkspecs/features/qt_functions.prf +++ b/mkspecs/features/qt_functions.prf @@ -19,10 +19,9 @@ defineReplace(qtLibraryTarget) { QMAKE_FRAMEWORK_BUNDLE_NAME = $$LIBRARY_NAME export(QMAKE_FRAMEWORK_BUNDLE_NAME) } else { - # insert the major version in the library name + # insert the major version of Qt in the library name # unless it's a framework build - MAJOR_VERSION = $$section(VERSION, ., 0, 0) - LIBRARY_NAME ~= s,^Qt,Qt$$MAJOR_VERSION, + LIBRARY_NAME ~= s,^Qt,Qt$$QT_MAJOR_VERSION, } return($$LIBRARY_NAME$$qtPlatformTargetSuffix()) } @@ -64,7 +63,6 @@ defineTest(qtAddModule) { MODULE_INCLUDES = $$eval(QT.$${1}.includes) MODULE_LIBS = $$eval(QT.$${1}.libs) MODULE_CONFIG = $$eval(QT.$${1}.module_config) - MODULE_MAJOR_VERSION = $$eval(QT.$${1}.MAJOR_VERSION) contains(MODULE_CONFIG, internal_module) { using_privates = true @@ -104,7 +102,7 @@ defineTest(qtAddModule) { # Re-insert the major version in the library name (cf qtLibraryTarget above) # unless it's a framework build !mac|!contains(MODULE_CONFIG, lib_bundle): \ - MODULE_NAME ~= s,^Qt,Qt$$MODULE_MAJOR_VERSION, + MODULE_NAME ~= s,^Qt,Qt$$QT_MAJOR_VERSION, win32 { # Make sure the version number isn't appended again to the lib name @@ -189,7 +187,7 @@ defineTest(qtAddRpathLink) { export(QMAKE_RPATHLINKDIR) } -# variable, default, [suffix for variable for system() use] +# variable, default, [suffix for variable for system() use], [prepare primary variable for system() use] defineTest(qtPrepareTool) { cmd = $$eval(QT_TOOL.$${2}.binary) isEmpty(cmd) { @@ -206,16 +204,18 @@ defineTest(qtPrepareTool) { } } QT_TOOL_ENV += $$eval(QT_TOOL.$${2}.envvars) - !isEmpty(3) { + !isEmpty(3)|!isEmpty(4) { $$1$$3 = for (arg, cmd): \ $$1$$3 += $$system_quote($$arg) qtAddTargetEnv($$1$$3, QT_TOOL.$${2}.depends, system) } - $$1 = - for (arg, cmd): \ - $$1 += $$shell_quote($$arg) - qtAddTargetEnv($$1, QT_TOOL.$${2}.depends, ) + isEmpty(4) { + $$1 = + for (arg, cmd): \ + $$1 += $$shell_quote($$arg) + qtAddTargetEnv($$1, QT_TOOL.$${2}.depends, ) + } } # target variable, list of env var names, [non-empty: prepare for system(), not make] |