Generate a header containing git version info

It contains the last annotated tag, and possibly also the number of
commits since then and the hash of the last commit.
This commit is contained in:
Robbert van der Helm
2020-04-25 16:12:04 +02:00
parent 1622c39f48
commit 4a1133146a
3 changed files with 36 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Generate a file containing the last annotated git tag and possibly also the
# amount of commits since then and the hash of the last commit
vcs_tag(
command : ['git', 'describe', '--always'],
input : 'version.h.in',
output : 'version.h',
replace_string : '@VCS_VERSION@'
)