summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-core/glfw/glfw_3.3.bb14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb b/meta-oe/recipes-core/glfw/glfw_3.3.bb
index b31bba6b6b..5b0d61241e 100644
--- a/meta-oe/recipes-core/glfw/glfw_3.3.bb
+++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb
@@ -20,7 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_DOCS=OFF"
20 20
21CFLAGS += "-fPIC" 21CFLAGS += "-fPIC"
22 22
23DEPENDS = "libpng libglu zlib libxrandr libxinerama libxi libxcursor" 23DEPENDS = "libpng libglu zlib"
24REQUIRED_DISTRO_FEATURES = "x11 opengl" 24REQUIRED_DISTRO_FEATURES = "opengl"
25ANY_OF_DISTRO_FEATURES = "wayland x11"
26
27# upstream considers x11 and wayland backends mutually exclusive and will
28# prioritize wayland if it is enabled, but wayland has dependencies that cannot
29# be satisfied by this layer so it is disabled by default
30
31PACKAGECONFIG ??= "x11"
32
33PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon"
34PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor"
25 35
26COMPATIBLE_HOST:libc-musl = "null" 36COMPATIBLE_HOST:libc-musl = "null"