fix qbs files for MacOS

Change-Id: I73dc7f853eb250ae155386674d8cb9aa1d3c1678
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
Joerg Bornemann
2013-03-15 13:40:18 +01:00
parent a20dd013a7
commit c02395cc63
2 changed files with 11 additions and 6 deletions

View File

@@ -57,11 +57,12 @@ QtcLibrary {
result.push("botan-1.10")
if (qbs.targetOS === "windows")
result.push("advapi32", "user32")
else {
result.push("rt")
if (qbs.targetOS === "linux" || qbs.targetOS === "mac")
result.push("dl")
}
else if (qbs.targetOS === "linux")
result.push("rt", "dl");
else if (qbs.targetOS === "mac")
result.push("dl");
else if (qbs.targetPlatform.indexOf("unix") !== -1)
result.push("rt");
return result
}
property var botanDefines: {

View File

@@ -31,6 +31,8 @@ QtcPlugin {
]
}
cpp.frameworks: qbs.targetOS === "mac" ? ["AppKit"] : undefined
files: [
"basefilewizard.cpp",
"basefilewizard.h",
@@ -234,8 +236,10 @@ QtcPlugin {
}
Group {
condition: qbs.targetOS == "macx"
condition: qbs.targetOS == "mac"
files: [
"macfullscreen.h",
"macfullscreen.mm",
"progressmanager/progressmanager_mac.mm",
]
}