6 #ifndef SWIFT_CONFIG_BUILDCONFIG_H
7 #define SWIFT_CONFIG_BUILDCONFIG_H
10 #include <QVersionNumber>
12 namespace swift::config
81 #ifdef SWIFT_VATSIM_SUPPORT
83 static int vatsimClientId();
86 static const QString &vatsimPrivateKey();
125 static constexpr
int versionMajor();
128 static constexpr
int versionMinor();
131 static int versionRevision();
136 #define IN_BUILDCONFIG_H
137 #include "buildconfig.inc"
138 #undef IN_BUILDCONFIG_H
Build configuration, also used to secure VATSIM key.
static const QString & getPlatformString()
Info such as Win32, Win64, macOS, Linux.
static constexpr bool isDebugBuild()
Debug build?
static const QString & buildDateAndTime()
Returns the build date and time as string.
static constexpr bool isCompiledWithFs9Support()
with FS9 support?
static constexpr bool isCompiledWithMsFlightSimulatorSupport()
Compiled with any MS Flight Simulator support (P3D, FSX, FS9)
static constexpr bool isReleaseBuild()
Release build?
static const QVersionNumber & getVersion()
Version as QVersionNumber.
static constexpr bool isRunningOnUnixPlatform()
Running on Unix (Linux or Mac OS X) platform.
static constexpr bool isRunningOnMacOSPlatform()
Running on MacOS platform?
static const QString & getShortVersionString()
Version as QVersionNumber.
static const QString & gitHubRepoApiUrl()
GitHub Packages REST API URL.
static constexpr bool isCompiledWithMSFSSupport()
with MSFS support?
static const QString & getVersionString()
Version as QVersionNumber.
static constexpr bool isCompiledWithFsxSupport()
with FSX support?
static constexpr bool isCompiledWithFGSupport()
with FG support?
static bool isLocalDeveloperDebugBuild()
Local build for developers.
static constexpr bool isRunningOnWindowsNtPlatform()
Running on Windows NT platform?
static const QString & gitHubRepoUrl()
GitHub repository URL.
static constexpr bool isCompiledWithMSFS2024Support()
with MSFS2024 support?
static const QString & swiftCoreExecutableName()
Executable name for swift core, no(!) appendix.
static const QString & gitHeadSha1()
Returns SHA-1 of git HEAD at build time.
static const QString & swiftGuiExecutableName()
Executable name for swift GUI, no(!) appendix.
static constexpr bool isRunningOnLinuxPlatform()
Running on Linux platform?
static const QString & swiftDataExecutableName()
Executable name for swift data, no(!) appendix.
static const QString & backtraceToken()
Backtrace token for minidump uploads.
static constexpr bool isCompiledWithFsuipcSupport()
with FSUIPC support?
static const QString & compiledWithInfo()
Info string about compilation.
static const QStringList & getBuildAbiParts()
Build ABI parts as in http://doc.qt.io/qt-5/qsysinfo.html#buildAbi.
static const QString & getVersionStringPlatform()
Version as QVersionNumber plus platform info.
static constexpr bool isCompiledWithXPlaneSupport()
with XPlane support?
static constexpr bool isCompiledWithP3DSupport()
with P3D support?
static int buildWordSize()
Whether this swift application is build as 32 or 64bit application.