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  {
19  }
20 
22  {
23 #ifdef Q_OS_WIN
24  return true;
25 #else
26  return false;
27 #endif
28  }
29 
31  {
32 #ifdef Q_OS_MACOS
33  return true;
34 #else
35  return false;
36 #endif
37  }
38 
40  {
41 #ifdef Q_OS_LINUX
42  return true;
43 #else
44  return false;
45 #endif
46  }
47 
49  {
51  }
52 
53  constexpr bool CBuildConfig::isDebugBuild()
54  {
55 #ifdef QT_DEBUG
56  return true;
57 #else
58  return false;
59 #endif
60  }
61 
62  constexpr bool CBuildConfig::isReleaseBuild()
63  {
64 #ifdef QT_NO_DEBUG
65  return true;
66 #else
67  return false;
68 #endif
69  }
70 } // namespace swift::config
71 
static constexpr bool isDebugBuild()
Debug build?
static constexpr bool isCompiledWithMsFlightSimulatorSupport()
Compiled with any MS Flight Simulator support (P3D, 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 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?