diff options
author | Daniel Poelzleithner <git@poelzi.org> | 2020-12-07 12:10:56 +0100 |
---|---|---|
committer | Daniel Poelzleithner <git@poelzi.org> | 2020-12-07 12:10:56 +0100 |
commit | e77124c39828cbc120f6bf566db084869a04b42d (patch) | |
tree | 46020dafe469eed4f04bf7d8081935ae1338a28d /src/engine/enginevumeter.cpp | |
parent | bf343d2677f19d1886682c4bd15e26f70884ce27 (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/engine/enginevumeter.cpp')
-rw-r--r-- | src/engine/enginevumeter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/enginevumeter.cpp b/src/engine/enginevumeter.cpp index 666ea72f5d..07c761ff09 100644 --- a/src/engine/enginevumeter.cpp +++ b/src/engine/enginevumeter.cpp @@ -1,7 +1,8 @@ #include "engine/enginevumeter.h" -#include "control/controlproxy.h" #include "control/controlpotmeter.h" +#include "control/controlproxy.h" +#include "moc_enginevumeter.cpp" #include "util/math.h" #include "util/sample.h" |