From 9156dd9c4577aba54783dbec012e16b8e12fda26 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 17 Dec 2023 11:12:13 -0500 Subject: [PATCH] Include mocs, which reduces mocs_compilation --- launcher/CMakeLists.txt | 1 + launcher/src/account.cpp | 2 ++ launcher/src/accountmanager.cpp | 2 ++ launcher/src/assetupdater.cpp | 2 ++ launcher/src/compatibilitytoolinstaller.cpp | 2 ++ launcher/src/gameinstaller.cpp | 2 ++ launcher/src/headline.cpp | 6 ++++++ launcher/src/launchercore.cpp | 2 ++ launcher/src/launchersettings.cpp | 2 ++ launcher/src/patcher.cpp | 2 ++ launcher/src/profile.cpp | 2 ++ launcher/src/profilemanager.cpp | 2 ++ launcher/src/squareenixlogin.cpp | 4 +++- 13 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 launcher/src/headline.cpp diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index 9d0aad4..7dab296 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -67,6 +67,7 @@ target_sources(astra PRIVATE src/compatibilitytoolinstaller.cpp src/encryptedarg.cpp src/gamerunner.cpp + src/headline.cpp src/gameinstaller.cpp src/launchercore.cpp src/launchersettings.cpp diff --git a/launcher/src/account.cpp b/launcher/src/account.cpp index f0518fb..8437914 100644 --- a/launcher/src/account.cpp +++ b/launcher/src/account.cpp @@ -328,3 +328,5 @@ void Account::updateConfig() file.write(reinterpret_cast(buffer.data), buffer.size); file.close(); } + +#include "moc_account.cpp" \ No newline at end of file diff --git a/launcher/src/accountmanager.cpp b/launcher/src/accountmanager.cpp index df3ce86..6f32a83 100644 --- a/launcher/src/accountmanager.cpp +++ b/launcher/src/accountmanager.cpp @@ -121,3 +121,5 @@ int AccountManager::numAccounts() const { return m_accounts.count(); } + +#include "moc_accountmanager.cpp" \ No newline at end of file diff --git a/launcher/src/assetupdater.cpp b/launcher/src/assetupdater.cpp index 76dc64d..128a9f7 100644 --- a/launcher/src/assetupdater.cpp +++ b/launcher/src/assetupdater.cpp @@ -302,3 +302,5 @@ QUrl AssetUpdater::dotnetDesktopPackageUrl(const QString &version) const return url; } + +#include "moc_assetupdater.cpp" \ No newline at end of file diff --git a/launcher/src/compatibilitytoolinstaller.cpp b/launcher/src/compatibilitytoolinstaller.cpp index 8fcd98b..3f4581b 100644 --- a/launcher/src/compatibilitytoolinstaller.cpp +++ b/launcher/src/compatibilitytoolinstaller.cpp @@ -91,3 +91,5 @@ void CompatibilityToolInstaller::removeCompatibilityTool() Q_EMIT installFinished(); } + +#include "moc_compatibilitytoolinstaller.cpp" \ No newline at end of file diff --git a/launcher/src/gameinstaller.cpp b/launcher/src/gameinstaller.cpp index 090c99b..241a015 100644 --- a/launcher/src/gameinstaller.cpp +++ b/launcher/src/gameinstaller.cpp @@ -64,3 +64,5 @@ void GameInstaller::installGame() qInfo(ASTRA_LOG) << "Installed game in" << installDirectory; }); } + +#include "moc_gameinstaller.cpp" \ No newline at end of file diff --git a/launcher/src/headline.cpp b/launcher/src/headline.cpp new file mode 100644 index 0000000..a221782 --- /dev/null +++ b/launcher/src/headline.cpp @@ -0,0 +1,6 @@ +// SPDX-FileCopyrightText: 2023 Joshua Goins +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "headline.h" + +#include "moc_headline.cpp" \ No newline at end of file diff --git a/launcher/src/launchercore.cpp b/launcher/src/launchercore.cpp index 0f0d357..fdbccec 100755 --- a/launcher/src/launchercore.cpp +++ b/launcher/src/launchercore.cpp @@ -357,3 +357,5 @@ QCoro::Task<> LauncherCore::fetchNews() m_headline = headline; Q_EMIT newsChanged(); } + +#include "moc_launchercore.cpp" \ No newline at end of file diff --git a/launcher/src/launchersettings.cpp b/launcher/src/launchersettings.cpp index d6e2a7f..e41fdb8 100644 --- a/launcher/src/launchersettings.cpp +++ b/launcher/src/launchersettings.cpp @@ -167,3 +167,5 @@ Config *LauncherSettings::config() { return m_config; } + +#include "moc_launchersettings.cpp" \ No newline at end of file diff --git a/launcher/src/patcher.cpp b/launcher/src/patcher.cpp index f046b14..92fb4b0 100644 --- a/launcher/src/patcher.cpp +++ b/launcher/src/patcher.cpp @@ -254,3 +254,5 @@ void Patcher::updateMessage() } } } + +#include "moc_patcher.cpp" \ No newline at end of file diff --git a/launcher/src/profile.cpp b/launcher/src/profile.cpp index 1a653f9..c07881d 100644 --- a/launcher/src/profile.cpp +++ b/launcher/src/profile.cpp @@ -578,3 +578,5 @@ void Profile::setLoggedIn(const bool value) Q_EMIT loggedInChanged(); } } + +#include "moc_profile.cpp" \ No newline at end of file diff --git a/launcher/src/profilemanager.cpp b/launcher/src/profilemanager.cpp index caa493f..d8633d8 100644 --- a/launcher/src/profilemanager.cpp +++ b/launcher/src/profilemanager.cpp @@ -163,3 +163,5 @@ int ProfileManager::numProfiles() const { return m_profiles.count(); } + +#include "moc_profilemanager.cpp" \ No newline at end of file diff --git a/launcher/src/squareenixlogin.cpp b/launcher/src/squareenixlogin.cpp index a3ff42d..ece309b 100644 --- a/launcher/src/squareenixlogin.cpp +++ b/launcher/src/squareenixlogin.cpp @@ -368,4 +368,6 @@ QString SquareEnixLogin::getFileHash(const QString &file) hash.addData(&f); return QStringLiteral("%1/%2").arg(QString::number(f.size()), QString::fromUtf8(hash.result().toHex())); -} \ No newline at end of file +} + +#include "moc_squareenixlogin.cpp" \ No newline at end of file