diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2016-12-06 16:18:16 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-03-10 15:47:54 +0000 |
commit | 31ce111727f117150aed0bcca1ccf70d82418b09 (patch) | |
tree | 2141f13d1a675ccae9bc69117bb5aec13667636f /doc/doc.qbs | |
parent | 5556bcef871cb408e47954dd9552ad427028c4a9 (diff) |
Embed the qbs documentation also when building with qbs
Task-number: QTCREATORBUG-13124
Change-Id: I214a92a03a6d0fa75c1cceca1909c68add09d2c8
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'doc/doc.qbs')
-rw-r--r-- | doc/doc.qbs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/doc.qbs b/doc/doc.qbs index 79220618da..5bea78d0dc 100644 --- a/doc/doc.qbs +++ b/doc/doc.qbs @@ -1,4 +1,5 @@ import qbs +import qbs.File Project { name: "documentation" @@ -52,4 +53,15 @@ Project { excludeFiles: [mainDocConfFile] } } + + property string qbsBaseDir: project.sharedSourcesDir + "/qbs" + property bool qbsSubModuleExists: File.exists(qbsBaseDir + "/qbs.qbs") + Properties { + condition: qbsSubModuleExists + + references: [qbsBaseDir + "/doc/doc.qbs"] + + // The first entry is for overriding qbs' own qbsbuildconfig module. + qbsSearchPaths: [project.ide_source_tree + "/qbs", qbsBaseDir + "/qbs-resources"] + } } |