[Development] The final mile

Hausmann Simon Simon.Hausmann at digia.com
Sun Dec 2 15:09:15 CET 2012


Apologies for the top-quote, handicapped with web access right now :(

Regarding your questions I'm positive:

    (1) QtWebKit and QtWebKitWidgets are using all the features of the Qt5 build system for module creation, they behave like any other module.
    (2) QWebElement and QWebSettings are indeed in include/QtWebKit and QWebView is in include/QtWebKitWidgets, i.e. the module split is
present on the include level, too.
    (3) I do see see two cmake subdirs in lib/cmake, Qt5WebKitWidgets and Qt5WebKit with two .cmake files each.
    (4) Yes, the libraries like lib/libQt5WebKit.* and lib/libQt5WebKitWidgets.* do exist (that's the whole point of the split :)


From: development-bounces+simon.hausmann=digia.com at qt-project.org [development-bounces+simon.hausmann=digia.com at qt-project.org] on behalf of Stephen Kelly [stephen.kelly at kdab.com]
Sent: Sunday, December 02, 2012 1:53 PM
To: development at qt-project.org
Subject: Re: [Development] The final mile

On Sunday, December 02, 2012 12:27:18 Hausmann Simon wrote:
> Hi,
> I can try to add some clarifications.
> It is our intention to make it so that when you write
>     QT += webkitwidgets

Did you also consider how you might have to change how the cmake files are

Do you now generate both lib/cmake/QtWebKit/QtWebKitConfig.cmake and
lib/cmake/QtWebKitWidgets/QtWebKitWidgetsConfig.cmake ?

Do the directories include/QtWebKitWidgets and include/QtWebKit exist and
contain corresponding headers? Eg does include/QtWebKitWidgets/QWebView and
include/QtWebKit/QWebElement exist, for example?

Do libraries like lib/libQt5WebKit.* and lib/libQt5WebKitWidgets.* exist?

If not then you may be generating bogus broken cmake files for QtWebKit now.

Please add a unit test to the webkit test system for the cmake stuff. See for
example tests/auto/cmake in the qtscript repo for how that's done in the Qt CI
system. For webkit, the cmake.pro can probably just be the same, and the
CMakeLists.txt would look something like this:

 cmake_minimum_required(VERSION 2.8)



 find_package(Qt5Core REQUIRED)



   WebKit QWebView
   WebKitWidgets QWebElement


Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
** Qt Developer Conference: http://qtconference.kdab.com/ **

More information about the Development mailing list