All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Woolley <rob.woolley@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [oe] [OE-Core][PATCH 1/2] libglvnd: add new recipe libglvnd v1.6.0
Date: Fri, 21 Feb 2025 06:38:10 -0800	[thread overview]
Message-ID: <20250221143811.2072024-2-rob.woolley@windriver.com> (raw)
In-Reply-To: <20250221143811.2072024-1-rob.woolley@windriver.com>

This is a backport of the recipe from Mickledore.  It is needed
to properly detect OpenGL using FindOpenGL.cmake.

This recipe is meant to be an optional dependency of mesa.
This recipe will allow for glvnd support in mesa. Thus,
giving access to the GLX window-system API library and
related libraries, mesa will build libGLX_mesa.so.*.*
and libEGL_mesa.so.*.* or whatever specified in
-Dglvnd-vendor-name. There may be applications that require
direct access to the GLX window-system API library in order
to build/execute. This will allow for multiple layers to
have generic support for libraries in libglvnd
(GLX window-system API library, etc...) without needing to
implement their own version of the libglvnd recipe.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
---
 .../libglvnd/libglvnd_1.6.0.bb                | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta/recipes-graphics/libglvnd/libglvnd_1.6.0.bb

diff --git a/meta/recipes-graphics/libglvnd/libglvnd_1.6.0.bb b/meta/recipes-graphics/libglvnd/libglvnd_1.6.0.bb
new file mode 100644
index 0000000000..b76373cf2a
--- /dev/null
+++ b/meta/recipes-graphics/libglvnd/libglvnd_1.6.0.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "libglvnd is a vendor-neutral dispatch layer for arbitrating \
+OpenGL API calls between multiple vendors."
+HOMEPAGE = "https://gitlab.freedesktop.org/glvnd/libglvnd"
+LICENSE = "MIT & BSD-1-Clause & BSD-3-Clause & GPL-3.0-with-autoconf-exception"
+LIC_FILES_CHKSUM = "file://README.md;beginline=323;md5=7ac5f0111f648b92fe5427efeb08e8c4"
+
+SRC_URI = "git://git@gitlab.freedesktop.org/glvnd/libglvnd.git;protocol=https;branch=master"
+
+# v1.5.0 tag
+SRCREV = "b05bbcdaeb9b700cf7877e6d66f8fc3ac952295b"
+
+REQUIRED_DISTRO_FEATURES = "opengl"
+
+inherit meson pkgconfig features_check
+
+S = "${WORKDIR}/git"
+
+PACKAGECONFIG ?= "\
+  ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
+  ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl gles1 gles2', '', d)} \
+  ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'glx', '', d)} \
+  "
+
+PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,libx11 libxext xorgproto"
+PACKAGECONFIG[glx] = "-Dglx=enabled,-Dglx=disabled,libx11 libxext xorgproto"
+PACKAGECONFIG[egl] = "-Degl=true,-Degl=false,"
+PACKAGECONFIG[gles1] = "-Dgles1=true,-Dgles1=false,"
+PACKAGECONFIG[gles2] = "-Dgles2=true,-Dgles2=false,"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.43.0



  reply	other threads:[~2025-02-21 14:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-21 14:38 [oe] [OE-Core][PATCH 0/2] Backport glvnd support to Kirkstone Rob Woolley
2025-02-21 14:38 ` Rob Woolley [this message]
2025-02-21 14:46   ` Patchtest results for [oe] [OE-Core][PATCH 1/2] libglvnd: add new recipe libglvnd v1.6.0 patchtest
2025-02-21 16:46     ` Vincent Davis Jr
2025-02-21 16:49   ` Vincent Davis Jr
2025-02-21 16:54     ` Rob Woolley
2025-02-21 14:38 ` [oe] [OE-Core][PATCH 2/2] mesa: enable glvnd support Rob Woolley
2025-02-21 14:46   ` Patchtest results for " patchtest
2025-02-21 15:36 ` [oe] [OE-Core][PATCH 0/2] Backport glvnd support to Kirkstone Alexander Kanavin
2025-02-21 16:51   ` Rob Woolley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250221143811.2072024-2-rob.woolley@windriver.com \
    --to=rob.woolley@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.