package/mesa3d: Add option to build OSMesa

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Reviewed-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
André Hentschel 2015-10-03 19:21:55 +02:00 committed by Thomas Petazzoni
parent 7340143a5c
commit 81537f284f
2 changed files with 13 additions and 0 deletions

View File

@ -117,6 +117,13 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
endif # BR2_PACKAGE_XORG7
comment "Off-screen Rendering"
config BR2_PACKAGE_MESA3D_OSMESA
bool "OSMesa library"
help
The OSMesa API provides functions for making off-screen renderings.
if BR2_PACKAGE_MESA3D_DRIVER
comment "Additional API Support"

View File

@ -110,6 +110,12 @@ endif
# APIs
ifeq ($(BR2_PACKAGE_MESA3D_OSMESA),y)
MESA3D_CONF_OPTS += --enable-osmesa
else
MESA3D_CONF_OPTS += --disable-osmesa
endif
# Always enable OpenGL:
# - it is needed for GLES (mesa3d's ./configure is a bit weird)
# - but if no DRI driver is enabled, then libgl is not built,