forked from Komet/MediaElch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVersion.h
More file actions
48 lines (39 loc) · 1.32 KB
/
Version.h
File metadata and controls
48 lines (39 loc) · 1.32 KB
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
#pragma once
#include <QString>
namespace MediaElch {
namespace Constants {
constexpr char AppName[] = "MediaElch";
constexpr char AppVersionStr[] = "2.6.1-dev";
constexpr char VersionName[] = "Ferenginar";
constexpr char OrganizationName[] = "kvibes";
#ifdef QT_NO_DEBUG
constexpr char CompilationType[] = "Release";
#else
constexpr char CompilationType[] = "Debug";
#endif
const QString CompilerString = []() -> QString {
// Taken from QtCreator (qt-creator/src/plugins/coreplugin/icore.cpp) - Modified
#if defined(Q_CC_CLANG) // must be before GNU, because clang claims to be GNU too
QString isAppleString;
#if defined(__apple_build_version__) // Apple clang has other version numbers
isAppleString = QLatin1String(" (Apple)");
#endif
return QLatin1String("Clang ") + QString::number(__clang_major__) + '.' + QString::number(__clang_minor__)
+ isAppleString;
#elif defined(Q_CC_GNU)
return QLatin1String("GCC ") + QLatin1String(__VERSION__);
#elif defined(Q_CC_MSVC)
if (_MSC_VER > 1999) {
return QLatin1String("MSVC <unknown>");
}
if (_MSC_VER >= 1910) {
return QLatin1String("MSVC 2017");
}
if (_MSC_VER >= 1900) {
return QLatin1String("MSVC 2015");
}
#endif
return QLatin1String("<unknown compiler>");
}();
} // namespace Constants
} // namespace MediaElch