mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T430, context menus in mapping tool for FG
This commit is contained in:
committed by
Mat Sutcliffe
parent
257c8ea9f9
commit
f8ee2acf5d
@@ -123,6 +123,7 @@ namespace BlackConfig
|
||||
if (CBuildConfig::isCompiledWithFsxSupport()) { sl << "FSX"; }
|
||||
if (CBuildConfig::isCompiledWithXPlaneSupport()) { sl << "XPlane"; }
|
||||
if (CBuildConfig::isCompiledWithP3DSupport()) { sl << "P3D"; }
|
||||
if (CBuildConfig::isCompiledWithFGSupport()) { sl << "FG"; }
|
||||
infoShort = sl.join(", ");
|
||||
if (infoShort.isEmpty()) { infoShort = "<none>"; }
|
||||
}
|
||||
@@ -142,6 +143,7 @@ namespace BlackConfig
|
||||
infoLong = infoLong.append(" FSX: ").append(boolToYesNo(isCompiledWithFsxSupport()));
|
||||
infoLong = infoLong.append(" P3D: ").append(boolToYesNo(isCompiledWithP3DSupport()));
|
||||
infoLong = infoLong.append(" XPlane: ").append(boolToYesNo(isCompiledWithXPlaneSupport()));
|
||||
infoLong = infoLong.append(" FG: ").append(boolToYesNo(isCompiledWithFGSupport()));
|
||||
}
|
||||
return infoLong;
|
||||
}
|
||||
@@ -250,6 +252,13 @@ namespace BlackConfig
|
||||
static const int bws = Private::buildWordSizeImpl();
|
||||
return bws;
|
||||
}
|
||||
|
||||
bool CBuildConfig::supportFlightGear()
|
||||
{
|
||||
// for testing set to "true", never commit with TRUE before FG is completed
|
||||
// this will be removed when FG is fully productive
|
||||
return false; // && isLocalDeveloperDebugBuild();
|
||||
}
|
||||
} // ns
|
||||
|
||||
//! \endcond
|
||||
|
||||
@@ -41,7 +41,10 @@ namespace BlackConfig
|
||||
//! with P3D support?
|
||||
static constexpr bool isCompiledWithP3DSupport(); // defined in buildconfig_gen.inc.in
|
||||
|
||||
//! with Fsuipc support?
|
||||
//! with FG support?
|
||||
static constexpr bool isCompiledWithFGSupport(); // defined in buildconfig_gen.inc.in
|
||||
|
||||
//! with FSUIPC support?
|
||||
static constexpr bool isCompiledWithFsuipcSupport(); // defined in buildconfig_gen.inc.in
|
||||
|
||||
//! Compiled with any MS Flight Simulator support (P3D, FSX, FS9)
|
||||
@@ -147,6 +150,10 @@ namespace BlackConfig
|
||||
//! \returns 32, 64 or -1 (in case no info is possible)
|
||||
static int buildWordSize();
|
||||
|
||||
//! Ref T430 FG preparations, will be removed later
|
||||
//! \fixme KB 2019-01 remove after FG is fully implemented
|
||||
static bool supportFlightGear();
|
||||
|
||||
private:
|
||||
//! Major version
|
||||
static constexpr int versionMajor(); // defined in buildconfig_gen.inc.in
|
||||
|
||||
@@ -83,6 +83,15 @@ constexpr bool BlackConfig::CBuildConfig::isCompiledWithXPlaneSupport()
|
||||
!!ENDIF
|
||||
}
|
||||
|
||||
constexpr bool BlackConfig::CBuildConfig::isCompiledWithFGSupport()
|
||||
{
|
||||
!!IF swiftConfig(sims.fg)
|
||||
return true;
|
||||
!!ELSE
|
||||
return false;
|
||||
!!ENDIF
|
||||
}
|
||||
|
||||
constexpr bool BlackConfig::CBuildConfig::isCompiledWithGui()
|
||||
{
|
||||
!!IF swiftConfig(libs.blackgui)
|
||||
|
||||
Reference in New Issue
Block a user