Fix swiftlauncher executable names for Linux platforms

refs #615
This commit is contained in:
Roland Winklmeier
2016-04-29 21:55:27 +02:00
parent ab1491f085
commit 014c218afa
3 changed files with 30 additions and 4 deletions

View File

@@ -77,6 +77,20 @@ namespace BlackMisc
#endif
}
bool CBuildConfig::isRunningOnLinuxPlatform()
{
#ifdef Q_OS_LINUX
return true;
#else
return false;
#endif
}
bool CBuildConfig::isRunningOnUnixPlatform()
{
return isRunningOnMacOSXPlatform() || isRunningOnLinuxPlatform();
}
bool CBuildConfig::isDebugBuild()
{
#ifdef QT_DEBUG

View File

@@ -77,6 +77,12 @@ namespace BlackMisc
//! Running on Mac OS X platform?
static bool isRunningOnMacOSXPlatform();
//! Running on Linux platform?
static bool isRunningOnLinuxPlatform();
//! Running on Unix (Linux or Mac OS X) platform
static bool isRunningOnUnixPlatform();
//! Application directory where current application is located
//! \todo Move to to CApplication
static const QString &getApplicationDir();