1
0
Fork 0
forked from len0rd/rockbox

rbutil: Create git version information at build time.

Change-Id: Iaf701f4d64d6852423f6a28a753b27abc43477e2
This commit is contained in:
Dominik Riebeling 2021-12-25 13:02:05 +01:00
parent 6783b2c8a7
commit eb8dc75d38
4 changed files with 79 additions and 3 deletions

View file

@ -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

View file

@ -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__