From c6b98fc8746b58a2a56de3d3369c805667966fa8 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Tue, 13 Oct 2015 16:19:58 -0400 Subject: [PATCH] Precompile a handful of Qt headers to speed up compilation time --- QGCApplication.pro | 5 ++++- src/stable_headers.h | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/stable_headers.h diff --git a/QGCApplication.pro b/QGCApplication.pro index 08f0eeedd..bf54888bd 100644 --- a/QGCApplication.pro +++ b/QGCApplication.pro @@ -126,6 +126,8 @@ include(QGCExternalLibs.pri) # Main QGroundControl portion of project file # +PRECOMPILED_HEADER += src/stable_headers.h + RESOURCES += qgroundcontrol.qrc DEPENDPATH += \ @@ -275,7 +277,8 @@ HEADERS += \ src/ui/uas/QGCUnconnectedInfoWidget.h \ src/ui/uas/UASMessageView.h \ src/MissionItem.h \ - src/AutoPilotPlugins/PX4/PX4AirframeLoader.h + src/AutoPilotPlugins/PX4/PX4AirframeLoader.h \ + src/stable_headers.h !iOSBuild { HEADERS += \ diff --git a/src/stable_headers.h b/src/stable_headers.h new file mode 100644 index 000000000..da7194078 --- /dev/null +++ b/src/stable_headers.h @@ -0,0 +1,9 @@ +#ifndef STABLE_HEADERS_H +#define STABLE_HEADERS_H + +#include +#include +#include + +#endif // STABLE_HEADERS_H + -- 2.22.0