diff options
author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2016-02-03 17:12:39 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-08 14:19:10 +0100 |
commit | 909858baf064216a3b221edb59b40cc93d536a44 (patch) | |
tree | 98c17fe59d2fe43d1200d8e590bcd793dc893f4c /recipes-qt/qt5 | |
parent | 8e70eeb90910b46057fd29a16858de93d42717d5 (diff) | |
download | meta-qt5-909858baf064216a3b221edb59b40cc93d536a44.tar.gz |
qt5: use common PACKAGECONFIG to build examples
Each Qt module's examples can now be enabled with PACKAGECONFIG.
Replace the webkit patch with a PACKAGECONFIG option and follow
common practice by not building QtWayland examples by default,
those can be enabled in a .bbappend with PACKAGECONFIG += "examples"
Enabling PACKAGECONFIG[examples] in qtbase, will still cause every
Qt module to build their examples.
Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5')
-rw-r--r-- | recipes-qt/qt5/qt5.inc | 3 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwayland_git.bb | 2 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwebkit-examples/0001-qtwebkit-examples-enable-building-examples-by-defaul.patch | 29 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwebkit-examples_git.bb | 4 |
4 files changed, 4 insertions, 34 deletions
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc index ce9d976c..70e4b308 100644 --- a/recipes-qt/qt5/qt5.inc +++ b/recipes-qt/qt5/qt5.inc | |||
@@ -5,6 +5,9 @@ inherit qmake5 | |||
5 | 5 | ||
6 | PACKAGECONFIG_OPENSSL ?= "openssl" | 6 | PACKAGECONFIG_OPENSSL ?= "openssl" |
7 | 7 | ||
8 | PACKAGECONFIG[examples] = "" | ||
9 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', '', d)}" | ||
10 | |||
8 | # we don't want conflicts with qt4 | 11 | # we don't want conflicts with qt4 |
9 | OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}" | 12 | OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}" |
10 | OE_QMAKE_PATH_ARCHDATA = "${OE_QMAKE_PATH_QT_ARCHDATA}" | 13 | OE_QMAKE_PATH_ARCHDATA = "${OE_QMAKE_PATH_QT_ARCHDATA}" |
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb index 059c2dbc..128794c9 100644 --- a/recipes-qt/qt5/qtwayland_git.bb +++ b/recipes-qt/qt5/qtwayland_git.bb | |||
@@ -20,11 +20,9 @@ DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native ${XKB_D | |||
20 | 20 | ||
21 | QT_WAYLAND_CONFIG ?= "wayland-compositor" | 21 | QT_WAYLAND_CONFIG ?= "wayland-compositor" |
22 | QT_WAYLAND_DEFINES ?= "" | 22 | QT_WAYLAND_DEFINES ?= "" |
23 | QT_WAYLAND_BUILD_PARTS ?= "examples" | ||
24 | 23 | ||
25 | EXTRA_QMAKEVARS_PRE += "CONFIG+=${QT_WAYLAND_CONFIG}" | 24 | EXTRA_QMAKEVARS_PRE += "CONFIG+=${QT_WAYLAND_CONFIG}" |
26 | EXTRA_QMAKEVARS_PRE += "DEFINES+=${QT_WAYLAND_DEFINES}" | 25 | EXTRA_QMAKEVARS_PRE += "DEFINES+=${QT_WAYLAND_DEFINES}" |
27 | EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=${QT_WAYLAND_BUILD_PARTS}" | ||
28 | 26 | ||
29 | FILES_${PN}-plugins += " \ | 27 | FILES_${PN}-plugins += " \ |
30 | ${OE_QMAKE_PATH_PLUGINS}/*/*/*${SOLIBSDEV} \ | 28 | ${OE_QMAKE_PATH_PLUGINS}/*/*/*${SOLIBSDEV} \ |
diff --git a/recipes-qt/qt5/qtwebkit-examples/0001-qtwebkit-examples-enable-building-examples-by-defaul.patch b/recipes-qt/qt5/qtwebkit-examples/0001-qtwebkit-examples-enable-building-examples-by-defaul.patch deleted file mode 100644 index 3034f950..00000000 --- a/recipes-qt/qt5/qtwebkit-examples/0001-qtwebkit-examples-enable-building-examples-by-defaul.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From 8900f45818b7f181d2b57ceebdf086c78d2ee6b0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Tue, 8 Oct 2013 00:18:10 -0400 | ||
4 | Subject: [PATCH] qtwebkit-examples: enable building examples by default | ||
5 | |||
6 | Examples are provided in sources, but the build for them is not enabled by | ||
7 | default. Since example binaries are packaged separately to ${PN}-examples, | ||
8 | having them built by default makes more sense. | ||
9 | |||
10 | Upstream-Status: Inappropriate [configuration] | ||
11 | |||
12 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
13 | --- | ||
14 | qtwebkit-examples.pro | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/qtwebkit-examples.pro b/qtwebkit-examples.pro | ||
18 | index 3fcecf1..2da8a36 100644 | ||
19 | --- a/qtwebkit-examples.pro | ||
20 | +++ b/qtwebkit-examples.pro | ||
21 | @@ -2,4 +2,4 @@ requires(qtHaveModule(webkit)) | ||
22 | |||
23 | load(qt_parts) | ||
24 | |||
25 | -SUBDIRS += doc | ||
26 | +SUBDIRS += doc examples | ||
27 | -- | ||
28 | 2.6.1 | ||
29 | |||
diff --git a/recipes-qt/qt5/qtwebkit-examples_git.bb b/recipes-qt/qt5/qtwebkit-examples_git.bb index f9150838..a0d4e9fd 100644 --- a/recipes-qt/qt5/qtwebkit-examples_git.bb +++ b/recipes-qt/qt5/qtwebkit-examples_git.bb | |||
@@ -13,9 +13,7 @@ LIC_FILES_CHKSUM = " \ | |||
13 | file://examples/webkitwidgets/imageanalyzer/imageanalyzer.cpp;endline=39;md5=b0739af76072fbe303dc04b6941e054f \ | 13 | file://examples/webkitwidgets/imageanalyzer/imageanalyzer.cpp;endline=39;md5=b0739af76072fbe303dc04b6941e054f \ |
14 | " | 14 | " |
15 | 15 | ||
16 | SRC_URI += " \ | 16 | PACKAGECONFIG ?= "examples" |
17 | file://0001-qtwebkit-examples-enable-building-examples-by-defaul.patch \ | ||
18 | " | ||
19 | 17 | ||
20 | DEPENDS += "qtwebkit qtxmlpatterns" | 18 | DEPENDS += "qtwebkit qtxmlpatterns" |
21 | RDEPENDS_${PN}-examples += "qtwebkit-qmlplugins" | 19 | RDEPENDS_${PN}-examples += "qtwebkit-qmlplugins" |