|
@@ -1,12 +1,22 @@
|
|
-This patches makes opengl an optional component.
|
|
|
|
|
|
+From bb0ffae7164d296d32da24fa5499534de259169a Mon Sep 17 00:00:00 2001
|
|
|
|
+From: Spenser Gilliland <spenser@gillilanding.com>
|
|
|
|
+Date: Sat, 24 Feb 2018 11:36:17 +0100
|
|
|
|
+Subject: [PATCH] demos: makes opengl an optional component
|
|
|
|
|
|
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
|
|
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
|
|
|
|
+[Romain: convert to git patch, rebase on 8.4.0]
|
|
|
|
+Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
|
---
|
|
---
|
|
-Index: mesa3d-demos-8.1.0/configure.ac
|
|
|
|
-===================================================================
|
|
|
|
---- mesa3d-demos-8.1.0.orig/configure.ac
|
|
|
|
-+++ mesa3d-demos-8.1.0/configure.ac
|
|
|
|
-@@ -51,6 +51,14 @@
|
|
|
|
|
|
+ configure.ac | 12 +++++++++++-
|
|
|
|
+ src/egl/opengl/Makefile.am | 2 ++
|
|
|
|
+ src/util/Makefile.am | 2 ++
|
|
|
|
+ 3 files changed, 15 insertions(+), 1 deletion(-)
|
|
|
|
+
|
|
|
|
+diff --git a/configure.ac b/configure.ac
|
|
|
|
+index 0b5e9a76..24298c44 100644
|
|
|
|
+--- a/configure.ac
|
|
|
|
++++ b/configure.ac
|
|
|
|
+@@ -51,6 +51,14 @@ m4_ifndef([PKG_PROG_PKG_CONFIG],
|
|
ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])])
|
|
ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])])
|
|
PKG_PROG_PKG_CONFIG()
|
|
PKG_PROG_PKG_CONFIG()
|
|
|
|
|
|
@@ -21,7 +31,7 @@ Index: mesa3d-demos-8.1.0/configure.ac
|
|
dnl Get the pkg-config definitions for libGL. We include a fallback
|
|
dnl Get the pkg-config definitions for libGL. We include a fallback
|
|
dnl path for GL implementation that don't provide a .pc file
|
|
dnl path for GL implementation that don't provide a .pc file
|
|
PKG_CHECK_MODULES(GL, [gl], [], [
|
|
PKG_CHECK_MODULES(GL, [gl], [], [
|
|
-@@ -113,6 +121,8 @@
|
|
|
|
|
|
+@@ -112,6 +120,8 @@ PKG_CHECK_MODULES(GLU, [glu], [],
|
|
DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
|
|
DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
|
|
DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
|
|
DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
|
|
|
|
|
|
@@ -30,7 +40,7 @@ Index: mesa3d-demos-8.1.0/configure.ac
|
|
AC_ARG_ENABLE([egl],
|
|
AC_ARG_ENABLE([egl],
|
|
[AS_HELP_STRING([--enable-egl],
|
|
[AS_HELP_STRING([--enable-egl],
|
|
[enable EGL library @<:@default=auto@:>@])],
|
|
[enable EGL library @<:@default=auto@:>@])],
|
|
-@@ -303,7 +313,7 @@
|
|
|
|
|
|
+@@ -302,7 +312,7 @@ AC_SUBST([MESA_GLAPI])
|
|
AC_SUBST([WAYLAND_CFLAGS])
|
|
AC_SUBST([WAYLAND_CFLAGS])
|
|
AC_SUBST([WAYLAND_LIBS])
|
|
AC_SUBST([WAYLAND_LIBS])
|
|
|
|
|
|
@@ -39,29 +49,30 @@ Index: mesa3d-demos-8.1.0/configure.ac
|
|
AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes")
|
|
AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes")
|
|
AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes")
|
|
AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes")
|
|
AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes")
|
|
AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes")
|
|
-Index: mesa3d-demos-8.1.0/src/egl/opengl/Makefile.am
|
|
|
|
-===================================================================
|
|
|
|
---- mesa3d-demos-8.1.0.orig/src/egl/opengl/Makefile.am
|
|
|
|
-+++ mesa3d-demos-8.1.0/src/egl/opengl/Makefile.am
|
|
|
|
-@@ -50,12 +50,14 @@
|
|
|
|
|
|
+diff --git a/src/egl/opengl/Makefile.am b/src/egl/opengl/Makefile.am
|
|
|
|
+index 6d184ff6..219ab850 100644
|
|
|
|
+--- a/src/egl/opengl/Makefile.am
|
|
|
|
++++ b/src/egl/opengl/Makefile.am
|
|
|
|
+@@ -56,6 +56,7 @@ endif
|
|
endif
|
|
endif
|
|
|
|
|
|
if HAVE_EGL
|
|
if HAVE_EGL
|
|
+if HAVE_GL
|
|
+if HAVE_GL
|
|
|
|
+ bin_PROGRAMS = \
|
|
|
|
+ eglinfo
|
|
noinst_PROGRAMS = \
|
|
noinst_PROGRAMS = \
|
|
- eglinfo \
|
|
|
|
- peglgears \
|
|
|
|
- $(EGL_DRM_DEMOS) \
|
|
|
|
- $(EGL_X11_DEMOS)
|
|
|
|
|
|
+@@ -64,6 +65,7 @@ noinst_PROGRAMS = \
|
|
|
|
+ $(EGL_X11_DEMOS) \
|
|
|
|
+ $(EGL_WL_DEMOS)
|
|
endif
|
|
endif
|
|
+endif
|
|
+endif
|
|
|
|
|
|
egltri_x11_SOURCES = egltri.c
|
|
egltri_x11_SOURCES = egltri.c
|
|
eglgears_x11_SOURCES = eglgears.c
|
|
eglgears_x11_SOURCES = eglgears.c
|
|
-Index: mesa3d-demos-8.1.0/src/util/Makefile.am
|
|
|
|
-===================================================================
|
|
|
|
---- mesa3d-demos-8.1.0.orig/src/util/Makefile.am
|
|
|
|
-+++ mesa3d-demos-8.1.0/src/util/Makefile.am
|
|
|
|
|
|
+diff --git a/src/util/Makefile.am b/src/util/Makefile.am
|
|
|
|
+index 759a293a..012b9c75 100644
|
|
|
|
+--- a/src/util/Makefile.am
|
|
|
|
++++ b/src/util/Makefile.am
|
|
@@ -27,7 +27,9 @@ AM_CFLAGS = \
|
|
@@ -27,7 +27,9 @@ AM_CFLAGS = \
|
|
AM_LDFLAGS = \
|
|
AM_LDFLAGS = \
|
|
$(DEMO_LIBS)
|
|
$(DEMO_LIBS)
|
|
@@ -72,3 +83,6 @@ Index: mesa3d-demos-8.1.0/src/util/Makefile.am
|
|
|
|
|
|
if HAVE_GLUT
|
|
if HAVE_GLUT
|
|
AM_CFLAGS += \
|
|
AM_CFLAGS += \
|
|
|
|
+--
|
|
|
|
+2.14.3
|
|
|
|
+
|