[Qt] Make use of .qmake.cache for caching features
authorvestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jul 2012 15:23:20 +0000 (15:23 +0000)
committervestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Jul 2012 15:23:20 +0000 (15:23 +0000)
commit3586f7489a0feea1f01d52caa2ebe8b2a7ee384f
tree49dcef01c36c5a9834fb313356d14cfad60431c8
parent4bab719559e502e26028de5540fa7a1193864524
[Qt] Make use of .qmake.cache for caching features

Instead of loading() features from the files that need them (and re-running
a bunch of checks), we now run feature detection as part of configure.pro,
and have build-webkit write the computed feature-defines and CONFIG to
.qmake.cache, which is then loaded by qmake _before_ even defaults_pre
when building WebKit.pro.

At some point we'll be able to selectivly prevent running of config tests
in configure.pro, which means we don't need a separate code-path for
the build-webkit --help case.

We should also move the code in build-webkit that now uses .webkit.config
to detect clean builds, to use .qmake.cache, since we now store the same
thing there.

Original patch by Oswald Buddenhagen <oswald.buddenhagen@nokia.com>

https://bugs.webkit.org/show_bug.cgi?id=90461

Reviewed by Tor Arne Vestbø.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@121766 268f45cc-cd09-0410-ab3c-d52691b4dbfc
30 files changed:
ChangeLog
Source/QtWebKit.pro
Source/WTF/ChangeLog
Source/WTF/WTF.pri
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.pri
Source/WebCore/WebCore.pri
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/declarative/declarative.pro
Source/WebKit/qt/declarative/public.pri
Source/WebKit/qt/tests/qgraphicswebview/qgraphicswebview.pro
Source/WebKit2/ChangeLog
Source/WebKit2/DerivedSources.pri
Source/WebKit2/Target.pri
Source/api.pri
Source/tests.pri
Tools/ChangeLog
Tools/DumpRenderTree/qt/DumpRenderTree.pro
Tools/QtTestBrowser/QtTestBrowser.pro
Tools/Scripts/webkitdirs.pm
Tools/Tools.pro
Tools/WebKitTestRunner/InjectedBundle/DerivedSources.pri
Tools/WebKitTestRunner/InjectedBundle/Target.pri
Tools/WebKitTestRunner/Target.pri
Tools/qmake/.qmake.conf [new file with mode: 0644]
Tools/qmake/configure.pro
Tools/qmake/mkspecs/features/default_post.prf
Tools/qmake/mkspecs/features/default_pre.prf
Tools/qmake/mkspecs/features/features.prf
WebKit.pro