aboutsummaryrefslogtreecommitdiff
path: root/src/smolbote.qbs
diff options
context:
space:
mode:
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",