forked from len0rd/rockbox
rbutil: Create git version information at build time.
Change-Id: Iaf701f4d64d6852423f6a28a753b27abc43477e2
This commit is contained in:
parent
6783b2c8a7
commit
eb8dc75d38
4 changed files with 79 additions and 3 deletions
|
|
@ -122,7 +122,7 @@ if(APPLE)
|
|||
PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||
endif()
|
||||
|
||||
target_link_libraries(RockboxUtility rbbase cutelogger
|
||||
target_link_libraries(RockboxUtility rbbase cutelogger gitversion
|
||||
Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Multimedia)
|
||||
|
||||
target_include_directories(RockboxUtility PRIVATE
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include "gitversion.h"
|
||||
|
||||
// PUREVERSION is needed to be able to just compare versions. It does not
|
||||
// contain a build timestamp because it needs to be the same in different
|
||||
// files
|
||||
|
|
@ -38,7 +40,7 @@
|
|||
#define VERSIONSTRING(a, b, c) STR(a) "." STR(b) "." STR(c)
|
||||
#define VERSION VERSIONSTRING(VERSION_MAJOR, VERSION_MINOR, VERSION_MICRO) BUILDID
|
||||
// PUREVERSION should identify the build uniquely. Use version string for now.
|
||||
#define PUREVERSION "$Rev$"
|
||||
#define PUREVERSION GITHASH
|
||||
|
||||
#define FULLVERSION VERSION " (" PUREVERSION "), built " __DATE__ " " __TIME__
|
||||
#define FULLVERSION VERSION " (" GITHASH "), built " __DATE__ " " __TIME__
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue