python3-wxgtk4: add distro feature check to match dependency

Add REQUIRED_DISTRO_FEATURE to match wxwidgets,
this fix build error (not buildable target) when x11 is not supported

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
This commit is contained in:
Davide Gardenal 2022-04-04 14:44:25 +02:00 committed by Trevor Gamblin
parent 173352732d
commit b1645981ff

View File

@ -4,6 +4,10 @@ HOMEPAGE = "http://www.wxpython.org"
LICENSE = "WXwindows" LICENSE = "WXwindows"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917"
inherit features_check
REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'no_gui', '', 'x11', d)}"
DEPENDS = "wxwidgets-native wxwidgets" DEPENDS = "wxwidgets-native wxwidgets"
PYPI_PACKAGE = "wxPython" PYPI_PACKAGE = "wxPython"