forked from qt-creator/qt-creator
Fix compilation with qbs on non-Linux, non-Mac Unix-like systems.
Change-Id: I075585d43f9e36a50c1945b3da4769744faa3f95 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
committed by
Joerg Bornemann
parent
8eaf5bc6ea
commit
f0c797256e
@@ -174,14 +174,14 @@ Project {
|
|||||||
]
|
]
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
condition: qbs.targetOS == "linux" || qbs.targetOS == "macx"
|
condition: qbs.targetPlatform.indexOf("unix") != -1
|
||||||
files: "bin/qtcreator.sh"
|
files: "bin/qtcreator.sh"
|
||||||
qbs.install: true
|
qbs.install: true
|
||||||
qbs.installDir: "bin"
|
qbs.installDir: "bin"
|
||||||
}
|
}
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
condition: qbs.targetOS == "linux" || qbs.targetOS == "macx"
|
condition: qbs.targetPlatform.indexOf("unix") != -1
|
||||||
files: [
|
files: [
|
||||||
"src/shared/qtlockedfile/qtlockedfile_unix.cpp"
|
"src/shared/qtlockedfile/qtlockedfile_unix.cpp"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ DynamicLibrary {
|
|||||||
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
|
if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
|
||||||
return ["-Wl,-s"]
|
return ["-Wl,-s"]
|
||||||
}
|
}
|
||||||
cpp.includePaths: [ "." ]
|
cpp.includePaths: [ ".", ".." ]
|
||||||
|
|
||||||
ProductModule {
|
ProductModule {
|
||||||
Depends { name: "cpp" }
|
Depends { name: "cpp" }
|
||||||
|
|||||||
@@ -45,7 +45,17 @@ QtcLibrary {
|
|||||||
].concat(botanFiles)
|
].concat(botanFiles)
|
||||||
|
|
||||||
property var botanIncludes: ["../3rdparty"]
|
property var botanIncludes: ["../3rdparty"]
|
||||||
property var botanLibs: qbs.targetOS === "windows" ? ["advapi32", "user32"] : ["rt", "dl"]
|
property var botanLibs: {
|
||||||
|
var result = [];
|
||||||
|
if (qbs.targetOS === "windows")
|
||||||
|
result.push("advapi32", "user32")
|
||||||
|
else {
|
||||||
|
result.push("rt")
|
||||||
|
if (qbs.targetOS === "linux" || qbs.targetOS === "mac")
|
||||||
|
result.push("dl")
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
property var botanDefines: {
|
property var botanDefines: {
|
||||||
var result = ['BOTAN_DLL=']
|
var result = ['BOTAN_DLL=']
|
||||||
if (qbs.toolchain === "msvc")
|
if (qbs.toolchain === "msvc")
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ QtcLibrary {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
Properties {
|
Properties {
|
||||||
condition: qbs.targetOS == "linux"
|
condition: qbs.targetPlatform.indexOf("unix") != -1 && qbs.targetOS != "mac"
|
||||||
cpp.dynamicLibraries: ["X11"]
|
cpp.dynamicLibraries: ["X11"]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ QtcLibrary {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
condition: qbs.targetOS == "linux" || qbs.targetOS == "mac"
|
condition: qbs.targetPlatform.indexOf("unix") != -1
|
||||||
files: [
|
files: [
|
||||||
"consoleprocess_unix.cpp",
|
"consoleprocess_unix.cpp",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ QtcPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
condition: qbs.targetOS == "linux"
|
condition: qbs.targetPlatform.indexOf("unix") != -1 && qbs.targetOS != "mac"
|
||||||
files: [
|
files: [
|
||||||
"progressmanager/progressmanager_x11.cpp",
|
"progressmanager/progressmanager_x11.cpp",
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user