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

When you compile QtWebKit separately from Qt5, you have access to heaps of compilation options such as --no-webkit2, --no-3d-rendering, --no-video, and others. It looks like when you compile WebKit as part of the Qt5 library, you are stuck with a predefined function configuration that you cannot change.

Is it possible to access configuration functions when compiling QtWebKit as part of a Qt5 distribution? How can I pass the listed parameters to a WebKit build from Qt5 build tools?

+3


source to share


1 answer


If you first compile Qt 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 a Makefile from WebKit.pro and run nmake. QtWebKit should now build with the features installed.



+1


source







All Articles