refs #891, added dir / config for P3D plugin

This commit is contained in:
Klaus Basan
2017-02-28 04:29:58 +01:00
committed by Mathew Sutcliffe
parent e2b573b850
commit 347b54171b
6 changed files with 39 additions and 25 deletions

View File

@@ -21,11 +21,6 @@
namespace BlackConfig
{
bool CBuildConfig::isCompiledWithP3DSupport()
{
return CBuildConfig::isCompiledWithFsxSupport();
}
bool CBuildConfig::isCompiledWithMsFlightSimulatorSupport()
{
return CBuildConfig::isCompiledWithFs9Support() || CBuildConfig::isCompiledWithFsxSupport() || CBuildConfig::isCompiledWithP3DSupport();

View File

@@ -25,34 +25,34 @@ namespace BlackConfig
{
public:
//! with BlackCore?
static bool isCompiledWithBlackCore();
static bool isCompiledWithBlackCore(); // defined in buildconfig_gen.cpp.in
//! with BlackSound?
static bool isCompiledWithBlackSound();
static bool isCompiledWithBlackSound(); // defined in buildconfig_gen.cpp.in
//! with BlackInput?
static bool isCompiledWithBlackInput();
static bool isCompiledWithBlackInput(); // defined in buildconfig_gen.cpp.in
//! with FS9 support?
static bool isCompiledWithFs9Support();
static bool isCompiledWithFs9Support(); // defined in buildconfig_gen.cpp.in
//! with FSX support?
static bool isCompiledWithFsxSupport();
static bool isCompiledWithFsxSupport(); // defined in buildconfig_gen.cpp.in
//! with P3D support
static bool isCompiledWithP3DSupport();
//! with P3D support?
static bool isCompiledWithP3DSupport(); // defined in buildconfig_gen.cpp.in
//! Compiled with any MS Flight Simulator support (P3D, FSX, FS9)
static bool isCompiledWithMsFlightSimulatorSupport();
//! with XPlane support?
static bool isCompiledWithXPlaneSupport();
static bool isCompiledWithXPlaneSupport(); // defined in buildconfig_gen.cpp.in
//! with any simulator libraries
static bool isCompiledWithFlightSimulatorSupport();
//! with GUI?
static bool isCompiledWithGui();
static bool isCompiledWithGui(); // defined in buildconfig_gen.cpp.in
//! Debug build?
static bool isDebugBuild();
@@ -61,16 +61,16 @@ namespace BlackConfig
static bool isReleaseBuild();
//! Beta test?
static bool isBetaTest();
static bool isBetaTest(); // defined in buildconfig_gen.cpp.in
//! Can run in dev. environment?
static bool canRunInDeveloperEnvironment();
//! Shipped version?
static bool isShippedVersion();
static bool isShippedVersion(); // defined in buildconfig_gen.cpp.in
//! Vatsim enabled version?
static bool isVatsimVersion();
static bool isVatsimVersion(); // defined in buildconfig_gen.cpp.in
//! Running on Windows NT platform?
static bool isRunningOnWindowsNtPlatform();
@@ -140,16 +140,16 @@ namespace BlackConfig
static const QString &swiftDataExecutableName();
//! End of lifetime
static const QDateTime &getEol();
static const QDateTime &getEol(); // defined in buildconfig_gen.cpp.in
//! Lifetime ended?
static bool isLifetimeExpired();
//! Vatsim client id
static int vatsimClientId();
static int vatsimClientId(); // defined in buildconfig_gen.cpp.in
//! Vatsim client key
static const QString &vatsimPrivateKey();
static const QString &vatsimPrivateKey(); // defined in buildconfig_gen.cpp.in
};
//! Version
@@ -157,7 +157,7 @@ namespace BlackConfig
{
public:
//! Version info
static const QString &version();
static const QString &version(); // defined in buildconfig_gen.cpp.in
//! Version major
static int versionMajor();

View File

@@ -19,6 +19,7 @@ $$DEFINE_WITH_SWIFTDATA#define WITH_SWIFTDATA
$$DEFINE_WITH_SWIFTGUI#define WITH_SWIFTGUI
$$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_XPLANE#define WITH_XPLANE
$$DEFINE_SWIFT_BETA#define SWIFT_BETA
@@ -61,6 +62,15 @@ bool BlackConfig::CBuildConfig::isCompiledWithFs9Support()
#endif
}
bool BlackConfig::CBuildConfig::isCompiledWithP3DSupport()
{
#ifdef WITH_P3D
return true;
#else
return false;
#endif
}
bool BlackConfig::CBuildConfig::isCompiledWithFsxSupport()
{
#ifdef WITH_FSX