aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/waffle/waffle/0001-meson-Add-missing-wayland-dependency-on-EGL.patch
blob: 5f587d84cafd268b70cc30916742579d8b29af02 (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
44
45
From 87fc7761cff5931a58984c7f7e78f421a0660e0e Mon Sep 17 00:00:00 2001
From: Tom Hochstein <tom.hochstein@nxp.com>
Date: Wed, 22 Apr 2020 13:40:04 -0500
Subject: [PATCH] meson: Add missing wayland dependency on EGL

The build was not finding egl.pc due to this
missing dependency.

Upstream-Status: Pending

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>

---
 meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- a/meson.build
+++ b/meson.build
@@ -63,6 +63,7 @@ dep_gl = _dep_null
 dep_egl = _dep_null
 dep_wayland_client = _dep_null
 dep_wayland_egl = _dep_null
+dep_wayland_wayland_egl = _dep_null
 dep_wayland_scanner = _dep_null
 dep_wayland_proto = _dep_null
 dep_x11_xcb = _dep_null
@@ -104,7 +105,8 @@ else
   dep_wayland_client = dependency(
     'wayland-client', version : '>= 1.10', required : get_option('wayland'),
   )
-  dep_wayland_egl = dependency(
+  dep_wayland_egl = dependency('egl', required : get_option('wayland'))
+  dep_wayland_wayland_egl = dependency(
     'wayland-egl', version : '>= 9.1', required : get_option('wayland'),
   )
   dep_wayland_scanner = dependency(
@@ -120,7 +122,7 @@ else
     wayland_xdg_shell_xml = join_paths(dep_wayland_proto.get_pkgconfig_variable('pkgdatadir'),
     'stable/xdg-shell/xdg-shell.xml')
   endif
-  build_wayland = dep_egl.found() and dep_wayland_client.found() and dep_wayland_egl.found() and dep_wayland_scanner.found() and dep_wayland_proto.found()
+  build_wayland = dep_egl.found() and dep_wayland_client.found() and dep_wayland_egl.found() and dep_wayland_scanner.found() and dep_wayland_proto.found() and dep_wayland_wayland_egl.found()
 
   # We're interested only in the headers provided
   # FINISHME: make x11_xcb and udev compile-only dependency