[Interest] qmake exclude modules

Phil Hannent phil at hannent.co.uk
Wed Sep 18 14:46:28 CEST 2013


On 18 September 2013 11:28, Mandeep Sandhu <mandeepsandhu.chd at gmail.com> wrote:
> Will webkit work w/o network?
>
> I think it depends on the network module. Same might be true for other
> modules, but I'm not sure.
>
> HTH,
> -mandeep
>
>
> On Wed, Sep 18, 2013 at 3:19 PM, Phil Hannent <phil at hannent.co.uk> wrote:
>>
>> Hi,
>>
>> I am trying to remove some Qt modules that I don't need at the moment,
>> however qmake isn't outputting a Makefile with the expected syntax. In
>> my .pro file I have:
>>
>> QT += core gui webkit
>>
>> greaterThan(QT_MAJOR_VERSION, 4) {
>>     message("Using QT5")
>>     QT += widgets
>>     QT += webkitwidgets
>>     QT -= printsupport
>>     QT -= sensors
>>     QT -= qml
>>     QT -= opengl
>>     QT -= quick
>>     QT -= network
>>     QT -= multimedia
>>     QT -= multimediawidgets
>> }
>>
>> CONFIG   = qt warn_on debug_and_release
>>
>> So I am expecting things like QtSensors not to be in the includes or
>> LIBS of the Makefile.Release however they are there. Is there some
>> sort of dependency with webkit that drags in the other modules?
Ok, so I went digging into qt_lib_webkit.pri file and found:

QT.webkit.depends = core gui network

and then:

QT.webkit.run_depends = sensors qml quick sql core gui multimedia

That's really strange, why would the two be different and why would
qml and quick be required?

Regards
Phil Hannent



More information about the Interest mailing list