# Copyright (C) 2018 Digi International PROVIDES_remove_imxgpu = "virtual/egl" PROVIDES_remove_imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" PACKAGECONFIG_remove_imxgpu = "egl gbm" PACKAGECONFIG_remove_imxgpu3d = "gles" BACKEND = \ "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ 'fb', d), d)}" do_install_append_imxgpu3d () { rm -f ${D}${includedir}/GL/glx.h \ ${D}${includedir}/GL/glxext.h if [ "${BACKEND}" = "x11" ]; then rm -f ${D}${libdir}/pkgconfig/gl.pc fi } do_install_append_imxgpu () { rm -f ${D}${includedir}/KHR } do_install_append () { if [ "${BACKEND}" = "wayland" ]; then rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc rm -f ${D}${libdir}/libwayland-egl* fi }