diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2018-11-08 10:20:01 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2018-11-08 09:50:18 +0000 |
commit | 9c65c21168765dca83966516551d00d5dccc0682 (patch) | |
tree | d600960efcbb1bd5f591489c1bcf2869b7dc29fd | |
parent | a5fd581a113cd27af08099e132d68993e62b9dfb (diff) | |
download | meta-qt5-9c65c21168765dca83966516551d00d5dccc0682.tar.gz |
qtxmlpatterns: reverse dependency to qtdeclarative
xmllistmodel was moved from qtdeclarative to qtxmlpatterns, which
also reverses the dependency of the two modules.
Fixes: QTBUG-71656
Change-Id: Ic0a506b634ee72e0122fc1cbb5dd459c4faad735
Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io>
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
-rw-r--r-- | recipes-qt/qt5/qtdeclarative_git.bb | 11 | ||||
-rw-r--r-- | recipes-qt/qt5/qtxmlpatterns_git.bb | 10 |
2 files changed, 11 insertions, 10 deletions
diff --git a/recipes-qt/qt5/qtdeclarative_git.bb b/recipes-qt/qt5/qtdeclarative_git.bb index f9ab3741..fd79ecc7 100644 --- a/recipes-qt/qt5/qtdeclarative_git.bb +++ b/recipes-qt/qt5/qtdeclarative_git.bb | |||
@@ -14,25 +14,16 @@ LIC_FILES_CHKSUM = " \ | |||
14 | 14 | ||
15 | DEPENDS += "qtbase" | 15 | DEPENDS += "qtbase" |
16 | 16 | ||
17 | PACKAGECONFIG ??= "qtxmlpatterns qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}" | 17 | PACKAGECONFIG ??= "qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}" |
18 | PACKAGECONFIG[qtxmlpatterns] = ",,qtxmlpatterns" | ||
19 | PACKAGECONFIG[qml-debug] = "-qml-debug,-no-qml-debug" | 18 | PACKAGECONFIG[qml-debug] = "-qml-debug,-no-qml-debug" |
20 | PACKAGECONFIG[qml-network] = "-qml-network, -no-qml-network" | 19 | PACKAGECONFIG[qml-network] = "-qml-network, -no-qml-network" |
21 | PACKAGECONFIG[static] = ",,qtdeclarative-native" | 20 | PACKAGECONFIG[static] = ",,qtdeclarative-native" |
22 | 21 | ||
23 | do_configure_prepend() { | ||
24 | # disable qtxmlpatterns test if it isn't enabled by PACKAGECONFIG | ||
25 | sed -e 's/^\(qtHaveModule(xmlpatterns)\)/OE_QTXMLPATTERNS_ENABLED:\1/' -i ${S}/src/imports/imports.pro | ||
26 | sed -e 's/^\(!qtHaveModule(xmlpatterns)\)/!OE_QTXMLPATTERNS_ENABLED|\1/' -i ${S}/tests/auto/quick/quick.pro | ||
27 | } | ||
28 | |||
29 | do_install_append_class-nativesdk() { | 22 | do_install_append_class-nativesdk() { |
30 | # qml files not needed in nativesdk | 23 | # qml files not needed in nativesdk |
31 | rm -rf ${D}${OE_QMAKE_PATH_QML} | 24 | rm -rf ${D}${OE_QMAKE_PATH_QML} |
32 | } | 25 | } |
33 | 26 | ||
34 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'qtxmlpatterns', 'CONFIG+=OE_QTXMLPATTERNS_ENABLED', '', d)}" | ||
35 | |||
36 | SRCREV = "0477a057fd02050fd330760bf046f5e0e91a9331" | 27 | SRCREV = "0477a057fd02050fd330760bf046f5e0e91a9331" |
37 | 28 | ||
38 | BBCLASSEXTEND =+ "native nativesdk" | 29 | BBCLASSEXTEND =+ "native nativesdk" |
diff --git a/recipes-qt/qt5/qtxmlpatterns_git.bb b/recipes-qt/qt5/qtxmlpatterns_git.bb index 5c654731..f4b7f427 100644 --- a/recipes-qt/qt5/qtxmlpatterns_git.bb +++ b/recipes-qt/qt5/qtxmlpatterns_git.bb | |||
@@ -14,6 +14,16 @@ LIC_FILES_CHKSUM = " \ | |||
14 | 14 | ||
15 | DEPENDS += "qtbase" | 15 | DEPENDS += "qtbase" |
16 | 16 | ||
17 | PACKAGECONFIG ?= "qtdeclarative" | ||
18 | PACKAGECONFIG[qtdeclarative] = ",,qtdeclarative" | ||
19 | |||
20 | do_configure_prepend() { | ||
21 | # disable qtdeclarative test if it isn't enabled by PACKAGECONFIG | ||
22 | sed -e 's/qtHaveModule(qml)/OE_QTDECLARATIVE_ENABLED/' -i ${S}/src/src.pro | ||
23 | } | ||
24 | |||
25 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'qtdeclarative', 'CONFIG+=OE_QTDECLARATIVE_ENABLED', '', d)}" | ||
26 | |||
17 | SRCREV = "803b4cafe125ea18e50e3e6557920b6d705e67f0" | 27 | SRCREV = "803b4cafe125ea18e50e3e6557920b6d705e67f0" |
18 | 28 | ||
19 | BBCLASSEXTEND =+ "native nativesdk" | 29 | BBCLASSEXTEND =+ "native nativesdk" |