mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-09-17 20:51:54 +02:00
qtquick1: fix qtwebkit support
40b7a93a3c ("qtquick1: allow to disable
qtwebkit support") allowed to disable qtwebkit but actually disabled it in
every cases.
Use the same mechanism as qttools to implement the feature.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
63f018e5a7
commit
ccae79be69
@@ -18,10 +18,12 @@ DEPENDS += "qtscript qtsvg qtxmlpatterns"
|
||||
# qttools
|
||||
|
||||
PACKAGECONFIG ??= "webkit"
|
||||
PACKAGECONFIG[webkit] = "CONFIG+=enable-webkit,CONFIG-=enable-webkit,qtwebkit"
|
||||
PACKAGECONFIG[webkit] = ",,qtwebkit"
|
||||
|
||||
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'webkit', '', 'CONFIG+=noqtwebkit', d)}"
|
||||
|
||||
do_configure_prepend() {
|
||||
sed -i 's#^qtHaveModule(webkitwidgets):#enable-webkit:qtHaveModule(webkitwidgets):#g' ${S}/src/imports/imports.pro
|
||||
sed -i 's#^qtHaveModule(webkitwidgets):#qtHaveModule(webkitwidgets):!contains(CONFIG, noqtwebkit):#g' ${S}/src/imports/imports.pro
|
||||
}
|
||||
|
||||
SRCREV = "e90625f00a3727ca1c89a94407b7686327d03c19"
|
||||
|
||||
Reference in New Issue
Block a user