mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 10:15:43 +08:00
Make FSUIPC optional
Summary: If FSUIPC is configured, its support will be enabled in swift and disabled otherwise. Ref T91 Reviewers: #swift_pilot_client, msutcliffe Reviewed By: #swift_pilot_client, msutcliffe Subscribers: msutcliffe, jenkins, kbasan Maniphest Tasks: T91 Differential Revision: https://dev.swift-project.org/D28
This commit is contained in:
@@ -41,6 +41,9 @@ namespace BlackConfig
|
||||
//! with P3D support?
|
||||
static bool isCompiledWithP3DSupport(); // defined in buildconfig_gen.cpp.in
|
||||
|
||||
//! with Fsuipc support?
|
||||
static bool isCompiledWithFsuipcSupport(); // defined in buildconfig_gen.cpp.in
|
||||
|
||||
//! Compiled with any MS Flight Simulator support (P3D, FSX, FS9)
|
||||
static bool isCompiledWithMsFlightSimulatorSupport();
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ $$DEFINE_WITH_SWIFTCORE#define WITH_SWIFTCORE
|
||||
$$DEFINE_WITH_FSX#define WITH_FSX
|
||||
$$DEFINE_WITH_P3D#define WITH_P3D
|
||||
$$DEFINE_WITH_FS9#define WITH_FS9
|
||||
$$DEFINE_WITH_FSUIPC#define WITH_FSUIPC
|
||||
$$DEFINE_WITH_XPLANE#define WITH_XPLANE
|
||||
$$DEFINE_SWIFT_DEV_BRANCH#define SWIFT_DEV_BRANCH
|
||||
$$DEFINE_SWIFT_STABLE_BRANCH#define SWIFT_STABLE_BRANCH
|
||||
@@ -80,6 +81,15 @@ bool BlackConfig::CBuildConfig::isCompiledWithFsxSupport()
|
||||
#endif
|
||||
}
|
||||
|
||||
bool BlackConfig::CBuildConfig::isCompiledWithFsuipcSupport()
|
||||
{
|
||||
#ifdef WITH_FSUIPC
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool BlackConfig::CBuildConfig::isCompiledWithXPlaneSupport()
|
||||
{
|
||||
#ifdef WITH_XPLANE
|
||||
|
||||
Reference in New Issue
Block a user