summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2014-06-14 02:01:57 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2014-06-25 16:02:18 +0200
commit82dbbfe81e6f85b7265f0b76b9682edf0acfbaea (patch)
tree638eb5b7e32eb5fe9ee659c42dc51ad6a38968de
parentaa8588a72e9c611bf98c9318397bc9a1a26a2655 (diff)
downloadmeta-qt5-82dbbfe81e6f85b7265f0b76b9682edf0acfbaea.tar.gz
qttools: make qtwebkit a PACKAGECONFIG and disable by default
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--recipes-qt/qt5/qttools.inc8
-rw-r--r--recipes-qt/qt5/qttools/0003-add-noqtwebkit-configuration.patch40
2 files changed, 47 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qttools.inc b/recipes-qt/qt5/qttools.inc
index d4d8017f..cd8a97f2 100644
--- a/recipes-qt/qt5/qttools.inc
+++ b/recipes-qt/qt5/qttools.inc
@@ -1,9 +1,10 @@
1require qt5.inc 1require qt5.inc
2 2
3DEPENDS += "qtbase qtdeclarative qtwebkit qtxmlpatterns" 3DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
4 4
5SRC_URI += " \ 5SRC_URI += " \
6 file://0002-assistant-help-fix-linking-of-dependent-libraries.patch \ 6 file://0002-assistant-help-fix-linking-of-dependent-libraries.patch \
7 file://0003-add-noqtwebkit-configuration.patch \
7" 8"
8 9
9# older copyright year than what e.g. qtbase is using now 10# older copyright year than what e.g. qtbase is using now
@@ -13,3 +14,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \
13 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" 14 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e"
14 15
15FILES_${PN}-examples = "${datadir}/${QT_DIR_NAME}/examples" 16FILES_${PN}-examples = "${datadir}/${QT_DIR_NAME}/examples"
17
18PACKAGECONFIG ??= ""
19PACKAGECONFIG[qtwebkit] = ",,qtwebkit"
20
21EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)}"
diff --git a/recipes-qt/qt5/qttools/0003-add-noqtwebkit-configuration.patch b/recipes-qt/qt5/qttools/0003-add-noqtwebkit-configuration.patch
new file mode 100644
index 00000000..3238d795
--- /dev/null
+++ b/recipes-qt/qt5/qttools/0003-add-noqtwebkit-configuration.patch
@@ -0,0 +1,40 @@
1From e6b77a5732610816948a8a860a9cb9e92b02c33e Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
3Date: Wed, 4 Jun 2014 11:28:16 +0200
4Subject: [PATCH] add noqtwebkit configuration
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Inappropiate [configuration]
10
11Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
12---
13 src/assistant/assistant/assistant.pro | 2 +-
14 src/designer/src/plugins/plugins.pro | 2 +-
15 2 files changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/src/assistant/assistant/assistant.pro b/src/assistant/assistant/assistant.pro
18index 5f96377..e461d4b 100644
19--- a/src/assistant/assistant/assistant.pro
20+++ b/src/assistant/assistant/assistant.pro
21@@ -1,4 +1,4 @@
22-qtHaveModule(webkitwidgets):!contains(QT_CONFIG, static) {
23+qtHaveModule(webkitwidgets):!contains(QT_CONFIG, static):!contains(QT_CONFIG, noqtwebkit) {
24 QT += webkitwidgets
25 } else {
26 DEFINES += QT_NO_WEBKIT
27diff --git a/src/designer/src/plugins/plugins.pro b/src/designer/src/plugins/plugins.pro
28index b7ee661..0c6e50a 100644
29--- a/src/designer/src/plugins/plugins.pro
30+++ b/src/designer/src/plugins/plugins.pro
31@@ -1,5 +1,5 @@
32 TEMPLATE = subdirs
33
34 # qtHaveModule(opengl): SUBDIRS += tools/view3d
35-qtHaveModule(webkitwidgets): SUBDIRS += qwebview
36+qtHaveModule(webkitwidgets):!contains(QT_CONFIG, noqtwebkit): SUBDIRS += qwebview
37 win32: qtHaveModule(axcontainer): SUBDIRS += activeqt
38--
391.8.3.1
40