From 7783a290e85c35e8e152dee8099f8defe2ca710d Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Wed, 1 Mar 2017 11:05:33 -0500 Subject: Switch to split out demo apps Add recipes for the split out controls, dashboard, phone, and radio app repositories, remove the related packaging of same from the CES2017-demo recipe, and add the split out apps to IMAGE_AGL_APPS in the agl-demo-platform image definition. Bug-AGL: SPEC-400, SPEC-401, SPEC-402, SPEC-403, SPEC-404 Change-Id: Ic3c7d134c90dd3fe989cb1ef7a510b1c5bf1fee8 Signed-off-by: Scott Murray --- recipes-demo-hmi/CES2017-demo/CES2017-demo.bb | 120 ++++---------------------- 1 file changed, 17 insertions(+), 103 deletions(-) (limited to 'recipes-demo-hmi/CES2017-demo/CES2017-demo.bb') diff --git a/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb b/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb index 681e246f..281944d9 100644 --- a/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb +++ b/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb @@ -1,108 +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" - -inherit aglwgt - +LICENSE = "MPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=815ca599c9df247a0c7f619bab123dad" -# ALS, CES, FOSDEM available -AGL_RADIO_PRESETS_LOCALE ?= "CES" - -SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http \ - file://presets-ALS.conf \ - file://presets-CES.conf \ - file://presets-FOSDEM.conf \ -" -SRCREV = "${AUTOREV}" - -RDEPENDS_${PN} += " \ - qtmultimedia-qmlplugins \ - qtmultimedia-rtlfm-radio-plugin \ - qtquickcontrols-qmlplugins \ - qtquickcontrols2-qmlplugins \ - qtsvg-plugins \ - " - -do_install_prepend() { - mkdir -p ${B}/package - - echo " \ - \ - Controls \ - \ - Controls app. \ - Qt \ - \ - Apache 2.0 \ - \ -" > ${B}/apps/Controls/config.xml - - cd ${B}/apps/Controls/ - zip ${B}/package/controls.wgt config.xml controls - - echo " \ - \ - Dashboard \ - \ - Dashboard app. \ - Qt \ - \ - Apache 2.0 \ - \ -" > ${B}/apps/Dashboard/config.xml - - cd ${B}/apps/Dashboard/ - zip ${B}/package/dashboard.wgt config.xml dashboard - - - echo " \ - \ - Phone \ - \ - Phone app. \ - Qt \ - \ - Apache 2.0 \ - \ -" > ${B}/apps/Phone/config.xml - - cd ${B}/apps/Phone/ - zip ${B}/package/phone.wgt config.xml phone - +DEPENDS = "homescreen zip-native qtmultimedia qtquickcontrols2" +PV = "1.0+git${SRCPV}" +PN = "ces2017-demo" - echo " \ - \ - Radio \ - \ - Radio app. \ - Qt \ - \ - Apache 2.0 \ - \ -" > ${B}/apps/Radio/config.xml +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http" +SRCREV = "${AUTOREV}" - cd ${B}/apps/Radio/ - zip ${B}/package/radio.wgt config.xml radio +S = "${WORKDIR}/git/" -} +inherit qmake5 do_install() { - install -d ${D}/home/root/app-data/radio - install -m 0644 ${WORKDIR}/presets-CES.conf ${D}/home/root/app-data/radio/ - install -m 0644 ${WORKDIR}/presets-ALS.conf ${D}/home/root/app-data/radio/ - install -m 0644 ${WORKDIR}/presets-FOSDEM.conf ${D}/home/root/app-data/radio/ - install -m 0644 ${WORKDIR}/presets-${AGL_RADIO_PRESETS_LOCALE}.conf ${D}/home/root/app-data/radio/presets.conf - 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/ @@ -125,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/ \ - /home/root/app-data/radio/presets-*.conf \ - /home/root/app-data/radio/presets.conf \ +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 \ @@ -148,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 \ +" -- cgit 1.2.3-korg