Skip to content

Commit

Permalink
Significantly improve the build time for the manualtests
Browse files Browse the repository at this point in the history
- share moc and object files for the manualtests with arora
- Build less when possible
- Include specific qt includes rather then all of <Qt/Gui> etc
  • Loading branch information
icefox committed Mar 23, 2009
1 parent 2063998 commit a862efc
Show file tree
Hide file tree
Showing 24 changed files with 43 additions and 32 deletions.
2 changes: 1 addition & 1 deletion manualtests/bookmarks/bookmarks.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ include(../manualtests.pri)
include(../../autotests/modeltest/modeltest.pri)

# Input
SOURCES += main.cpp
SOURCES += main_bookmarks.cpp
HEADERS +=
File renamed without changes.
3 changes: 2 additions & 1 deletion manualtests/downloadmanager/downloadmanager.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ INCLUDEPATH += .
include(../manualtests.pri)

# Input
SOURCES += main.cpp
RESOURCES =
SOURCES += main_downloadmanager.cpp
HEADERS +=
File renamed without changes.
3 changes: 2 additions & 1 deletion manualtests/googlesuggest/googlesuggest.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ include(../../install.pri)
QT = core network

# Input
RESOURCES =
FORMS =
SOURCES = main.cpp googlesuggest.cpp
SOURCES = main_googlesuggest.cpp googlesuggest.cpp
HEADERS = googlesuggest.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
* Boston, MA 02110-1301 USA
*/

#include <QtCore/QtCore>
#include <qtimer.h>
#include <qtextstream.h>
#include <qcoreapplication.h>
#include <qstringlist.h>
#include <qdebug.h>
#include <qnetworkaccessmanager.h>

#include "googlesuggest.h"
Expand Down Expand Up @@ -76,5 +80,5 @@ int main(int argc, char **argv)
return application.exec();
}

#include "main.moc"
#include "main_googlesuggest.moc"

2 changes: 1 addition & 1 deletion manualtests/history/history.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ include(../manualtests.pri)
include(../../autotests/modeltest/modeltest.pri)

# Input
SOURCES += main.cpp
SOURCES += main_history.cpp
HEADERS +=
File renamed without changes.
3 changes: 2 additions & 1 deletion manualtests/lineedit/lineedit.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ INCLUDEPATH += .
include(../manualtests.pri)

# Input
RESOURCES =
FORMS = dialog.ui
SOURCES = main.cpp lineedit.cpp
SOURCES = main_lineedit.cpp lineedit.cpp
HEADERS = lineedit.h lineedit_p.h proxystyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* Boston, MA 02110-1301 USA
*/

#include <QtGui>
#include <qtoolbutton.h>
#include <qdebug.h>

#include <lineedit.h>
#include "ui_dialog.h"
Expand Down Expand Up @@ -137,5 +138,5 @@ int main(int argc,char ** argv)
}
}

#include "main.moc"
#include "main_lineedit.moc"

2 changes: 1 addition & 1 deletion manualtests/locationbar/locationbar.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ INCLUDEPATH += .
include(../manualtests.pri)

# Input
SOURCES += main.cpp
SOURCES += main_locationbar.cpp
HEADERS +=

File renamed without changes.
7 changes: 0 additions & 7 deletions manualtests/manualtests.pri
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,3 @@ win32: CONFIG += console
mac:CONFIG -= app_bundle

include($$PWD/../src/src.pri)

RCC_DIR = $$PWD/.rcc
UI_DIR = $$PWD/.ui

# can't share main.cpp objects of course
OBJECTS_DIR = .obj
MOC_DIR = .moc
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ int main(int argc, char **argv)
return app.exec();
}

#include "main.moc"
#include "main_modelmenu.moc"

2 changes: 1 addition & 1 deletion manualtests/modelmenu/modelmenu.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ INCLUDEPATH += .
include(../manualtests.pri)

# Input
SOURCES += main.cpp
SOURCES += main_modelmenu.cpp
HEADERS +=
File renamed without changes.
8 changes: 6 additions & 2 deletions manualtests/searchlineedit/searchlineedit.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ INCLUDEPATH += .
include(../manualtests.pri)

# Input
SOURCES += main.cpp
HEADERS +=
RESOURCES =
FORMS =
SOURCES = searchbutton.cpp clearbutton.cpp lineedit.cpp searchlineedit.cpp
HEADERS = searchbutton.h clearbutton.h lineedit.h lineedit_p.h searchlineedit.h

SOURCES += main_searchlineedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
* SUCH DAMAGE.
*/

#include <QtGui>
#include <qplaintextedit.h>
#include <qdebug.h>

#include <singleapplication.h>

Expand Down
6 changes: 4 additions & 2 deletions manualtests/singleapplication/singleapplication.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ INCLUDEPATH += .
include(../manualtests.pri)

# Input
SOURCES = main.cpp singleapplication.cpp
HEADERS = singleapplication.h
RESOURCES =
FORMS =
SOURCES = main_singleapplication.cpp singleapplication.cpp
HEADERS = singleapplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* Boston, MA 02110-1301 USA
*/

#include <QtGui/QtGui>
#include <qapplication.h>

#include "squeezelabel.h"

int main(int argc, char **argv)
Expand Down
4 changes: 3 additions & 1 deletion manualtests/squeezelabel/squeezelabel.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ INCLUDEPATH += .
include(../manualtests.pri)

# Input
SOURCES = main.cpp squeezelabel.cpp
RESOURCES =
FORMS =
SOURCES = main_squeezelabel.cpp squeezelabel.cpp
HEADERS = squeezelabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ int main(int argc, char **argv)
return application.exec();
}

#include "main.moc"
#include "main_webviewsearch.moc"
2 changes: 1 addition & 1 deletion manualtests/webviewsearch/webviewsearch.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ INCLUDEPATH += .

include(../manualtests.pri)

SOURCES += main.cpp
SOURCES += main_webviewsearch.cpp
HEADERS +=
8 changes: 4 additions & 4 deletions src/src.pri
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ win32 : Debug : CONFIG += console
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD

RCC_DIR = .rcc
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
RCC_DIR = $$PWD/.rcc
UI_DIR = $$PWD/.ui
MOC_DIR = $$PWD/.moc
OBJECTS_DIR = $$PWD/.obj

QT += webkit network

Expand Down

0 comments on commit a862efc

Please sign in to comment.