-
Notifications
You must be signed in to change notification settings - Fork 22
/
Version.cpp.in
49 lines (35 loc) · 1.79 KB
/
Version.cpp.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "utility/Version.h"
namespace openmittsu {
namespace utility {
// The major version of OpenMittsu
const unsigned Version::versionMajor = @OPENMITTSU_CPP_VERSION_MAJOR@;
// The minor version of OpenMittsu
const unsigned Version::versionMinor = @OPENMITTSU_CPP_VERSION_MINOR@;
// The patch version of OpenMittsu
const unsigned Version::versionPatch = @OPENMITTSU_CPP_VERSION_PATCH@;
// The short hash of the git commit this build is based on
const std::string Version::gitRevisionHash = "@OPENMITTSU_CPP_VERSION_HASH@";
// How many commits passed since the last tag was set
const unsigned Version::commitsAhead = @OPENMITTSU_CPP_VERSION_COMMITS_AHEAD@;
// "0" iff no files were modified in the checkout, "1" else
const unsigned Version::dirty = @OPENMITTSU_CPP_VERSION_DIRTY@;
// The system which has compiled OpenMittsu
const std::string Version::systemName = "@CMAKE_SYSTEM_NAME@";
// The system processor for which OpenMittsu was compiled
const std::string Version::systemProcessor = "@CMAKE_SYSTEM_PROCESSOR@";
// The size of a pointer of the system that has compiled OpenMittsu
const std::string Version::systemPtrSize = "@OPENMITTSU_CPP_POINTER_SIZE@";
// The system version which has compiled OpenMittsu
const std::string Version::systemVersion = "@CMAKE_SYSTEM_VERSION@";
// The build type that was used to build OpenMittsu
#if (defined(_MSC_VER) && defined(_DEBUG))
const std::string Version::buildType = "Debug";
#elif (defined(_MSC_VER) && !defined(_DEBUG))
const std::string Version::buildType = "Release";
#else
const std::string Version::buildType = "@CMAKE_BUILD_TYPE@";
#endif
// The compiler version that was used to build OpenMittsu
const std::string Version::cxxCompiler = "@OPENMITTSU_COMPILED_BY@ @CMAKE_CXX_COMPILER_VERSION@";
}
}