[Interest] How to remove some features from QtWebKit.

Kim Min-chul nusevoli at gmail.com
Thu Apr 30 11:07:11 CEST 2015


Hi, I would like to share what i found out.
Unfortunately, i didn't get the result that i want.

I found out the way to set ENBLE_VIDEO=0 in Makefile.WebCore.Target.
qtwebkit is still playing video although ENABLE_VIDEO is 0.
I don't know why.
if you know why, please let me know.


I guess that WEBKIT_CONFIG variable contains configurations for features.

I changed qtwebkit/Tools/qmake/mkspecs/features/features.prf.
There is the configuration to enable video feature around 110 line.

!enable?(video):qtHaveModule(multimediawidgets) {
WEBKIT_CONFIG += video use_qt_multimedia
}

I disabled this and rebuilt qtwebkit.
I checked DEFINES in Makefile.WebCore.Target to see if ENABLE_VIDEO is 0.
It was 0. ( -DENABLE_VIDEO=0)


I would like to disable most of features except for css*, inspector*,
websocket.
I want to make the simplest version.

I appreciate you in advance.

2015-04-28 15:33 GMT+09:00 Kim Min-chul <nusevoli at gmail.com>:

> Hi
>
> I would like to get some advices or suggestions for removing some features
> from qtwebkit.
>
> I am using qtwebkit(qt 5.2.1). I think that it spends too much memory.
> The reason is why I want to remove some features like Video and Audio.
> Of course it will be good for removing other features in order to let down
> memory and other resources.
>
> I found features.pri file
> (qt-everywhere-opensource-src-5.2.1/qtwebkit/Tools/qmake/mkspecs).
> and I guessed that FEATURE_DEFAULTS enabled some features.
> but, ENABLE_VIDEO was already 0 (ENABLE_VIDEO=0) and qtwebkit is playing
> html5 video well.
>
> Then, I saw Makefile.WebCore.Target file
> (qt-everywhere-opensource-src-5.2.1/qtwebkit/Source/WebCore/Makefile.WebCore.Target).
> but, ENBLE_VIDEO is 1 ( -DENABLE_VIDEO=1) in DEFINES variable.
>
> I would like to know what file changed this option and qtwebkit can be
> working well without this feature if I disable this option.
>
> Can I remove these features from qtwebkit? Is it possible?
> Please let me know how to remove this feature.
>
> I appreciate you in advance.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150430/12d3deef/attachment.html>


More information about the Interest mailing list