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