blob: ca160f1bfce80232df684a25ac3ab01135f44008 [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001require mesa.inc
2
3SUMMARY += " (OpenGL only, no EGL/GLES)"
4
5PROVIDES = "virtual/libgl virtual/mesa"
6
7S = "${WORKDIR}/mesa-${PV}"
8
Andrew Geisslerc5535c92023-01-27 16:10:19 -06009TARGET_CFLAGS = "-I${STAGING_INCDIR}/drm"
10
Andrew Geissler9aee5002022-03-30 16:27:02 +000011# At least one DRI rendering engine is required to build mesa.
12# When no X11 is available, use osmesa for the rendering engine.
Andrew Geissler517393d2023-01-13 08:55:19 -060013PACKAGECONFIG ??= "opengl gallium ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}"
14PACKAGECONFIG:class-target = "opengl gallium ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}"
Andrew Geissler9aee5002022-03-30 16:27:02 +000015