WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
78109
[Qt] Make it possible to build WebKit without QtWidgets
https://bugs.webkit.org/show_bug.cgi?id=78109
Summary
[Qt] Make it possible to build WebKit without QtWidgets
Roland Takacs
Reported
2012-02-08 05:58:20 PST
QtWidgets dependencies must be eliminated to compile wtf/jsc/webcore without them.
Attachments
Patch
(22.73 KB, patch)
2012-06-25 10:49 PDT
,
Simon Hausmann
vestbo
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Hausmann
Comment 1
2012-02-16 05:02:27 PST
The goal of this bug is now to make it possible to build WebKit without QtWidgets, with the resulting library not containing the Qt WK1 APIs that depend on QtWidgets.
Simon Hausmann
Comment 2
2012-02-22 22:33:08 PST
Next up is moving the QStyle based themeing code out of WebCore, so that we can compile WebCore always without widgets (to avoid accidentally introducing new dependencies there).
Balazs Kelemen
Comment 3
2012-03-27 09:41:36 PDT
Is this fixed now? All dependencies are closed :)
Simon Hausmann
Comment 4
2012-03-29 07:44:30 PDT
(In reply to
comment #3
)
> Is this fixed now? All dependencies are closed :)
What's left is making it possible to build the entire library without QtWidgets, which would effectively disable the WebKit1 API and just leave us with a library that implements the WK2 QML element that is made accessible to applications via the QML plugin. The change is I think largely a build system change to not compile WK1 files if there are no widgets.
Simon Hausmann
Comment 5
2012-06-25 10:48:37 PDT
CC'ing Tor Arne for upcoming build system surgery :)
Simon Hausmann
Comment 6
2012-06-25 10:49:39 PDT
Created
attachment 149323
[details]
Patch
Tor Arne Vestbø
Comment 7
2012-06-25 14:11:04 PDT
Comment on
attachment 149323
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=149323&action=review
r=me with a few minor nitpicks
> Source/api.pri:141 > QMAKE_INTERNAL_INCLUDED_FILES *= WebKit2/Target.pri
You need the same hack for WebKit1.pri
> Tools/qmake/mkspecs/features/default_pre.prf:108 > + root_project_file: error("Building WebKit against Qt 5.0 requires the QtWidgets and QtPrintSupport modules. Disabling WebKit1.")
This is no longer a fatal error and should use warning instead of error. The message could also reflect this, eg, "WebKit1 requires the QtWidgets and QtPrintSupport modules. Disabling WebKit1."
Simon Hausmann
Comment 8
2012-06-25 21:11:46 PDT
(In reply to
comment #7
)
> (From update of
attachment 149323
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=149323&action=review
> > r=me with a few minor nitpicks
Thanks for the quick review :)
> > Source/api.pri:141 > > QMAKE_INTERNAL_INCLUDED_FILES *= WebKit2/Target.pri > > You need the same hack for WebKit1.pri
Good catch!
> > Tools/qmake/mkspecs/features/default_pre.prf:108 > > + root_project_file: error("Building WebKit against Qt 5.0 requires the QtWidgets and QtPrintSupport modules. Disabling WebKit1.") > > This is no longer a fatal error and should use warning instead of error. The message could also reflect this, eg, "WebKit1 requires the QtWidgets and QtPrintSupport modules. Disabling WebKit1."
Oops, excellent point. I had that commented out while testing ;)
Simon Hausmann
Comment 9
2012-06-25 21:51:10 PDT
Committed
r121228
: <
http://trac.webkit.org/changeset/121228
>
Csaba Osztrogonác
Comment 10
2012-06-26 06:18:03 PDT
(In reply to
comment #9
)
> Committed
r121228
: <
http://trac.webkit.org/changeset/121228
>
FYI: It broke the Windows build.
r121227
builds fine, and
r121230
is broken. You can find a full clean build log for
r121230
here:
http://build.webkit.org/builders/Qt%20Windows%2032-bit%20Debug/builds/45144
Simon Hausmann
Comment 11
2012-06-26 06:31:43 PDT
(In reply to
comment #10
)
> (In reply to
comment #9
) > > Committed
r121228
: <
http://trac.webkit.org/changeset/121228
> > > FYI: It broke the Windows build.
r121227
builds fine, and
r121230
is broken. > You can find a full clean build log for
r121230
here: >
http://build.webkit.org/builders/Qt%20Windows%2032-bit%20Debug/builds/45144
Yes. I'm working on a fix in
bug #88873
. I expected exactly this to happen :)
Simon Hausmann
Comment 12
2012-08-02 05:39:23 PDT
***
Bug 88168
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug