introduce git-based versioning

MSCP_BUILD_VERSION (`git describe --tags --dirty --match "v*"`) is
passed through include/mscp_version.h.in and cmake.

When git is failed, use VERSION file instead (for building from
source tar balls that excludes .git).
This commit is contained in:
Ryo Nakamura
2023-08-04 16:02:22 +09:00
parent 24c1bc9149
commit 23d9577bde
4 changed files with 39 additions and 10 deletions

2
.gitignore vendored
View File

@@ -4,6 +4,8 @@ compile_commands.json
CMakeUserPresets.json
.*.swp
include/mscp_version.h
dist
*.egg-info
__pycache__