diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-29 11:00:59 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-29 11:00:59 +0100 |
commit | affa4b43443a980ff2e80441a9e340801ccc8159 (patch) | |
tree | f9d6d359250024160a3720d9bee6c8e45994074f /src/smolbote.qbs | |
parent | Added qbs project file (diff) | |
download | smolbote-affa4b43443a980ff2e80441a9e340801ccc8159.tar.xz |
Reading version tag from repo
Diffstat (limited to 'src/smolbote.qbs')
-rw-r--r-- | src/smolbote.qbs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/smolbote.qbs b/src/smolbote.qbs index 136ea21..1dd603a 100644 --- a/src/smolbote.qbs +++ b/src/smolbote.qbs @@ -6,7 +6,26 @@ Project { CppApplication { name: "poi" - property string version: GitRepo.repoVersion() + property string sourceDirectory: parent.sourceDirectory + + Probe { + id: git + property string version: "1.0.0" + property string describe: "1.0.0-0-00000000" + configure: { + var meta = GitRepo.read(git.parent.sourceDirectory); + version = meta.version; + describe = meta.describe; + found = true; + } + } + + cpp.includePaths: ['.'] + Properties { + condition: git.found + cpp.defines: ['VERSION="'+git.version+'"'] + } + files: [ "browser.cpp", "browser.h", |