Permalink
Browse files

[355] Use precompiled headers to speed-up build

  • Loading branch information...
1 parent f8aaf85 commit ac9ce97223a6d3318b1b48ff38e6c5307a9ced4c @Tasssadar committed May 15, 2012
Showing with 31 additions and 3 deletions.
  1. +5 −2 Lorris.pro
  2. +1 −0 src/LorrisAnalyzer/storage.h
  3. +24 −0 src/pch.h
  4. +1 −1 src/revision.h
View
@@ -3,7 +3,7 @@
# -------------------------------------------------
QT += gui core network script
TARGET = Lorris
-CONFIG += uitools
+CONFIG += uitools precompile_header
CONFIG(debug, debug|release):DESTDIR = $$PWD/bin/debug
else:DESTDIR = $$PWD/bin/release
OBJECTS_DIR = $$PWD/obj
@@ -189,7 +189,8 @@ HEADERS += src/ui/mainwindow.h \
src/LorrisAnalyzer/datafileparser.h \
src/LorrisAnalyzer/widgetarea.h \
src/LorrisAnalyzer/storage.h \
- src/LorrisShupito/overvccdialog.h
+ src/LorrisShupito/overvccdialog.h \
+ src/pch.h
win32 {
INCLUDEPATH += dep/SDL/include
@@ -260,3 +261,5 @@ RC_FILE = src/winicon.rc
OTHER_FILES += \
dep/qextserialport/src/qextserialport.pri
+
+PRECOMPILED_HEADER = src/pch.h
@@ -12,6 +12,7 @@
#include <vector>
#include <QByteArray>
#include <QObject>
+#include <QByteArray>
#include "packet.h"
View
@@ -0,0 +1,24 @@
+/**********************************************
+** This file is part of Lorris
+** http://tasssadar.github.com/Lorris/
+**
+** See README and COPYING
+***********************************************/
+
+#if defined __cplusplus
+ #include <vector>
+ #include <set>
+ #include <QLabel>
+ #include <QPushButton>
+ #include <QString>
+ #include <QVBoxLayout>
+ #include <QHBoxLayout>
+
+ #ifdef Q_OS_WIN
+ #include <SDL.h>
+ #else // use lib from OS on other systems
+ #include <SDL/SDL.h>
+ #endif
+ #include "common.h"
+ #include "shared/hexfile.h"
+#endif
View
@@ -8,5 +8,5 @@
#ifndef REVISION_H
#define REVISION_H
#define VERSION "0.5.0-dev"
- #define REVISION 354
+ #define REVISION 355
#endif // REVISION_H

0 comments on commit ac9ce97

Please sign in to comment.