aboutsummaryrefslogtreecommitdiff
path: root/src/smolbote.qbs
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-01-29 11:00:59 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-01-29 11:00:59 +0100
commitaffa4b43443a980ff2e80441a9e340801ccc8159 (patch)
treef9d6d359250024160a3720d9bee6c8e45994074f /src/smolbote.qbs
parentAdded qbs project file (diff)
downloadsmolbote-affa4b43443a980ff2e80441a9e340801ccc8159.tar.xz
Reading version tag from repo
Diffstat (limited to 'src/smolbote.qbs')
-rw-r--r--src/smolbote.qbs21
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",