wxwidgets: add back the possibility to add packageconfig opengl for native
PATCH 1/1 wxwidgets: add back the possibility to add packageconfig opengl for native
Previous commit (ce604d453c9d119e992bdcd7e0e0a01960b8d2de) removed packageconfig opengl for -native. The removal was done in a way that it is not possible to append or add opengl from a .bbappend wxwidgets recipe [1].
This commit adds back the possibility to add opengl to packageconfig when native, using a weak assignment.
--- meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb +1 -1
@@ -52,7 +52,7 @@ PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gt " PACKAGECONFIG:append:class-target = " mediactrl ${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'webkit', '', d)}" -PACKAGECONFIG:remove:class-native = "opengl" +PACKAGECONFIG:class-native ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gtk', 'no_gui', d)}" # Note on toolkit-PACKAGECONFIGs: select exactly one of 'no_gui' / 'gtk' / 'qt' PACKAGECONFIG[no_gui] = "-DwxUSE_GUI=OFF,,,,,qt gtk opengl"