Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 1 | require mesa.inc |
| 2 | |
| 3 | SUMMARY += " (OpenGL only, no EGL/GLES)" |
| 4 | |
| 5 | PROVIDES = "virtual/libgl virtual/mesa" |
| 6 | |
| 7 | S = "${WORKDIR}/mesa-${PV}" |
| 8 | |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 9 | TARGET_CFLAGS = "-I${STAGING_INCDIR}/drm" |
| 10 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 11 | # At least one DRI rendering engine is required to build mesa. |
| 12 | # When no X11 is available, use osmesa for the rendering engine. |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 13 | PACKAGECONFIG ??= "opengl gallium ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" |
| 14 | PACKAGECONFIG:class-target = "opengl gallium ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 15 | |