Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 1 | require mesa.inc |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 2 | |
| 3 | SUMMARY += " (OpenGL only, no EGL/GLES)" |
| 4 | |
| 5 | PROVIDES = "virtual/libgl virtual/mesa" |
| 6 | |
| 7 | S = "${WORKDIR}/mesa-${PV}" |
| 8 | |
| 9 | # At least one DRI rendering engine is required to build mesa. |
| 10 | # When no X11 is available, use osmesa for the rendering engine. |
| 11 | PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" |
| 12 | PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" |
| 13 | |
| 14 | # When NOT using X11, we need to make sure we have swrast available. |
| 15 | DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" |