summaryrefslogtreecommitdiff
blob: 43bb05f524584ac016030a7bc95bd1801a4144d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 259544c4f4b47418885075c9531ce593c600401c Mon Sep 17 00:00:00 2001
From: Mart Raudsepp <leio@gentoo.org>
Date: Fri, 1 Mar 2019 00:02:47 +0200
Subject: [PATCH] build: Fix build without gles headers

This is an ugly quick fix to hopefully fix non-wayland builds against
mesa[-gles2].
It assumes gnome-shell package USE=wayland requires USE=gles2, which it
sort of does already at runtime already for hybrid graphics support, but
we ensure with REQUIRED_USE.
In meson upstream port for 3.32 this will be more properly conditional
on the gles2 option instead.
---
 src/Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index bcb3505c7..a68661b21 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -118,9 +118,6 @@ libmutter_@LIBMUTTER_API_VERSION@_la_SOURCES =	\
 	backends/meta-egl.c			\
 	backends/meta-egl.h			\
 	backends/meta-egl-ext.h			\
-	backends/meta-gles3.c			\
-	backends/meta-gles3.h			\
-	backends/meta-gles3-table.h		\
 	backends/meta-gpu.c			\
 	backends/meta-gpu.h			\
 	backends/meta-display-config-shared.h	\
@@ -472,6 +469,9 @@ endif
 
 if HAVE_NATIVE_BACKEND
 libmutter_@LIBMUTTER_API_VERSION@_la_SOURCES +=		\
+	backends/meta-gles3.c			\
+	backends/meta-gles3.h			\
+	backends/meta-gles3-table.h		\
 	backends/native/meta-backend-native.c		\
 	backends/native/meta-backend-native.h		\
 	backends/native/meta-backend-native-private.h	\
-- 
2.17.0