mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
Derive program version from last commit
This commit is contained in:
@@ -28,34 +28,40 @@ BEGIN
|
||||
END
|
||||
|
||||
#cmakedefine PROJECT_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
|
||||
#cmakedefine PROJECT_VERSION_MINOR @PROJECT_VERSION_MINOR@
|
||||
#cmakedefine PROJECT_VERSION_PATCH @PROJECT_VERSION_PATCH@
|
||||
#cmakedefine PROJECT_VERSION_TWEAK @PROJECT_VERSION_TWEAK@
|
||||
|
||||
#ifdef PROJECT_VERSION_MAJOR
|
||||
#define VER_MAJOR PROJECT_VERSION_MAJOR
|
||||
#else
|
||||
#define VER_MAJOR 0
|
||||
#endif
|
||||
|
||||
#cmakedefine PROJECT_VERSION_MINOR @PROJECT_VERSION_MINOR@
|
||||
#ifdef PROJECT_VERSION_MINOR
|
||||
#define VER_MINOR PROJECT_VERSION_MINOR
|
||||
#else
|
||||
#define VER_MINOR 0
|
||||
#endif
|
||||
|
||||
#cmakedefine PROJECT_VERSION_PATCH @PROJECT_VERSION_PATCH@
|
||||
#ifdef PROJECT_VERSION_PATCH
|
||||
#define VER_BUILD PROJECT_VERSION_PATCH
|
||||
#else
|
||||
#define VER_BUILD 0
|
||||
#endif
|
||||
|
||||
#cmakedefine PROJECT_VERSION_TWEAK @PROJECT_VERSION_TWEAK@
|
||||
#ifdef PROJECT_VERSION_TWEAK
|
||||
#define VER_REVISION PROJECT_VERSION_TWEAK
|
||||
#else
|
||||
#define VER_REVISION 0
|
||||
#endif
|
||||
|
||||
#cmakedefine GIT_COMMIT_YEAR "@GIT_COMMIT_YEAR@"
|
||||
#ifdef GIT_COMMIT_YEAR
|
||||
#define VER_COMMIT_YEAR GIT_COMMIT_YEAR
|
||||
#else
|
||||
#define VER_COMMIT_YEAR ""
|
||||
#endif
|
||||
|
||||
#define _STR(s) #s
|
||||
#define _VER_STR(a, b, c, d) _STR(a) "." _STR(b) "." _STR(c) "." _STR(d)
|
||||
|
||||
@@ -67,7 +73,7 @@ END
|
||||
#define VER_FILEDESCRIPTION_STR "AVRDUDE"
|
||||
#define VER_PRODUCTNAME_STR "AVRDUDE"
|
||||
#define VER_INTERNALNAME_STR "avrdude.exe"
|
||||
#define VER_LEGALCOPYRIGHT_STR "\251 2021 The AVRDUDE authors"
|
||||
#define VER_LEGALCOPYRIGHT_STR "\251 " VER_COMMIT_YEAR " The AVRDUDE authors"
|
||||
#define VER_ORIGINALFILENAME_STR VER_INTERNALNAME_STR
|
||||
#define VER_COMMENTS_STR "https://github.com/avrdudes/avrdude"
|
||||
#define VER_FILETYPE VFT_APP
|
||||
|
Reference in New Issue
Block a user