[make] USE_GIT_VERSION option to use commit info in version (closes #1702)

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2021-10-22 05:28:59 +03:00
parent ae0cf2e831
commit b0f043ec86
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
3 changed files with 23 additions and 7 deletions

View file

@ -19,7 +19,12 @@
#define I2PD_VERSION_MINOR 39
#define I2PD_VERSION_MICRO 0
#define I2PD_VERSION_PATCH 0
#define I2PD_VERSION MAKE_VERSION(I2PD_VERSION_MAJOR, I2PD_VERSION_MINOR, I2PD_VERSION_MICRO)
#ifdef GITVER
#define I2PD_VERSION GITVER
#else
#define I2PD_VERSION MAKE_VERSION(I2PD_VERSION_MAJOR, I2PD_VERSION_MINOR, I2PD_VERSION_MICRO)
#endif
#define VERSION I2PD_VERSION
#ifdef MESHNET