diff options
| author | Kieran Cawthray <kieranc@gmail.com> | 2021-05-18 15:45:16 (GMT) |
|---|---|---|
| committer | Kieran Cawthray <kieranc@gmail.com> | 2021-05-18 15:45:16 (GMT) |
| commit | 6a925292722be365f4efc288c64b023639f0c201 (patch) | |
| tree | 0d60937546c41844ead44375d6fbee7e6cb3ea0b /src/Version.h.in | |
| parent | a4968b502990f4a9e848c5240be2ee73348dd38e (diff) | |
Revert "Reset"
This reverts commit 378fa6b4016b65e2d7b128fdc3ce89c4ca779a4d.
Diffstat (limited to 'src/Version.h.in')
| -rw-r--r-- | src/Version.h.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Version.h.in b/src/Version.h.in index 6ff5938..8cd39c9 100644 --- a/src/Version.h.in +++ b/src/Version.h.in @@ -8,11 +8,13 @@ namespace Pinetime { static constexpr uint32_t Major() {return major;} static constexpr uint32_t Minor() {return minor;} static constexpr uint32_t Patch() {return patch;} + static constexpr const char* GitCommitHash() {return commitHash;} static constexpr const char* VersionString() {return versionString;} private: static constexpr uint32_t major = @PROJECT_VERSION_MAJOR@; static constexpr uint32_t minor = @PROJECT_VERSION_MINOR@; static constexpr uint32_t patch = @PROJECT_VERSION_PATCH@; + static constexpr const char* commitHash = "@PROJECT_GIT_COMMIT_HASH@"; static constexpr const char* versionString = "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@"; }; }
\ No newline at end of file |
