aboutsummaryrefslogtreecommitdiffstats
path: root/src/src.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-07-02 17:59:32 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-07-12 16:59:13 +0200
commit26b8acb25f24a6d08cf2539fdf7bc92fcfc57c02 (patch)
treefebc47244fd121988bb0b3b26b9497169317cec1 /src/src.qbs
parent4677389a13743b56189578022674854691725b79 (diff)
Support QbsProjectManager in qbs build.
Qbs can come in via the submodule or as an external resource. Change-Id: I613982135e4a7eca1aeb5c9c305c9974fd65f0fe Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/src.qbs')
-rw-r--r--src/src.qbs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/src.qbs b/src/src.qbs
index 2f74200f77..591e0f4adc 100644
--- a/src/src.qbs
+++ b/src/src.qbs
@@ -1,4 +1,5 @@
import qbs
+import qbs.File
Project {
name: "Sources"
@@ -9,4 +10,28 @@ Project {
"plugins/plugins.qbs",
"tools/tools.qbs"
]
+
+ property bool qbsSubModuleExists: File.exists(qbsProject.qbsBaseDir + "/qbs.qbs")
+ property path qbs_build_dir: qbs.getenv("QBS_BUILD_DIR")
+ property path qbs_source_dir: qbs.getenv("QBS_SOURCE_DIR")
+ property bool useExternalQbs: qbs_build_dir && qbs_source_dir
+ Project {
+ name: "qbs"
+ id: qbsProject
+ property string qbsBaseDir: path + "/shared/qbs"
+ condition: qbsSubModuleExists && !useExternalQbs
+
+ property bool enableUnitTests: false
+ property bool installApiHeaders: false
+ property path libInstallDir: project.ide_library_path
+ property path libRPaths: qbs.targetOS.contains("osx")
+ ? ["@loader_path/.."] : ["$ORIGIN/.."]
+ property path resourcesInstallDir: project.ide_data_path + "/qbs"
+
+ references: [
+ qbsBaseDir + "/src/lib/lib.qbs",
+ qbsBaseDir + "/src/plugins/plugins.qbs",
+ qbsBaseDir + "/share/share.qbs"
+ ]
+ }
}