From e3fd25256d20d89d199e63c139af1ad43981fb34 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 19 Apr 2013 16:20:22 +0200 Subject: Qbs build files: Install files to correct location First step in fixing the Mac build Change-Id: I86659b9b46c01fc17fd93b8ffc3b378d2b580c36 Reviewed-by: Erik Verbruggen Reviewed-by: Joerg Bornemann --- qtcreator.qbs | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) (limited to 'qtcreator.qbs') diff --git a/qtcreator.qbs b/qtcreator.qbs index 02b36a2066f..ba93b13540b 100644 --- a/qtcreator.qbs +++ b/qtcreator.qbs @@ -3,10 +3,37 @@ import qbs.fileinfo as FileInfo import "qbs/defaults.js" as Defaults Project { + property string ide_version_major: '2' property string ide_version_minor: '7' property string ide_version_release: '81' 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_library_path: { + if (qbs.targetOS == "mac") + return ide_app_target + ".app/Contents/PlugIns" + else if (qbs.targetOS == "windows") + return ide_app_path + else + return "lib/qtcreator" + } + property string ide_plugin_path: { + if (qbs.targetOS == "mac") + return ide_library_path + else if (qbs.targetOS == "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 moduleSearchPaths: "qbs" references: [ @@ -140,7 +167,7 @@ Project { } Application { - name: "qtcreator" + name: project.ide_app_target consoleApplication: qbs.debugInformation cpp.rpaths: ["$ORIGIN/../lib/qtcreator"] @@ -176,7 +203,7 @@ Project { ] Group { - condition: qbs.targetPlatform.indexOf("unix") != -1 + condition: qbs.targetPlatform.indexOf("unix") != -1 && qbs.targetOS != "mac" files: "bin/qtcreator.sh" qbs.install: true qbs.installDir: "bin" @@ -199,7 +226,7 @@ Project { Group { fileTagsFilter: product.type qbs.install: true - qbs.installDir: "bin" + qbs.installDir: project.ide_app_path } } } -- cgit v1.2.3