r4w8173
r4w8173

Reputation: 608

How to enable/disable WebKit features when compiling as part of Qt5 library

When you compile QtWebKit separately from Qt5, you have access to a bunch of compilation options, like --no-webkit2, --no-3d-rendering, --no-video and others. It seems that when you compile WebKit as part of the Qt5 library, you get stuck with predefined feature configuration which you cannot modify.

Is it possible to access the configuration features when you compile QtWebKit as part of the Qt5 source distribution? How can you pass the mentioned parameters to the WebKit build from the Qt5 build tools?

Upvotes: 4

Views: 7699

Answers (1)

r4w8173
r4w8173

Reputation: 608

If you compile Qt first without QtWebKit (configure -skip qtwebkit), you can modify Tools/qmake/mkspecs/features/features.pri from the QtWebKit source to enable or disable features. Then generate Makefile from WebKit.pro and run nmake. Now QtWebKit should build with the features you've set.

Upvotes: 1

Related Questions