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/soundio | |
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/soundio')
-rw-r--r-- | src/soundio/sounddevicenetwork.cpp | 11 | ||||
-rw-r--r-- | src/soundio/soundmanager.cpp | 9 |
2 files changed, 11 insertions, 9 deletions
diff --git a/src/soundio/sounddevicenetwork.cpp b/src/soundio/sounddevicenetwork.cpp index 57d147e269..bce818e71f 100644 --- a/src/soundio/sounddevicenetwork.cpp +++ b/src/soundio/sounddevicenetwork.cpp @@ -2,19 +2,20 @@ #include <QtDebug> -#include "waveform/visualplayposition.h" -#include "util/timer.h" -#include "util/trace.h" -#include "control/controlproxy.h" #include "control/controlobject.h" -#include "util/denormalsarezero.h" +#include "control/controlproxy.h" #include "engine/sidechain/enginenetworkstream.h" #include "float.h" +#include "moc_sounddevicenetwork.cpp" #include "soundio/sounddevice.h" #include "soundio/soundmanager.h" #include "soundio/soundmanagerutil.h" +#include "util/denormalsarezero.h" #include "util/logger.h" #include "util/sample.h" +#include "util/timer.h" +#include "util/trace.h" +#include "waveform/visualplayposition.h" namespace { const int kNetworkLatencyFrames = 8192; // 185 ms @ 44100 Hz diff --git a/src/soundio/soundmanager.cpp b/src/soundio/soundmanager.cpp index e5c69268d9..3963287d11 100644 --- a/src/soundio/soundmanager.cpp +++ b/src/soundio/soundmanager.cpp @@ -16,11 +16,11 @@ #include "soundio/soundmanager.h" -#include <QtDebug> -#include <cstring> // for memcpy and strcmp +#include <portaudio.h> #include <QLibrary> -#include <portaudio.h> +#include <QtDebug> +#include <cstring> // for memcpy and strcmp #include "control/controlobject.h" #include "control/controlproxy.h" @@ -28,13 +28,14 @@ #include "engine/enginemaster.h" #include "engine/sidechain/enginenetworkstream.h" #include "engine/sidechain/enginesidechain.h" +#include "moc_soundmanager.cpp" #include "soundio/sounddevice.h" #include "soundio/sounddevicenetwork.h" #include "soundio/sounddevicenotfound.h" #include "soundio/sounddeviceportaudio.h" #include "soundio/soundmanagerutil.h" -#include "util/compatibility.h" #include "util/cmdlineargs.h" +#include "util/compatibility.h" #include "util/defs.h" #include "util/sample.h" #include "util/sleep.h" |