diff --git a/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles.bbappend b/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles.bbappend index 199365dbb..1709250bd 100644 --- a/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles.bbappend +++ b/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles.bbappend @@ -1,9 +1,20 @@ # Copyright (C) 2015 Digi International. +FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" + +SRC_URI += " \ + file://qmlvideo.desktop \ + file://qmlvideo.png \ +" + do_install_append () { # Fix path for OpenGLES example sed -i -e '/Exec/{s,hellogl_es2,hellogl2,g}' ${D}${datadir}/applications/hellogl_es2.desktop + # Add qmlvideo shortcut + install -m 0644 ${WORKDIR}/qmlvideo.desktop ${D}${datadir}/applications/ + install -m 0644 ${WORKDIR}/qmlvideo.png ${D}${datadir}/pixmaps/ + # Remove the desktop launchers of the demo/example applications we do not provide. rm -f ${D}${datadir}/applications/qt5basket.desktop ${D}${datadir}/pixmaps/qt5basket.png rm -f ${D}${datadir}/applications/qt5nesting.desktop ${D}${datadir}/pixmaps/qt5nesting.png diff --git a/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles/qmlvideo.desktop b/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles/qmlvideo.desktop new file mode 100644 index 000000000..05b568603 --- /dev/null +++ b/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles/qmlvideo.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Qt5 QML player +Exec=/bin/sh -c "cd /usr/share/qt5/examples/multimedia/video/qmlvideo; ./qmlvideo" +Icon=qmlvideo +Terminal=false +Type=Application +X-MB-SingleInstance=true +Comment=Qt5 Qml Video and Camera player +StartupNotify=false diff --git a/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles/qmlvideo.png b/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles/qmlvideo.png new file mode 100644 index 000000000..59cdfbaa3 Binary files /dev/null and b/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles/qmlvideo.png differ