[3/5] glslang: add receipe

Submitted by Jose Quaresma on Oct. 13, 2020, 5:35 p.m. | Patch ID: 177198

Details

Message ID 20201013173502.2245733-4-quaresma.jose@gmail.com
State New
Headers show

Commit Message

Jose Quaresma Oct. 13, 2020, 5:35 p.m.
Glslang is the official reference compiler front end for the
OpenGL ES and OpenGL shading languages. It implements a strict interpretation
of the specifications for these languages. It is open and free for anyone to use,
either from a command line or programmatically.

This receipe is needed to build the new shaderc

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
---
 .../glslang/glslang_8.13.3559.bb              | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta/recipes-graphics/glslang/glslang_8.13.3559.bb

Patch hide | download patch | download mbox

diff --git a/meta/recipes-graphics/glslang/glslang_8.13.3559.bb b/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
new file mode 100644
index 0000000000..2008ba59d8
--- /dev/null
+++ b/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
@@ -0,0 +1,19 @@ 
+SUMMARY = "OpenGL / OpenGL ES Reference Compiler"
+DESCRIPTION = "Glslang is the official reference compiler front end for the \
+OpenGL ES and OpenGL shading languages. It implements a strict interpretation \
+of the specifications for these languages. It is open and free for anyone to use, \
+either from a command line or programmatically."
+SECTION = "graphics"
+HOMEPAGE = "https://www.khronos.org/opengles/sdk/tools/Reference-Compiler"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=918e668376010a04448a312fb37ae69b"
+
+SRC_URI = "https://github.com/KhronosGroup/glslang/archive/${PV}.tar.gz"
+SRC_URI[md5sum] = "cb32322377cee2bc1cee5b60ebe46133"
+SRC_URI[sha256sum] = "c58fdcf7e00943ba10f9ae565b2725ec9d5be7dab7c8e82cac72fcaa83c652ca"
+
+inherit cmake python3native
+
+EXTRA_OECMAKE = ""
+
+BBCLASSEXTEND = "native nativesdk"

Comments

Andrey Zhizhikin Oct. 13, 2020, 6:54 p.m.
On Tue, Oct 13, 2020 at 7:35 PM Jose Quaresma <quaresma.jose@gmail.com> wrote:
>
> Glslang is the official reference compiler front end for the
> OpenGL ES and OpenGL shading languages. It implements a strict interpretation
> of the specifications for these languages. It is open and free for anyone to use,
> either from a command line or programmatically.
>
> This receipe is needed to build the new shaderc
>
> Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> ---
>  .../glslang/glslang_8.13.3559.bb              | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>  create mode 100644 meta/recipes-graphics/glslang/glslang_8.13.3559.bb
>
> diff --git a/meta/recipes-graphics/glslang/glslang_8.13.3559.bb b/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> new file mode 100644
> index 0000000000..2008ba59d8
> --- /dev/null
> +++ b/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> @@ -0,0 +1,19 @@
> +SUMMARY = "OpenGL / OpenGL ES Reference Compiler"
> +DESCRIPTION = "Glslang is the official reference compiler front end for the \
> +OpenGL ES and OpenGL shading languages. It implements a strict interpretation \
> +of the specifications for these languages. It is open and free for anyone to use, \
> +either from a command line or programmatically."
> +SECTION = "graphics"
> +HOMEPAGE = "https://www.khronos.org/opengles/sdk/tools/Reference-Compiler"
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=918e668376010a04448a312fb37ae69b"
> +
> +SRC_URI = "https://github.com/KhronosGroup/glslang/archive/${PV}.tar.gz"
> +SRC_URI[md5sum] = "cb32322377cee2bc1cee5b60ebe46133"
> +SRC_URI[sha256sum] = "c58fdcf7e00943ba10f9ae565b2725ec9d5be7dab7c8e82cac72fcaa83c652ca"

Any reason why archive is preferred here over GIT? I can see that the
source repository has tags defined, so it would be better to use GIT
instead of archive here.

> +
> +inherit cmake python3native
> +
> +EXTRA_OECMAKE = ""
This is not needed, as there are no extra cmake arguments supplied anyway.

> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.28.0
>
>
> 
>
Alexander Kanavin Oct. 13, 2020, 6:57 p.m.
Also, github archives are not stable, and can change checksums over time.

Alex

On Tue, 13 Oct 2020 at 20:54, Andrey Zhizhikin <andrey.z@gmail.com> wrote:

