aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-02-10 13:27:43 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-02-10 13:27:43 +0100
commit2ffb32cbc6ee11babf6fcbc9930f55f900b7c9e0 (patch)
treeb93f3a593900f3d1ab0cbc03248fa13a2859f416
parentUpdated readme and contributing (diff)
downloadsmolbote-2ffb32cbc6ee11babf6fcbc9930f55f900b7c9e0.tar.xz
Added git flag in qbs (#9)
-rw-r--r--src/smolbote.qbs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/smolbote.qbs b/src/smolbote.qbs
index ec0c9d5..ab63f9b 100644
--- a/src/smolbote.qbs
+++ b/src/smolbote.qbs
@@ -2,20 +2,23 @@ import qbs
import "GitRepo.js" as GitRepo
Project {
+ id: project
minimumQbsVersion: "1.7.0"
+ property bool gitFlag: true
CppApplication {
name: "poi"
- 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;
+ if(project.gitFlag) {
+ var meta = GitRepo.read(project.sourceDirectory);
+ version = meta.version;
+ describe = meta.describe;
+ }
found = true;
}
}