From 0b16424a5eb13ebf792e8e401ebe70cb9cbc36d1 Mon Sep 17 00:00:00 2001 From: dismine Date: Tue, 20 May 2014 16:02:05 +0300 Subject: [PATCH] Update for Precompiled Headers in Qt. --HG-- branch : feature --- src/app/app.pro | 4 ++-- src/app/stable.h | 33 ++++++++++++++++++++++++++++++--- src/libs/qmuparser/stable.h | 5 ++++- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/src/app/app.pro b/src/app/app.pro index 2d7566da6..49c819979 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -98,8 +98,8 @@ CONFIG(debug, debug|release){ *-g++{ QMAKE_CXXFLAGS += -isystem "/usr/include/qt5" -isystem "/usr/include/qt5/QtWidgets" \ -isystem "/usr/include/qt5/QtXml" -isystem "/usr/include/qt5/QtGui" \ - -isystem "/usr/include/qt5/QtCore" -isystem "$${UI_DIR}" -isystem "$${MOC_DIR}" \ - -isystem "$${RCC_DIR}" \ + -isystem "/usr/include/qt5/QtCore" -isystem "/usr/include/qt5/QtXmlPatterns" \ + -isystem "$${UI_DIR}" -isystem "$${MOC_DIR}" -isystem "$${RCC_DIR}" \ -O0 -Wall -Wextra -pedantic -Weffc++ -Woverloaded-virtual -Wctor-dtor-privacy \ -Wnon-virtual-dtor -Wold-style-cast -Wconversion -Winit-self -Wstack-protector \ -Wunreachable-code -Wcast-align -Wcast-qual -Wdisabled-optimization -Wfloat-equal \ diff --git a/src/app/stable.h b/src/app/stable.h index 7ebbe41f9..d7f9fa164 100644 --- a/src/app/stable.h +++ b/src/app/stable.h @@ -39,12 +39,39 @@ #ifdef Q_CC_MSVC #define _USE_MATH_DEFINES #endif + +#ifdef QT_CORE_LIB #include -#include -#include -#include +#endif + +#ifdef QT_GUI_LIB +#include +#endif + +#ifdef QT_WIDGETS_LIB #include +#endif + +#ifdef QT_XML_LIB +#include +#endif + +#ifdef QT_SVG_LIB #include #endif +#ifdef QT_PRINTSUPPORT_LIB +#include +#endif + +#ifdef QT_XMLPATTERNS_LIB +#include +#endif + +#ifdef QT_NETWORK_LIB +#include +#endif + +#endif + #endif // STABLE_H diff --git a/src/libs/qmuparser/stable.h b/src/libs/qmuparser/stable.h index ec80ff9ca..824fb3b9d 100644 --- a/src/libs/qmuparser/stable.h +++ b/src/libs/qmuparser/stable.h @@ -39,8 +39,11 @@ #ifdef Q_CC_MSVC #define _USE_MATH_DEFINES #endif + +#ifdef QT_CORE_LIB #include -#include +#endif + #endif #endif // STABLE_H