X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-demo-hmi%2FCES2017-demo%2FCES2017-demo.bb;h=105ea1d995509766882e0835c23aabb51f2e0445;hb=refs%2Fchanges%2F31%2F7531%2F2;hp=c94950bfe0fa18d8b0d791f066e95adbdefc269e;hpb=7de25f68bba5465f547751ad617360c243dd0aff;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 c94950bfe..105ea1d99 100644 --- a/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb +++ b/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb @@ -1,38 +1,205 @@ -SUMMARY = "Homescreen for the AGL Demonstrator @ CES2017" -DESCRIPTION = "Homescreen apps in QML format for the AGL Demonstrator @ CESS2017" +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" +S = "${WORKDIR}/git/" +PN = "ces2017-demo" -PN = "ces2017-demo" +inherit qmake5 +DEPENDS = " qtbase qtdeclarative qtquickcontrols2 qtmultimedia homescreen zip-native" -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}" -PV = "1.0+git" RDEPENDS_${PN} += " \ qtmultimedia-qmlplugins \ + qtmultimedia-rtlfm-radio-plugin \ qtquickcontrols-qmlplugins \ + qtquickcontrols2-qmlplugins \ qtsvg-plugins \ " -# custom configure and install as these are just qml files +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 " \ + \ + Home \ + \ + Home app. \ + Qt \ + \ + Apache 2.0 \ + \ +" > ${B}/apps/Home/config.xml + + cd ${B}/apps/Home/ + zip home.wgt config.xml home + + + + echo " \ + \ + HVAC \ + \ + HVAC app. \ + Qt \ + \ + Apache 2.0 \ + \ +" > ${B}/apps/HVAC/config.xml + + cd ${B}/apps/HVAC/ + zip hvac.wgt config.xml hvac + + + + echo " \ + \ + MediaPlayer \ + \ + MediaPlayer app. \ + Qt \ + \ + Apache 2.0 \ + \ +" > ${B}/apps/MediaPlayer/config.xml + + cd ${B}/apps/MediaPlayer/ + zip mediaplayer.wgt config.xml mediaplayer -# we work in the git checkout ... -S = "${WORKDIR}/git" -do_configure() { - ls + + 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 + + + + echo " \ + \ + Settings \ + \ + Settings app. \ + Qt \ + \ + Apache 2.0 \ + \ +" > ${B}/apps/Settings/config.xml + + cd ${B}/apps/Settings/ + zip settings.wgt config.xml settings + + + cat > ${B}/apps/installAllApps.sh <<-EOF + #!/bin/sh + /usr/bin/afm-util install controls.wgt + /usr/bin/afm-util install dashboard.wgt + /usr/bin/afm-util install home.wgt + /usr/bin/afm-util install hvac.wgt + /usr/bin/afm-util install mediaplayer.wgt + /usr/bin/afm-util install phone.wgt + /usr/bin/afm-util install radio.wgt + /usr/bin/afm-util install settings.wgt + EOF } -# plain copy in own folder for now do_install() { - mkdir -p ${D}/usr/AGL/CES2017/ - cp -rf ./* ${D}/usr/AGL/CES2017/ + install -d ${D}/usr/AGL/${PN} + install -m 0644 ${B}/apps/Controls/controls.wgt ${D}/usr/AGL/${PN}/ + install -m 0644 ${B}/apps/Dashboard/dashboard.wgt ${D}/usr/AGL/${PN}/ + install -m 0644 ${B}/apps/Home/home.wgt ${D}/usr/AGL/${PN}/ + install -m 0644 ${B}/apps/HVAC/hvac.wgt ${D}/usr/AGL/${PN}/ + install -m 0644 ${B}/apps/MediaPlayer/mediaplayer.wgt ${D}/usr/AGL/${PN}/ + install -m 0644 ${B}/apps/Phone/phone.wgt ${D}/usr/AGL/${PN}/ + install -m 0644 ${B}/apps/Radio/radio.wgt ${D}/usr/AGL/${PN}/ + install -m 0644 ${B}/apps/Settings/settings.wgt ${D}/usr/AGL/${PN}/ + + install -m 0755 ${B}/apps/installAllApps.sh ${D}/usr/AGL/${PN}/ + + 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/ + install -m 0644 ${S}/imports/AGL/Demo/Controls/ToggleButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/ + + install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL + install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/*.qml ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL + + install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/ + install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/images/* ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/ } -FILES_${PN} = "/usr/AGL/" +# 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/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 \ + /usr/lib/qt5/qml/QtQuick/Controls.2/AGL \ + /usr/lib/qt5/qml/QtQuick/Controls.2/AGL/images \ + "