diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2013-07-01 10:55:06 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-07-02 12:18:03 +0200 |
commit | 7cb4115ae738b86802d8bdfd9294e2b436dcf51a (patch) | |
tree | 91e53aa405fae394e450bbd3e2cc5bc10b06db3c /doc/doc.qbs | |
parent | ebdcfb051ef86f52fa91f0872bc147cb4319d78b (diff) | |
download | qbs-7cb4115ae738b86802d8bdfd9294e2b436dcf51a.tar.gz |
Prepare qbs project files for selective inclusion.
Namely:
- Move product "share" into its own file.
- Move version number definition into its own file.
This will make it easier to pull in only parts of the sources
in an aggregating project (e.g. an IDE that does not need the executables).
Change-Id: I41b724fe8a0b20d957b924fe0a827263add43dce
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'doc/doc.qbs')
-rw-r--r-- | doc/doc.qbs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/doc.qbs b/doc/doc.qbs index 0aa48b047..81aed1086 100644 --- a/doc/doc.qbs +++ b/doc/doc.qbs @@ -1,4 +1,5 @@ import qbs 1.0 +import "../version.js" as Version Product { name: "documentation" @@ -16,10 +17,10 @@ Product { fileTags: "qdocconf-main" } - property string versionTag: project.version.replace(/\.|-/g, "") + property string versionTag: Version.qbsVersion().replace(/\.|-/g, "") Qt.core.qdocQhpFileName: "qbs.qhp" Qt.core.qdocEnvironment: [ - "QBS_VERSION=" + project.version, + "QBS_VERSION=" + Version.qbsVersion(), "SRCDIR=" + path, "QT_INSTALL_DOCS=" + Qt.core.docPath, "QBS_VERSION_TAG=" + versionTag |