[Qt][WK2] Export QNetworkReply in the QtWebKit QML module.
[WebKit.git] / Source / WebKit.pro
index 0c541e3..741d476 100644 (file)
@@ -23,10 +23,15 @@ SUBDIRS += WebKit/qt/QtWebKit.pro
 webkit2 {
     exists($$PWD/WebKit2/WebProcess.pro): SUBDIRS += WebKit2/WebProcess.pro
     exists($$PWD/WebKit2/UIProcess/API/qt/tests): SUBDIRS += WebKit2/UIProcess/API/qt/tests
+    SUBDIRS += WebKit2/UIProcess/API/qt/qmlplugin
 }
 
-contains(QT_CONFIG, declarative) {
-    exists($$PWD/WebKit/qt/declarative): SUBDIRS += WebKit/qt/declarative
+exists($$PWD/WebKit/qt/declarative) {
+    lessThan(QT_MAJOR_VERSION, 5) {
+        contains(QT_CONFIG, declarative): SUBDIRS += WebKit/qt/declarative
+    } else {
+        contains(QT_CONFIG, qtquick1): SUBDIRS += WebKit/qt/declarative
+    }
 }
 
 exists($$PWD/WebKit/qt/tests): SUBDIRS += WebKit/qt/tests