summaryrefslogtreecommitdiffstats
path: root/src/vinylcontrol
diff options
context:
space:
mode:
authorDaniel Poelzleithner <git@poelzi.org>2020-12-07 12:10:56 +0100
committerDaniel Poelzleithner <git@poelzi.org>2020-12-07 12:10:56 +0100
commite77124c39828cbc120f6bf566db084869a04b42d (patch)
tree46020dafe469eed4f04bf7d8081935ae1338a28d /src/vinylcontrol
parentbf343d2677f19d1886682c4bd15e26f70884ce27 (diff)
Slimdown moc_compilation.cpp
The moc_compilation file became unbearable large, easily taking 10 minutes to compile whenever a Q_OBJECT changes. AUTOMOC scans for <basename>_moc.cpp includes and does not add the file to the moc_compilation whenever it is included in the propper cpp file. After this patch, moc_compilation.cpp is empty and the mocs are compiled with the approptial cpp, increasing recompile speeds by a factor of 10 when just a header file changed.
Diffstat (limited to 'src/vinylcontrol')
-rw-r--r--src/vinylcontrol/vinylcontrolmanager.cpp1
-rw-r--r--src/vinylcontrol/vinylcontrolprocessor.cpp5
-rw-r--r--src/vinylcontrol/vinylcontrolsignalwidget.cpp2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/vinylcontrol/vinylcontrolmanager.cpp b/src/vinylcontrol/vinylcontrolmanager.cpp
index 7e3570391a..4a83dc2afd 100644
--- a/src/vinylcontrol/vinylcontrolmanager.cpp
+++ b/src/vinylcontrol/vinylcontrolmanager.cpp
@@ -9,6 +9,7 @@
#include "control/controlobject.h"
#include "control/controlproxy.h"
#include "mixer/playermanager.h"
+#include "moc_vinylcontrolmanager.cpp"
#include "soundio/soundmanager.h"
#include "util/compatibility.h"
#include "util/timer.h"
diff --git a/src/vinylcontrol/vinylcontrolprocessor.cpp b/src/vinylcontrol/vinylcontrolprocessor.cpp
index a7b5379d28..037684b786 100644
--- a/src/vinylcontrol/vinylcontrolprocessor.cpp
+++ b/src/vinylcontrol/vinylcontrolprocessor.cpp
@@ -1,8 +1,9 @@
-#include <QMutexLocker>
-
#include "vinylcontrol/vinylcontrolprocessor.h"
+#include <QMutexLocker>
+
#include "control/controlpushbutton.h"
+#include "moc_vinylcontrolprocessor.cpp"
#include "util/defs.h"
#include "util/event.h"
#include "util/sample.h"
diff --git a/src/vinylcontrol/vinylcontrolsignalwidget.cpp b/src/vinylcontrol/vinylcontrolsignalwidget.cpp
index 9bf04d870f..7b4289d5cf 100644
--- a/src/vinylcontrol/vinylcontrolsignalwidget.cpp
+++ b/src/vinylcontrol/vinylcontrolsignalwidget.cpp
@@ -17,6 +17,8 @@
#include "vinylcontrol/vinylcontrolsignalwidget.h"
+#include "moc_vinylcontrolsignalwidget.cpp"
+
VinylControlSignalWidget::VinylControlSignalWidget()
: QWidget(),
m_iVinylInput(-1),