X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-demo-hmi%2FCES2017-demo%2FCES2017-demo.bb;h=681e246f5526eb0cf264885bc5967d4074896334;hb=7bb3630d56eaf54bbb59bfac22ddca695f8d9dcd;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..681e246f5 100644
--- a/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb
+++ b/recipes-demo-hmi/CES2017-demo/CES2017-demo.bb
@@ -1,38 +1,151 @@
-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${SRCPV}"
+S = "${WORKDIR}/git/"
+PN = "ces2017-demo"
-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"
-SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http"
-SRCREV = "${AUTOREV}"
+# ALS, CES, FOSDEM available
+AGL_RADIO_PRESETS_LOCALE ?= "CES"
-PV = "1.0+git"
+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 \
"
-# custom configure and install as these are just qml files
+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
+
-# we work in the git checkout ...
-S = "${WORKDIR}/git"
+ 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
+
+
+
+ echo " \
+ \
+ Radio \
+ \
+ Radio app. \
+ Qt \
+ \
+ Apache 2.0 \
+ \
+" > ${B}/apps/Radio/config.xml
+
+ cd ${B}/apps/Radio/
+ zip ${B}/package/radio.wgt config.xml radio
-do_configure() {
- ls
}
-# plain copy in own folder for now
do_install() {
- mkdir -p ${D}/usr/AGL/CES2017/
- cp -rf ./* ${D}/usr/AGL/CES2017/
+ 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/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/ToggleButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/Key.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/AbstractKeyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/Symbols.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/Alphabet.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/Keyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
+ install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Back.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Shift.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Space.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+ install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Arrow.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
+
+ 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/ \
+ /home/root/app-data/radio/presets-*.conf \
+ /home/root/app-data/radio/presets.conf \
+ /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/AGL/Demo/Controls/Key.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/AbstractKeyboard.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/Symbols.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/Alphabet.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/Keyboard.qml \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Back.svg \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Shift.svg \
+ /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Space.svg \
+ /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 \
+ "