From e77124c39828cbc120f6bf566db084869a04b42d Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Mon, 7 Dec 2020 12:10:56 +0100 Subject: 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 _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. --- src/library/banshee/bansheefeature.cpp | 1 + src/library/banshee/bansheeplaylistmodel.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'src/library/banshee') diff --git a/src/library/banshee/bansheefeature.cpp b/src/library/banshee/bansheefeature.cpp index ee6f9a8333..faed634666 100644 --- a/src/library/banshee/bansheefeature.cpp +++ b/src/library/banshee/bansheefeature.cpp @@ -10,6 +10,7 @@ #include "library/dao/settingsdao.h" #include "library/library.h" #include "library/trackcollectionmanager.h" +#include "moc_bansheefeature.cpp" #include "track/track.h" const QString BansheeFeature::BANSHEE_MOUNT_KEY = "mixxx.BansheeFeature.mount"; diff --git a/src/library/banshee/bansheeplaylistmodel.cpp b/src/library/banshee/bansheeplaylistmodel.cpp index 61d0c919e8..f3a7b70eba 100644 --- a/src/library/banshee/bansheeplaylistmodel.cpp +++ b/src/library/banshee/bansheeplaylistmodel.cpp @@ -8,6 +8,7 @@ #include "library/starrating.h" #include "library/trackcollectionmanager.h" #include "mixer/playermanager.h" +#include "moc_bansheeplaylistmodel.cpp" #include "track/beatfactory.h" #include "track/beats.h" #include "track/track.h" -- cgit v1.2.3