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  {
20  }
21 
23  {
24 #ifdef Q_OS_WIN
25  return true;
26 #else
27  return false;
28 #endif
29  }
30 
32  {
33 #ifdef Q_OS_MACOS
34  return true;
35 #else
36  return false;
37 #endif
38  }
39 
41  {
42 #ifdef Q_OS_LINUX
43  return true;
44 #else
45  return false;
46 #endif
47  }
48 
50  {
52  }
53 
54  constexpr bool CBuildConfig::isDebugBuild()
55  {
56 #ifdef QT_DEBUG
57  return true;
58 #else
59  return false;
60 #endif
61  }
62 
63  constexpr bool CBuildConfig::isReleaseBuild()
64  {
65 #ifdef QT_NO_DEBUG
66  return true;
67 #else
68  return false;
69 #endif
70  }
71 } // namespace swift::config
72 
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, MSFS, MSFS24)
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?