forked from qt-creator/qt-creator
qbs files: Append debug suffix for libraries
Share plugins and libraries suffix logic Change-Id: I79f61459a0348937fcadd9791f549364c657b21f Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
31a8b4cb98
commit
cc1c3e0b03
@@ -16,3 +16,15 @@ function defines(qbs)
|
||||
list.push("WITH_TESTS")
|
||||
return list
|
||||
}
|
||||
|
||||
// see PluginSpecPrivate::loadLibrary()
|
||||
function qtLibraryName(qbs, name)
|
||||
{
|
||||
if (qbs.debugInformation) {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return name + "d";
|
||||
else if (qbs.targetOS.contains("osx"))
|
||||
return name + "_debug";
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@ DynamicLibrary {
|
||||
name: "Qt.test"
|
||||
}
|
||||
|
||||
targetName: Defaults.qtLibraryName(qbs, name)
|
||||
|
||||
cpp.defines: Defaults.defines(qbs)
|
||||
cpp.linkerFlags: {
|
||||
if (qbs.buildVariant == "release" && (qbs.toolchain.contains("gcc") || qbs.toolchain.contains("mingw")))
|
||||
|
||||
@@ -7,16 +7,8 @@ Product {
|
||||
property string provider: 'QtProject'
|
||||
property var pluginspecreplacements
|
||||
property var pluginRecommends: []
|
||||
targetName: {
|
||||
// see PluginSpecPrivate::loadLibrary()
|
||||
if (qbs.debugInformation) {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return name + "d";
|
||||
if (qbs.targetOS.contains("osx"))
|
||||
return name + "_debug";
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
targetName: Defaults.qtLibraryName(qbs, name)
|
||||
|
||||
Depends { name: "ExtensionSystem" }
|
||||
Depends { name: "pluginspec" }
|
||||
|
||||
Reference in New Issue
Block a user