diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2018-07-04 10:20:19 +0300 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2018-12-21 21:01:45 +0000 |
commit | 725fc1f98e0140dad5d03725c80fa096f2886c0b (patch) | |
tree | 6bd32e5768b8d065f67c3237b34a37124a27f7ca /recipes-qt/qt5 | |
parent | b7b0a78d8e5aef81f3cc1089318293d1f238e7df (diff) |
qtxmlpatterns: add qtdeclarative PACKAGECONFIG
Signed-off-by: Mikko Gronoff <mikko.gronoff@qt.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5')
-rw-r--r-- | recipes-qt/qt5/qtxmlpatterns_git.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtxmlpatterns_git.bb b/recipes-qt/qt5/qtxmlpatterns_git.bb index 1957fafd..d9a1a9a9 100644 --- a/recipes-qt/qt5/qtxmlpatterns_git.bb +++ b/recipes-qt/qt5/qtxmlpatterns_git.bb @@ -14,6 +14,17 @@ LIC_FILES_CHKSUM = " \ DEPENDS += "qtbase" +PACKAGECONFIG ?= "" +PACKAGECONFIG_class-target ?= "qtdeclarative" +PACKAGECONFIG[qtdeclarative] = ",,qtdeclarative" + +do_configure_prepend() { + # disable qtdeclarative test if it isn't enabled by PACKAGECONFIG + sed -e 's/qtHaveModule(qml)/OE_QTDECLARATIVE_ENABLED/' -i ${S}/src/src.pro +} + +EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'qtdeclarative', 'CONFIG+=OE_QTDECLARATIVE_ENABLED', '', d)}" + SRCREV = "274f162fd41c4de88df7efda9e6ec16a1ca968bc" BBCLASSEXTEND =+ "native nativesdk" |