[meta-oe] apitrace: add new recipe

Submitted by Michael Tretter on Sept. 9, 2020, 8:42 a.m. | Patch ID: 176197

Details

Message ID 20200909084218.802654-1-m.tretter@pengutronix.de
State Changes Requested
Headers show

Commit Message

Michael Tretter Sept. 9, 2020, 8:42 a.m.
apitrace consists of a set of tools to:

 - trace OpenGL, OpenGL ES, Direct3D, and DirectDraw APIs calls to a file;

 - replay OpenGL and OpenGL ES calls from a file;

 - inspect OpenGL state at any call while retracing;

 - visualize and edit trace files.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 .../recipes-devtools/apitrace/apitrace_9.0.bb | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb

Patch hide | download patch | download mbox

diff --git a/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb b/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb
new file mode 100644
index 000000000000..6e61683cde92
--- /dev/null
+++ b/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb
@@ -0,0 +1,28 @@ 
+SUMMARY = "Tools for tracing OpenGL, Direct3D, and other graphics APIs"
+HOMEPAGE = "http://apitrace.github.io/"
+SECTION = "console/tools"
+LICENSE = "MIT & BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50 \
+                    file://thirdparty/snappy/COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"
+
+SRCREV = "cae55f54c53449fd07f8a917dcd0874db2c15032"
+SRC_URI = "git://github.com/${BPN}/${BPN}.git"
+
+S = "${WORKDIR}/git"
+
+DEPENDS += "zlib libpng python3-native"
+
+inherit cmake
+
+EXTRA_OECMAKE += "\
+    -DENABLE_GUI=OFF \
+    -DENABLE_X11=OFF \
+    -DENABLE_STATIC_LIBGCC=OFF \
+    -DENABLE_STATIC_LIBSTDCXX=OFF \
+    -DPython3_ROOT_DIR=/usr/bin/python3-native \
+"
+
+# Use the bundled snappy library
+EXTRA_OECMAKE += "\
+    -DENABLE_STATIC_SNAPPY=ON \
+"

Comments

Khem Raj Sept. 9, 2020, 5:12 p.m.
On Wed, Sep 9, 2020 at 2:54 AM Michael Tretter <m.tretter@pengutronix.de> wrote:
>
> apitrace consists of a set of tools to:
>
>  - trace OpenGL, OpenGL ES, Direct3D, and DirectDraw APIs calls to a file;
>
>  - replay OpenGL and OpenGL ES calls from a file;
>
>  - inspect OpenGL state at any call while retracing;
>
>  - visualize and edit trace files.
>

Thanks for contributing new recipe, they also need to go into
appropriate packagegroup in packagegroup-meta-oe.bb
so it can be built in testing images.

> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> ---
>  .../recipes-devtools/apitrace/apitrace_9.0.bb | 28 +++++++++++++++++++
>  1 file changed, 28 insertions(+)
>  create mode 100644 meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb
>
> diff --git a/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb b/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb
> new file mode 100644
> index 000000000000..6e61683cde92
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb
> @@ -0,0 +1,28 @@
> +SUMMARY = "Tools for tracing OpenGL, Direct3D, and other graphics APIs"
> +HOMEPAGE = "http://apitrace.github.io/"
> +SECTION = "console/tools"
> +LICENSE = "MIT & BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50 \
> +                    file://thirdparty/snappy/COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"
> +
> +SRCREV = "cae55f54c53449fd07f8a917dcd0874db2c15032"
> +SRC_URI = "git://github.com/${BPN}/${BPN}.git"
> +
> +S = "${WORKDIR}/git"
> +
> +DEPENDS += "zlib libpng python3-native"
> +
> +inherit cmake
> +
> +EXTRA_OECMAKE += "\
> +    -DENABLE_GUI=OFF \
> +    -DENABLE_X11=OFF \
> +    -DENABLE_STATIC_LIBGCC=OFF \
> +    -DENABLE_STATIC_LIBSTDCXX=OFF \
> +    -DPython3_ROOT_DIR=/usr/bin/python3-native \
> +"
> +
> +# Use the bundled snappy library
> +EXTRA_OECMAKE += "\
> +    -DENABLE_STATIC_SNAPPY=ON \
> +"
> --
> 2.20.1
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#86970): https://lists.openembedded.org/g/openembedded-devel/message/86970
Mute This Topic: https://lists.openembedded.org/mt/76729001/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-
Khem Raj Sept. 15, 2020, 10:58 p.m.
additionally, it fails to build on qemux86-64


/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/apitrace/9.0-r0/git/retrace/process_name.cpp:52:1:
error: redefinition of a 'extern inline' function 'readlink' is not
supported in C++
readlink(const char *pathname, char *buf, size_t bufsiz)
^
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/apitrace/9.0-r0/recipe-sysroot/usr/include/bits/unistd.h:145:8:
note: previous definition is here
__NTH (readlink (const char *__restrict __path, char *__restrict __buf,
       ^

On Wed, Sep 9, 2020 at 10:12 AM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Wed, Sep 9, 2020 at 2:54 AM Michael Tretter <m.tretter@pengutronix.de> wrote:
> >
> > apitrace consists of a set of tools to:
> >
> >  - trace OpenGL, OpenGL ES, Direct3D, and DirectDraw APIs calls to a file;
> >
> >  - replay OpenGL and OpenGL ES calls from a file;
> >
> >  - inspect OpenGL state at any call while retracing;
> >
> >  - visualize and edit trace files.
> >
>
> Thanks for contributing new recipe, they also need to go into
> appropriate packagegroup in packagegroup-meta-oe.bb
> so it can be built in testing images.
>
> > Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> > ---
> >  .../recipes-devtools/apitrace/apitrace_9.0.bb | 28 +++++++++++++++++++
> >  1 file changed, 28 insertions(+)
> >  create mode 100644 meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb
> >
> > diff --git a/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb b/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb
> > new file mode 100644
> > index 000000000000..6e61683cde92
> > --- /dev/null
> > +++ b/meta-oe/recipes-devtools/apitrace/apitrace_9.0.bb
> > @@ -0,0 +1,28 @@
> > +SUMMARY = "Tools for tracing OpenGL, Direct3D, and other graphics APIs"
> > +HOMEPAGE = "http://apitrace.github.io/"
> > +SECTION = "console/tools"
> > +LICENSE = "MIT & BSD-3-Clause"
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50 \
> > +                    file://thirdparty/snappy/COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"
> > +
> > +SRCREV = "cae55f54c53449fd07f8a917dcd0874db2c15032"
> > +SRC_URI = "git://github.com/${BPN}/${BPN}.git"
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +DEPENDS += "zlib libpng python3-native"
> > +
> > +inherit cmake
> > +
> > +EXTRA_OECMAKE += "\
> > +    -DENABLE_GUI=OFF \
> > +    -DENABLE_X11=OFF \
> > +    -DENABLE_STATIC_LIBGCC=OFF \
> > +    -DENABLE_STATIC_LIBSTDCXX=OFF \
> > +    -DPython3_ROOT_DIR=/usr/bin/python3-native \
> > +"
> > +
> > +# Use the bundled snappy library
> > +EXTRA_OECMAKE += "\
> > +    -DENABLE_STATIC_SNAPPY=ON \
> > +"
> > --
> > 2.20.1
> >
> >
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#87109): https://lists.openembedded.org/g/openembedded-devel/message/87109
Mute This Topic: https://lists.openembedded.org/mt/76729001/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-