mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-09-18 21:21:56 +02:00
qtconnectivity: improve PACKAGECONFIG handling
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -3,14 +3,13 @@ require qt5.inc
|
|||||||
DEPENDS += "qtbase qtdeclarative"
|
DEPENDS += "qtbase qtdeclarative"
|
||||||
|
|
||||||
PACKAGECONFIG ??= ""
|
PACKAGECONFIG ??= ""
|
||||||
PACKAGECONFIG[bluez4] = ",,bluez4"
|
PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4"
|
||||||
|
|
||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
|
export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}"
|
||||||
# disable bluez test if it isn't enabled by PACKAGECONFIG
|
# disable bluez test if it isn't enabled by PACKAGECONFIG
|
||||||
sed -i 's/^qtCompileTest(bluez)/OE_BLUEZ_ENABLED:qtCompileTest(bluez)/g' ${S}/qtconnectivity.pro
|
sed -i 's/^qtCompileTest(bluez)/OE_BLUEZ_ENABLED:qtCompileTest(bluez)/g' ${S}/qtconnectivity.pro
|
||||||
}
|
}
|
||||||
|
|
||||||
EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'bluez4', 'CONFIG+=OE_BLUEZ_ENABLED', '', d)}"
|
|
||||||
|
|
||||||
LICENSE += "| GPL-2.0"
|
LICENSE += "| GPL-2.0"
|
||||||
LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed"
|
LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed"
|
||||||
|
|||||||
Reference in New Issue
Block a user