From 81537f284f62c6586d50bd5cca78c2bf1375b88c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Sat, 3 Oct 2015 19:21:55 +0200 Subject: [PATCH] package/mesa3d: Add option to build OSMesa MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: André Hentschel Signed-off-by: André Hentschel Reviewed-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/mesa3d/Config.in | 7 +++++++ package/mesa3d/mesa3d.mk | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index a658986593..fdeb59977c 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -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" diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index 84ad25efba..8097575ad3 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -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, -- 2.30.2