summaryrefslogtreecommitdiff
path: root/qtcreator.qbs
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-06-20 14:43:33 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-06-20 15:31:39 +0200
commitcd37aef6cf035fbca663c206f5417e7f0532bc75 (patch)
tree85e6c090c2fec132ba3727de8d5976430b79c1d8 /qtcreator.qbs
parent84a597e41144b726ae7f1f0fdbe5c9f0cc2c2659 (diff)
downloadqt-creator-cd37aef6cf035fbca663c206f5417e7f0532bc75.tar.gz
update qbs files
Use the new contains function and the targetOS list. Change-Id: I38b995eb9328e449befad85792512c45670cc8c9 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'qtcreator.qbs')
-rw-r--r--qtcreator.qbs40
1 files changed, 22 insertions, 18 deletions
diff --git a/qtcreator.qbs b/qtcreator.qbs
index a5be603a11..6e0ff79f3e 100644
--- a/qtcreator.qbs
+++ b/qtcreator.qbs
@@ -8,32 +8,36 @@ Project {
property string ide_version_minor: '7'
property string ide_version_release: '83'
property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
- property string ide_app_path: qbs.targetOS == "mac" ? "" : "bin"
- property string ide_app_target: qbs.targetOS == "mac" ? "Qt Creator" : "qtcreator"
+ property string ide_app_path: qbs.targetOS.contains("mac") ? "" : "bin"
+ property string ide_app_target: qbs.targetOS.contains("mac") ? "Qt Creator" : "qtcreator"
property string ide_library_path: {
- if (qbs.targetOS == "mac")
+ if (qbs.targetOS.contains("mac"))
return ide_app_target + ".app/Contents/PlugIns"
- else if (qbs.targetOS == "windows")
+ else if (qbs.targetOS.contains("windows"))
return ide_app_path
else
return "lib/qtcreator"
}
property string ide_plugin_path: {
- if (qbs.targetOS == "mac")
+ if (qbs.targetOS.contains("mac"))
return ide_library_path
- else if (qbs.targetOS == "windows")
+ else if (qbs.targetOS.contains("windows"))
return "lib/qtcreator/plugins"
else
return ide_library_path + "/plugins"
}
- property string ide_data_path: qbs.targetOS == "mac" ? ide_app_target + ".app/Contents/Resources"
- : "share/qtcreator"
- property string ide_libexec_path: qbs.targetOS == "mac" ? ide_data_path
- : ide_app_path
- property string ide_doc_path: qbs.targetOS == "mac" ? ide_data_path + "/doc"
- : "share/doc/qtcreator"
- property string ide_bin_path: qbs.targetOS == "mac" ? ide_app_target + ".app/Contents/MacOS"
- : ide_app_path
+ property string ide_data_path: qbs.targetOS.contains("mac")
+ ? ide_app_target + ".app/Contents/Resources"
+ : "share/qtcreator"
+ property string ide_libexec_path: qbs.targetOS.contains("mac")
+ ? ide_data_path
+ : ide_app_path
+ property string ide_doc_path: qbs.targetOS.contains("mac")
+ ? ide_data_path + "/doc"
+ : "share/doc/qtcreator"
+ property string ide_bin_path: qbs.targetOS.contains("mac")
+ ? ide_app_target + ".app/Contents/MacOS"
+ : ide_app_path
moduleSearchPaths: "qbs"
references: [
@@ -170,7 +174,7 @@ Project {
name: project.ide_app_target
consoleApplication: qbs.debugInformation
- cpp.rpaths: qbs.targetOS == "mac" ? ["@executable_path/.."]
+ cpp.rpaths: qbs.targetOS.contains("mac") ? ["@executable_path/.."]
: ["$ORIGIN/../lib/qtcreator"]
cpp.defines: Defaults.defines(qbs)
cpp.linkerFlags: {
@@ -205,7 +209,7 @@ Project {
Group {
name: "qtcreator.sh"
- condition: qbs.targetPlatform.indexOf("unix") != -1 && qbs.targetOS != "mac"
+ condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("mac")
files: "bin/qtcreator.sh"
qbs.install: true
qbs.installDir: "bin"
@@ -213,7 +217,7 @@ Project {
Group {
name: "QtLockedFile_unix"
- condition: qbs.targetPlatform.indexOf("unix") != -1
+ condition: qbs.targetOS.contains("unix")
files: [
"src/shared/qtlockedfile/qtlockedfile_unix.cpp"
]
@@ -221,7 +225,7 @@ Project {
Group {
name: "QtLockedFile_win"
- condition: qbs.targetOS == "windows"
+ condition: qbs.targetOS.contains("windows")
files: [
"src/shared/qtlockedfile/qtlockedfile_win.cpp"
]