2020-01-18 13:50:24 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
@VERSION_EDIT_WARNING@
|
|
|
|
|
2021-11-03 22:02:30 +00:00
|
|
|
#include <cstdint>
|
|
|
|
|
2020-01-18 13:50:24 +00:00
|
|
|
namespace Pinetime {
|
|
|
|
class Version {
|
|
|
|
public:
|
2020-09-02 19:31:31 +00:00
|
|
|
static constexpr uint32_t Major() {return major;}
|
|
|
|
static constexpr uint32_t Minor() {return minor;}
|
|
|
|
static constexpr uint32_t Patch() {return patch;}
|
2021-05-13 22:08:37 +00:00
|
|
|
static constexpr const char* GitCommitHash() {return commitHash;}
|
2020-09-02 19:36:13 +00:00
|
|
|
static constexpr const char* VersionString() {return versionString;}
|
2020-01-18 13:50:24 +00:00
|
|
|
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@;
|
2021-05-13 22:08:37 +00:00
|
|
|
static constexpr const char* commitHash = "@PROJECT_GIT_COMMIT_HASH@";
|
2020-09-02 19:36:13 +00:00
|
|
|
static constexpr const char* versionString = "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@";
|
2020-01-18 13:50:24 +00:00
|
|
|
};
|
|
|
|
}
|