swift
buildconfig.inc
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
4 #ifndef IN_BUILDCONFIG_H
5 # error This file is only to be included by buildconfig.h
6 #endif
7 
8 // in-line definitions with CMake substitutions
9 #include "buildconfig_gen.inc"
10 
12 
13 namespace swift::config
14 {
16  {
18  }
19 
21  {
22 #ifdef Q_OS_WIN
23  return true;
24 #else
25  return false;
26 #endif
27  }
28 
30  {
31 #ifdef Q_OS_MACOS
32  return true;
33 #else
34  return false;
35 #endif
36  }
37 
39  {
40 #ifdef Q_OS_LINUX
41  return true;
42 #else
43  return false;
44 #endif
45  }
46 
48  {
50  }
51 
52  constexpr bool CBuildConfig::isDebugBuild()
53  {
54 #ifdef QT_DEBUG
55  return true;
56 #else
57  return false;
58 #endif
59  }
60 
61  constexpr bool CBuildConfig::isReleaseBuild()
62  {
63 #ifdef QT_NO_DEBUG
64  return true;
65 #else
66  return false;
67 #endif
68  }
69 } // namespace swift::config
70 
static constexpr bool isDebugBuild()
Debug build?
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 constexpr bool isRunningOnUnixPlatform()
Running on Unix (Linux or Mac OS X) platform.
static constexpr bool isRunningOnMacOSPlatform()
Running on MacOS platform?
static constexpr bool isCompiledWithMSFSSupport()
with MSFS support?
static constexpr bool isCompiledWithFsxSupport()
with FSX support?
static constexpr bool isRunningOnWindowsNtPlatform()
Running on Windows NT platform?
static constexpr bool isCompiledWithMSFS2024Support()
with MSFS2024 support?
static constexpr bool isRunningOnLinuxPlatform()
Running on Linux platform?
static constexpr bool isCompiledWithP3DSupport()
with P3D support?