X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-demo-hmi%2FCES2017-demo%2FCES2017-demo.bb;h=281944d9944fdbc5d06fde0013f44fe6f8977953;hb=7783a290e85c35e8e152dee8099f8defe2ca710d;hp=e66a9600866bb73f5e1a8766e367d3a6ec63ceef;hpb=beb8cd9b20f3010e117c428d7ba3f15d80e5a310;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb b/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb index e66a96008..281944d99 100644 --- a/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb +++ b/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb @@ -1,120 +1,23 @@ SUMMARY = "App Launcher for the AGL Demonstrator @ CES2017" DESCRIPTION = "App Lanucher app in QML format for the AGL Demonstrator @ CESS2017" HOMEPAGE = "https://git.automotivelinux.org/gerrit/#/admin/projects/AGL/DemoApps/CES2017" -LICENSE = "MPL-2.0" SECTION = "apps" -PV = "1.0+git${SRCPV}" -S = "${WORKDIR}/git/" -PN = "ces2017-demo" - -inherit qmake5 -DEPENDS = "homescreen zip-native qtmultimedia qtquickcontrols2" - +LICENSE = "MPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=815ca599c9df247a0c7f619bab123dad" -SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http" -SRCREV = "${AUTOREV}" - - -RDEPENDS_${PN} += " \ - qtmultimedia-qmlplugins \ - qtmultimedia-rtlfm-radio-plugin \ - qtquickcontrols-qmlplugins \ - qtquickcontrols2-qmlplugins \ - qtsvg-plugins \ - " - -do_install_prepend() { - echo " \ - \ - Controls \ - \ - Controls app. \ - Qt \ - \ - Apache 2.0 \ - \ -" > ${B}/apps/Controls/config.xml - - cd ${B}/apps/Controls/ - zip controls.wgt config.xml controls - - - - echo " \ - \ - Dashboard \ - \ - Dashboard app. \ - Qt \ - \ - Apache 2.0 \ - \ -" > ${B}/apps/Dashboard/config.xml - - cd ${B}/apps/Dashboard/ - zip dashboard.wgt config.xml dashboard - - - - echo " \ - \ - Phone \ - \ - Phone app. \ - Qt \ - \ - Apache 2.0 \ - \ -" > ${B}/apps/Phone/config.xml - - cd ${B}/apps/Phone/ - zip phone.wgt config.xml phone - - - - echo " \ - \ - Radio \ - \ - Radio app. \ - Qt \ - \ - Apache 2.0 \ - \ -" > ${B}/apps/Radio/config.xml - - cd ${B}/apps/Radio/ - zip radio.wgt config.xml radio +DEPENDS = "homescreen zip-native qtmultimedia qtquickcontrols2" +PV = "1.0+git${SRCPV}" +PN = "ces2017-demo" +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http" +SRCREV = "${AUTOREV}" - cat > ${B}/apps/installAllApps.sh <<-EOF - #!/bin/sh - cd /usr/AGL/apps - for file in \`find . -maxdepth 1 -name '*.wgt'\`; do +S = "${WORKDIR}/git/" - /usr/bin/afm-util install \$file - done - sync - - #it's Workaround - cyad -s -k MANIFESTS -t allow -c User::App::navigation -u '*' -p 'http://tizen.org/privilege/internal/dbus' - cyad -s -k MANIFESTS -t allow -c User::App::poi -u '*' -p 'http://tizen.org/privilege/internal/dbus' - EOF -} +inherit qmake5 do_install() { - install -d ${D}/usr/AGL/${PN} - install -d ${D}/usr/AGL/apps - install -m 0644 ${B}/apps/Controls/controls.wgt ${D}/usr/AGL/apps/ - install -m 0644 ${B}/apps/Dashboard/dashboard.wgt ${D}/usr/AGL/apps/ - install -m 0644 ${B}/apps/Phone/phone.wgt ${D}/usr/AGL/apps/ - install -m 0644 ${B}/apps/Radio/radio.wgt ${D}/usr/AGL/apps/ - - install -m 0755 ${B}/apps/installAllApps.sh ${D}/usr/AGL/apps/ - ln -sf ../apps/installAllApps.sh ${D}/usr/AGL/${PN}/installAllApps.sh - install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/ install -m 0644 ${S}/imports/AGL/Demo/Controls/qmldir ${D}${libdir}/qt5/qml/AGL/Demo/Controls/ install -m 0644 ${S}/imports/AGL/Demo/Controls/ImageButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/ @@ -137,15 +40,8 @@ do_install() { install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/images/* ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/ } -# plain copy in own folder for now -#do_install() { -# mkdir -p ${D}/usr/AGL/CES2017/ -# cp -rf ./* ${D}/usr/AGL/CES2017/ -#} - -FILES_${PN} += "/usr/AGL/ \ - /usr/AGL/apps/* \ - /usr/AGL/${PN}/* \ +FILES_${PN} += " \ + /usr/AGL/ \ /usr/lib/qt5/qml/AGL/Demo/Controls/qmldir \ /usr/lib/qt5/qml/AGL/Demo/Controls/ImageButton.qml \ /usr/lib/qt5/qml/AGL/Demo/Controls/ToggleButton.qml \ @@ -160,4 +56,10 @@ FILES_${PN} += "/usr/AGL/ \ /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Arrow.svg \ /usr/lib/qt5/qml/QtQuick/Controls.2/AGL \ /usr/lib/qt5/qml/QtQuick/Controls.2/AGL/images \ - " +" + +RDEPENDS_${PN} += " \ + qtquickcontrols-qmlplugins \ + qtquickcontrols2-qmlplugins \ + qtsvg-plugins \ +"