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 authored and Trevor Gamblin committed 2022-04-06 14:55:16 -04:00
1 parent 173352732d
commit b1645981ff
1 file changed
+4
@@ -4,6 +4,10 @@ HOMEPAGE = "http://www.wxpython.org"
LICENSE = "WXwindows"
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"
PYPI_PACKAGE = "wxPython"