[Qt] Make it possible to build WebKit without QtWidgets
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2012 04:47:14 +0000 (04:47 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2012 04:47:14 +0000 (04:47 +0000)
commit6c202d235e6c2185ddd8ebe4835314109335421b
tree123cbab8115f1e3d75278b78bf23514cdabb31e6
parentf6cf20c5a89d72cb439356fb6cd2a341f5a951c2
[Qt] Make it possible to build WebKit without QtWidgets
https://bugs.webkit.org/show_bug.cgi?id=78109

Reviewed by Tor Arne Vestbø.

.:

* Source/QtWebKit.pro: Don't build WK1 tests and examples if WK1 is disabled.
* Source/api.pri: Move WK1 sources away from here and use WEBKIT += webkit1 instead
* WebKit.pro: Add WK1 to SUBDIRS unless no_webkit1 is set.

Source/WebKit:

Moved WebKit1 sources into a separate static library. Only WK1
depends on QtWidgets.

* WebKit1.pri: Added.
* WebKit1.pro: Added.

Source/WebKit2:

* WebKit2.pri: Add missing WK2 specific dependencies.
* qt/MainQt.cpp: Do the QStyle initialization hook only if we are
compiling with QtWidgets support.
(WebKit):
(main):

Tools:

* Tools.pro: Disable various tools that depend on WK1.
* qmake/mkspecs/features/default_post.prf: Add WK1 as supported static lib in WEBKIT
* qmake/mkspecs/features/default_pre.prf: Disable WK1 if QtWidgets is not built.
* qmake/mkspecs/modules/webkit1.prf: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@121228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
ChangeLog
Source/QtWebKit.pro
Source/WebKit/ChangeLog
Source/WebKit/WebKit1.pri [new file with mode: 0644]
Source/WebKit/WebKit1.pro [new file with mode: 0644]
Source/WebKit2/ChangeLog
Source/WebKit2/WebKit2.pri
Source/WebKit2/qt/MainQt.cpp
Source/api.pri
Tools/ChangeLog
Tools/Tools.pro
Tools/qmake/mkspecs/features/default_post.prf
Tools/qmake/mkspecs/features/default_pre.prf
Tools/qmake/mkspecs/modules/webkit1.prf [new file with mode: 0644]
WebKit.pro