mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-23 01:55:10 -07:00
Reparsing QtCore/QtGui/QtWidgets/QtNetwork in ~460 client translation units is the dominant compilation cost. Precompile the two common layers: - qtcore_pch.h (Qt Core only; safe even for headless Servatrice) - qtwidgets_pch.h (adds Gui/Widgets/Network; used by Cockatrice and Oracle) target_precompile_headers() requires CMake 3.16, now the project minimum. Estimated 30-50% faster client rebuilds.
24 lines
No EOL
587 B
C
24 lines
No EOL
587 B
C
/** @file qtcore_pch.h
|
|
* @brief Precompiled header for all Qt targets (Qt Core only).
|
|
*
|
|
* Safe for every target that links Qt Core, including the headless
|
|
* Servatrice binary. Keep this header free of any widget/gui types.
|
|
*/
|
|
|
|
#include <QBasicTimer>
|
|
#include <QByteArray>
|
|
#include <QDateTime>
|
|
#include <QDebug>
|
|
#include <QFile>
|
|
#include <QHash>
|
|
#include <QList>
|
|
#include <QLoggingCategory>
|
|
#include <QMap>
|
|
#include <QMetaObject>
|
|
#include <QObject>
|
|
#include <QRandomGenerator>
|
|
#include <QSharedPointer>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
#include <QTimer>
|
|
#include <QVariant> |