build: Add ifdef to disable VATSIM build

This commit is contained in:
Lars Toenning
2024-06-10 20:37:56 +02:00
parent dfbd8f05c8
commit b2ae4e5681
12 changed files with 56 additions and 2 deletions

View File

@@ -298,6 +298,7 @@ bool CSwiftLauncher::setSwiftDataExecutable()
m_executable = CSwiftDirectories::executableFilePath(CBuildConfig::swiftDataExecutableName());
QStringList fsdArgs;
#ifdef SWIFT_VATSIM_SUPPORT
int id = 0;
QString key;
if (IContextNetwork::getCmdLineClientIdAndKey(id, key))
@@ -306,6 +307,7 @@ bool CSwiftLauncher::setSwiftDataExecutable()
fsdArgs << "--idAndKey";
fsdArgs << sApp->getParserValue("clientIdAndKey"); // as typed in
}
#endif
m_executableArgs = sGui->argumentsJoined({}, fsdArgs);
return true;