This repository was archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildconfig_8inc_source.html
165 lines (163 loc) · 18.9 KB
/
buildconfig_8inc_source.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>swift: src/blackconfig/buildconfig.inc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">swift
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_74ac3334446f4343293da2e0cd2e2155.html">blackconfig</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">buildconfig.inc</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#ifndef IN_BUILDCONFIG_H</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#error This file is only to be included by buildconfig.h</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// in-line definitions with qmake substitutions</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "buildconfig_gen.inc"</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span>BlackConfig</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> {</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a48a21f479fe90750a023ccbb98802d1f">CBuildConfig::isCompiledWithMsFlightSimulatorSupport</a>()</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordflow">return</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a81e35ddd8a70a1e0d25eac48461b2dee">CBuildConfig::isCompiledWithFs9Support</a>() || <a class="code" href="class_black_config_1_1_c_build_config.html#a6e514ffcc6598950e4b412423e81caf3">CBuildConfig::isCompiledWithFsxSupport</a>() || <a class="code" href="class_black_config_1_1_c_build_config.html#aaa408323acc467180ea0e5c26fbc5f7f">CBuildConfig::isCompiledWithP3DSupport</a>();</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  }</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="class_black_config_1_1_c_build_config.html#ad9f725932b8ffb2ead286c8ba2b6da17">CBuildConfig::isCompiledWithFlightSimulatorSupport</a>()</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  {</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">return</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a6e514ffcc6598950e4b412423e81caf3">CBuildConfig::isCompiledWithFsxSupport</a>() || <a class="code" href="class_black_config_1_1_c_build_config.html#aae86afff16672d784425ad8cd1c41fa6">CBuildConfig::isCompiledWithXPlaneSupport</a>();</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  }</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a2a4f30c0a22c804151f44d8bf70a4f83">CBuildConfig::isRunningOnWindowsNtPlatform</a>()</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  {</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#ifdef Q_OS_WIN</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a8768868d9bdc6624b8ce049b4d83fd37">CBuildConfig::isRunningOnMacOSPlatform</a>()</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#ifdef Q_OS_MACOS</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a1439a6ad5af0a59752a5c9b913d6f7a9">CBuildConfig::isRunningOnLinuxPlatform</a>()</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#ifdef Q_OS_LINUX</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  }</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a67256c4204b0affe49da2a7e274bd24e">CBuildConfig::isRunningOnUnixPlatform</a>()</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a8768868d9bdc6624b8ce049b4d83fd37">CBuildConfig::isRunningOnMacOSPlatform</a>() || <a class="code" href="class_black_config_1_1_c_build_config.html#a1439a6ad5af0a59752a5c9b913d6f7a9">CBuildConfig::isRunningOnLinuxPlatform</a>();</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="class_black_config_1_1_c_build_config.html#afb35b1fdcde3182700a8c1351553f609">CBuildConfig::isDebugBuild</a>()</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#ifdef QT_DEBUG</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  constexpr <span class="keywordtype">bool</span> <a class="code" href="class_black_config_1_1_c_build_config.html#a6472d45027a20f629166334cccc0ca74">CBuildConfig::isReleaseBuild</a>()</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#ifdef QT_NO_DEBUG</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> } <span class="comment">// ns</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_a1439a6ad5af0a59752a5c9b913d6f7a9"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#a1439a6ad5af0a59752a5c9b913d6f7a9">BlackConfig::CBuildConfig::isRunningOnLinuxPlatform</a></div><div class="ttdeci">static constexpr bool isRunningOnLinuxPlatform()</div><div class="ttdoc">Running on Linux platform?</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_a2a4f30c0a22c804151f44d8bf70a4f83"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#a2a4f30c0a22c804151f44d8bf70a4f83">BlackConfig::CBuildConfig::isRunningOnWindowsNtPlatform</a></div><div class="ttdeci">static constexpr bool isRunningOnWindowsNtPlatform()</div><div class="ttdoc">Running on Windows NT platform?</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_a48a21f479fe90750a023ccbb98802d1f"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#a48a21f479fe90750a023ccbb98802d1f">BlackConfig::CBuildConfig::isCompiledWithMsFlightSimulatorSupport</a></div><div class="ttdeci">static constexpr bool isCompiledWithMsFlightSimulatorSupport()</div><div class="ttdoc">Compiled with any MS Flight Simulator support (P3D, FSX, FS9)</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_a6472d45027a20f629166334cccc0ca74"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#a6472d45027a20f629166334cccc0ca74">BlackConfig::CBuildConfig::isReleaseBuild</a></div><div class="ttdeci">static constexpr bool isReleaseBuild()</div><div class="ttdoc">Release build?</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_a67256c4204b0affe49da2a7e274bd24e"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#a67256c4204b0affe49da2a7e274bd24e">BlackConfig::CBuildConfig::isRunningOnUnixPlatform</a></div><div class="ttdeci">static constexpr bool isRunningOnUnixPlatform()</div><div class="ttdoc">Running on Unix (Linux or Mac OS X) platform.</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_a6e514ffcc6598950e4b412423e81caf3"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#a6e514ffcc6598950e4b412423e81caf3">BlackConfig::CBuildConfig::isCompiledWithFsxSupport</a></div><div class="ttdeci">static constexpr bool isCompiledWithFsxSupport()</div><div class="ttdoc">with FSX support?</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_a81e35ddd8a70a1e0d25eac48461b2dee"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#a81e35ddd8a70a1e0d25eac48461b2dee">BlackConfig::CBuildConfig::isCompiledWithFs9Support</a></div><div class="ttdeci">static constexpr bool isCompiledWithFs9Support()</div><div class="ttdoc">with FS9 support?</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_a8768868d9bdc6624b8ce049b4d83fd37"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#a8768868d9bdc6624b8ce049b4d83fd37">BlackConfig::CBuildConfig::isRunningOnMacOSPlatform</a></div><div class="ttdeci">static constexpr bool isRunningOnMacOSPlatform()</div><div class="ttdoc">Running on MacOS platform?</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_aaa408323acc467180ea0e5c26fbc5f7f"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#aaa408323acc467180ea0e5c26fbc5f7f">BlackConfig::CBuildConfig::isCompiledWithP3DSupport</a></div><div class="ttdeci">static constexpr bool isCompiledWithP3DSupport()</div><div class="ttdoc">with P3D support?</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_aae86afff16672d784425ad8cd1c41fa6"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#aae86afff16672d784425ad8cd1c41fa6">BlackConfig::CBuildConfig::isCompiledWithXPlaneSupport</a></div><div class="ttdeci">static constexpr bool isCompiledWithXPlaneSupport()</div><div class="ttdoc">with XPlane support?</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_ad9f725932b8ffb2ead286c8ba2b6da17"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#ad9f725932b8ffb2ead286c8ba2b6da17">BlackConfig::CBuildConfig::isCompiledWithFlightSimulatorSupport</a></div><div class="ttdeci">static constexpr bool isCompiledWithFlightSimulatorSupport()</div><div class="ttdoc">with any simulator libraries</div></div>
<div class="ttc" id="aclass_black_config_1_1_c_build_config_html_afb35b1fdcde3182700a8c1351553f609"><div class="ttname"><a href="class_black_config_1_1_c_build_config.html#afb35b1fdcde3182700a8c1351553f609">BlackConfig::CBuildConfig::isDebugBuild</a></div><div class="ttdeci">static constexpr bool isDebugBuild()</div><div class="ttdoc">Debug build?</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Dec 3 2023 18:38:35 for swift by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>