0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Automate version generation

Version is now generated automatically based on git tags.
Both cases are handled: building from git tree and building tarball downloaded from github.

Works for qmake and cmake
This commit is contained in:
Андрей Лухнов
2024-09-02 15:32:42 +03:00
parent a9126d51c6
commit b534c2bec0
12 changed files with 98 additions and 30 deletions

9
limereport/version.h.in Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
// git will put "#define GIT_ARCHIVE 1" on the next line inside archives. $Format:%n#define GIT_ARCHIVE 1$
#ifdef GIT_ARCHIVE
#define LIMEREPORT_VERSION_STR "$Format:%(describe:tags=true)$"
#else
#define LIMEREPORT_VERSION_STR "@GIT_VERSION@"
#endif