refs #256 Update CProject and project files to reflect BlackInput

This commit is contained in:
Roland Winklmeier
2014-06-15 19:39:28 +02:00
parent a131e8c91c
commit 8cbff262d1
5 changed files with 28 additions and 9 deletions

View File

@@ -26,6 +26,15 @@ namespace BlackMisc
#endif
}
bool CProject::isCompiledWithBlackInput()
{
#ifdef WITH_BLACKINPUT
return true;
#else
return false;
#endif
}
bool CProject::isCompiledWithFsxSupport()
{
#ifdef WITH_FSX
@@ -66,6 +75,7 @@ namespace BlackMisc
static QStringList sl;
if (isCompiledWithBlackCore()) sl << "BlackCore";
if (isCompiledWithBlackSound()) sl << "BlackSound";
if (isCompiledWithBlackInput()) sl << "BlackInput";
if (isCompiledWithGui()) sl << "BlackGui";
if (isCompiledWithFsxSupport()) sl << "FSX";
if (isCompiledWithXPlaneSupport()) sl << "XPlane";

View File

@@ -18,6 +18,9 @@ namespace BlackMisc
//! with BlackSound?
static bool isCompiledWithBlackSound();
//! with BlackInput?
static bool isCompiledWithBlackInput();
//! with FSX support?
static bool isCompiledWithFsxSupport();