17 */ |
17 */ |
18 |
18 |
19 #pragma once |
19 #pragma once |
20 #include <QString> |
20 #include <QString> |
21 |
21 |
22 constexpr char appName[] = APPNAME; |
|
23 |
|
24 constexpr struct { |
|
25 int major = VERSION_MAJOR; |
|
26 int minor = VERSION_MINOR; |
|
27 int patch = VERSION_PATCH; |
|
28 } APPVERSION; |
|
29 |
|
30 enum BuildType {InternalBuild, ReleaseBuild}; |
|
31 constexpr BuildType BUILD_TYPE = InternalBuild; |
|
32 |
|
33 #ifdef DEBUG |
22 #ifdef DEBUG |
34 # undef RELEASE |
23 # undef RELEASE |
35 #endif // DEBUG |
24 #endif // DEBUG |
36 |
25 |
37 #ifdef RELEASE |
26 #ifdef RELEASE |
38 # undef DEBUG |
27 # undef DEBUG |
39 #endif // RELEASE |
28 #endif // RELEASE |
40 |
29 |
41 const char *fullVersionString(); |
30 const QString& fullVersionString(); |
42 const QString& commitTimeString(); |
31 QString detailedVersionString(); |
|
32 QString versionString(); |
|
33 QString revisionDateString(); |