[Qt] Move listing of include paths and libs to pri files in sources
authorvestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jan 2012 12:53:33 +0000 (12:53 +0000)
committervestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jan 2012 12:53:33 +0000 (12:53 +0000)
commit78c7e195d919fddbed6a69c239b730c3479f32fb
treefa9988f8f29249023c8837152339ddfb4eedfb92
parent7cb800b04c9a3d007a0553b8443e052a2e56c4cf
[Qt] Move listing of include paths and libs to pri files in sources

Includepaths are sometimes modified by non-Qt contributors so keeping
them in files inside Sources makes it more likely that they are updated
along with project files for the other ports.

Using pri files instead of prf files for this also has the benefit that
the include() from the main target file can be parsed and followed by
Qt Creator -- something that does not work with load().

Dependency from a target to a library through the WEBKIT variable are
handled through forwarding-files in Tools/qmake/mkspecs/modules, which
set the source root of the module and include the right pri file.

Ideally we'd use the variant of include() that takes an optional
namespace to read the variables into, or the fromfile() function,
but both of these add an overhead of about 40% on the total qmake
runtime, due to making a deep copy of all the variables in the
project or re-reading all the prf files from scratch.

Reviewed by Simon Hausmann.
Reviewed by Ossy.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
19 files changed:
ChangeLog
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/JavaScriptCore.pri [moved from Tools/qmake/mkspecs/features/javascriptcore.prf with 100% similarity]
Source/JavaScriptCore/Target.pri
Source/JavaScriptCore/wtf/wtf.pri [moved from Tools/qmake/mkspecs/features/wtf.prf with 90% similarity]
Source/JavaScriptCore/wtf/wtf.pro
Source/WebCore/ChangeLog
Source/WebCore/Target.pri
Source/WebCore/WebCore.pri [moved from Tools/qmake/mkspecs/features/webcore.prf with 100% similarity]
Source/WebKit2/ChangeLog
Source/WebKit2/Target.pri
Source/WebKit2/WebKit2.pri [moved from Tools/qmake/mkspecs/features/webkit2.prf with 100% similarity]
Tools/ChangeLog
Tools/qmake/mkspecs/features/default_post.prf
Tools/qmake/mkspecs/modules/javascriptcore.prf [new file with mode: 0644]
Tools/qmake/mkspecs/modules/webcore.prf [new file with mode: 0644]
Tools/qmake/mkspecs/modules/webkit2.prf [new file with mode: 0644]
Tools/qmake/mkspecs/modules/wtf.prf [new file with mode: 0644]
WebKit.pro