Patchwork [meta-qt5,v2,01/21] cinematicexperience: add example

login
register
mail settings
Submitter Eric BENARD
Date Oct. 8, 2013, 8:47 a.m.
Message ID <1381222066-2737-1-git-send-email-eric@eukrea.com>
Download mbox | patch
Permalink /patch/59437/
State Accepted, archived
Headers show

Comments

Eric BENARD - Oct. 8, 2013, 8:47 a.m.
for more informations on this demo :
http://kgronholm.blogspot.fr/2012/08/qt5-cinematic-experience.html
http://quitcoding.com/?page=work#cinex

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes-qt/examples/cinematicexperience_1.0.bb | 40 ++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 recipes-qt/examples/cinematicexperience_1.0.bb
Eric BENARD - Oct. 8, 2013, 8:47 a.m.
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes-qt/qt5/{qtquick1_5.1.0.bb => qtquick1_5.1.1.bb} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename recipes-qt/qt5/{qtquick1_5.1.0.bb => qtquick1_5.1.1.bb} (100%)

diff --git a/recipes-qt/qt5/qtquick1_5.1.0.bb b/recipes-qt/qt5/qtquick1_5.1.1.bb
similarity index 100%
rename from recipes-qt/qt5/qtquick1_5.1.0.bb
rename to recipes-qt/qt5/qtquick1_5.1.1.bb

Patch

diff --git a/recipes-qt/examples/cinematicexperience_1.0.bb b/recipes-qt/examples/cinematicexperience_1.0.bb
new file mode 100644
index 0000000..3fa6f06
--- /dev/null
+++ b/recipes-qt/examples/cinematicexperience_1.0.bb
@@ -0,0 +1,40 @@ 
+SUMMARY = "Qt5 technology demo"
+DESCRIPTION = "Cinematic Experience collects many of the new Qt5 QtQuick 2.0 features into the same UX demo application. It uses particles, sprites, path animation, custom shaders etc. features which Qt5 introduces for QML UIs."
+HOMEPAGE = "http://quitcoding.com/?page=work#cinex"
+LICENSE = "CC-BY-3.0"
+LIC_FILES_CHKSUM = "file://README;beginline=38;endline=50;md5=51babd597624b70752069953876aaa18"
+
+SRC_URI = "http://quitcoding.com/download/Qt5_CinematicExperience_rpi_1.0.tgz"
+
+SRC_URI[md5sum] = "935a5db0a6b2a72c67236e72f52be7d1"
+SRC_URI[sha256sum] = "0dd602983ced5f7c0cfd5ad0fbfe2b0b7e3c9ff715e4ef23eef818ccc2b6c60b"
+
+S = "${WORKDIR}/Qt5_CinematicExperience_rpi_${PV}/"
+
+# other version available for small screens
+#SRC_URI = "http://quitcoding.com/download/Qt5_CinematicExperience_1.0.tgz"
+#SRC_URI[md5sum] = "1c4f9bf5411c985fc5d3dbfc5d826a29"
+#SRC_URI[sha256sum] = "0e547e0259667915a24e84ade5efdcd0c553f81786734452c2c8dbce19a19f44"
+#S = "${WORKDIR}/Qt5_CinematicExperience_${PV}/"
+
+DEPENDS = "qtdeclarative qtgraphicaleffects"
+RDEPENDS_${PN} = "qtdeclarative-qmlplugins qtgraphicaleffects-qmlplugins"
+
+require recipes-qt/qt5/qt5.inc
+
+do_install() {
+    install -d ${D}${datadir}/${P}
+    install -m 0755 ${B}/Qt5_CinematicExperience ${D}${datadir}/${P}
+    cp -a ${S}/content ${D}${datadir}/${P}
+    install -m 0644 ${S}/Qt5_CinematicExperience.qml ${D}${datadir}/${P}
+
+    install -d ${D}${bindir}
+    echo "#!/bin/sh" > ${D}${bindir}/Qt5_CinematicExperience
+    echo "export QML_IMPORT_PATH=${datadir}/${P}" >> ${D}${bindir}/Qt5_CinematicExperience
+    echo "export QML2_IMPORT_PATH=${datadir}/${P}" >> ${D}${bindir}/Qt5_CinematicExperience
+    echo "${datadir}/${P}/Qt5_CinematicExperiencea \$* " >> ${D}${bindir}/Qt5_CinematicExperience
+    chmod +x ${D}${bindir}/Qt5_CinematicExperience
+}
+
+FILES_${PN}-dbg += "${datadir}/${P}/.debug"
+FILES_${PN} += "${datadir}"