summaryrefslogtreecommitdiffstats
path: root/src/analyzer
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/analyzer
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/analyzer')
-rw-r--r--src/analyzer/analyzerthread.cpp1
-rw-r--r--src/analyzer/trackanalysisscheduler.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/analyzer/analyzerthread.cpp b/src/analyzer/analyzerthread.cpp
index b561529e66..2402ab2734 100644
--- a/src/analyzer/analyzerthread.cpp
+++ b/src/analyzer/analyzerthread.cpp
@@ -11,6 +11,7 @@
#include "analyzer/constants.h"
#include "engine/engine.h"
#include "library/dao/analysisdao.h"
+#include "moc_analyzerthread.cpp"
#include "sources/audiosourcestereoproxy.h"
#include "sources/soundsourceproxy.h"
#include "track/track.h"
diff --git a/src/analyzer/trackanalysisscheduler.cpp b/src/analyzer/trackanalysisscheduler.cpp
index 876b6e4963..f4c639a89d 100644
--- a/src/analyzer/trackanalysisscheduler.cpp
+++ b/src/analyzer/trackanalysisscheduler.cpp
@@ -2,10 +2,9 @@
#include "library/library.h"
#include "library/trackcollection.h"
-
+#include "moc_trackanalysisscheduler.cpp"
#include "util/logger.h"
-
namespace {
mixxx::Logger kLogger("TrackAnalysisScheduler");