> On Tue, Oct 13, 2020 at 7:35 PM Jose Quaresma <quaresma.jose@gmail.com>
> wrote:
> >
> > Glslang is the official reference compiler front end for the
> > OpenGL ES and OpenGL shading languages. It implements a strict
> interpretation
> > of the specifications for these languages. It is open and free for
> anyone to use,
> > either from a command line or programmatically.
> >
> > This receipe is needed to build the new shaderc
> >
> > Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> > ---
> >  .../glslang/glslang_8.13.3559.bb              | 19 +++++++++++++++++++
> >  1 file changed, 19 insertions(+)
> >  create mode 100644 meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> >
> > diff --git a/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> b/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> > new file mode 100644
> > index 0000000000..2008ba59d8
> > --- /dev/null
> > +++ b/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> > @@ -0,0 +1,19 @@
> > +SUMMARY = "OpenGL / OpenGL ES Reference Compiler"
> > +DESCRIPTION = "Glslang is the official reference compiler front end for
> the \
> > +OpenGL ES and OpenGL shading languages. It implements a strict
> interpretation \
> > +of the specifications for these languages. It is open and free for
> anyone to use, \
> > +either from a command line or programmatically."
> > +SECTION = "graphics"
> > +HOMEPAGE = "
> https://www.khronos.org/opengles/sdk/tools/Reference-Compiler"
> > +LICENSE = "BSD-3-Clause"
> > +LIC_FILES_CHKSUM =
> "file://LICENSE.txt;md5=918e668376010a04448a312fb37ae69b"
> > +
> > +SRC_URI = "https://github.com/KhronosGroup/glslang/archive/${PV}.tar.gz
> "
> > +SRC_URI[md5sum] = "cb32322377cee2bc1cee5b60ebe46133"
> > +SRC_URI[sha256sum] =
> "c58fdcf7e00943ba10f9ae565b2725ec9d5be7dab7c8e82cac72fcaa83c652ca"
>
> Any reason why archive is preferred here over GIT? I can see that the
> source repository has tags defined, so it would be better to use GIT
> instead of archive here.
>
> > +
> > +inherit cmake python3native
> > +
> > +EXTRA_OECMAKE = ""
> This is not needed, as there are no extra cmake arguments supplied anyway.
>
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > --
> > 2.28.0
> >
> >
> >
> >
>
>
> --
> Regards,
> Andrey.
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#143303): https://lists.openembedded.org/g/openembedded-core/message/143303
Mute This Topic: https://lists.openembedded.org/mt/77488358/3617530
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-
Jose Quaresma Oct. 13, 2020, 8:39 p.m.
Andrey Zhizhikin <andrey.z@gmail.com> escreveu no dia terça,
13/10/2020 à(s) 19:54:
>
> On Tue, Oct 13, 2020 at 7:35 PM Jose Quaresma <quaresma.jose@gmail.com> wrote:
> >
> > Glslang is the official reference compiler front end for the
> > OpenGL ES and OpenGL shading languages. It implements a strict interpretation
> > of the specifications for these languages. It is open and free for anyone to use,
> > either from a command line or programmatically.
> >
> > This receipe is needed to build the new shaderc
> >
> > Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> > ---
> >  .../glslang/glslang_8.13.3559.bb              | 19 +++++++++++++++++++
> >  1 file changed, 19 insertions(+)
> >  create mode 100644 meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> >
> > diff --git a/meta/recipes-graphics/glslang/glslang_8.13.3559.bb b/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> > new file mode 100644
> > index 0000000000..2008ba59d8
> > --- /dev/null
> > +++ b/meta/recipes-graphics/glslang/glslang_8.13.3559.bb
> > @@ -0,0 +1,19 @@
> > +SUMMARY = "OpenGL / OpenGL ES Reference Compiler"
> > +DESCRIPTION = "Glslang is the official reference compiler front end for the \
> > +OpenGL ES and OpenGL shading languages. It implements a strict interpretation \
> > +of the specifications for these languages. It is open and free for anyone to use, \
> > +either from a command line or programmatically."
> > +SECTION = "graphics"
> > +HOMEPAGE = "https://www.khronos.org/opengles/sdk/tools/Reference-Compiler"
> > +LICENSE = "BSD-3-Clause"
> > +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=918e668376010a04448a312fb37ae69b"
> > +
> > +SRC_URI = "https://github.com/KhronosGroup/glslang/archive/${PV}.tar.gz"
> > +SRC_URI[md5sum] = "cb32322377cee2bc1cee5b60ebe46133"
> > +SRC_URI[sha256sum] = "c58fdcf7e00943ba10f9ae565b2725ec9d5be7dab7c8e82cac72fcaa83c652ca"
>
> Any reason why archive is preferred here over GIT? I can see that the
> source repository has tags defined, so it would be better to use GIT
> instead of archive here.
>

There is no reason to use the archive here.
I will fix it in the next version and change it to git.

> > +
> > +inherit cmake python3native
> > +
> > +EXTRA_OECMAKE = ""
> This is not needed, as there are no extra cmake arguments supplied anyway.
>

I will remove it.

> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > --
> > 2.28.0
> >
> >
> > 
> >
>
>
> --
> Regards,
> Andrey.