1 SUMMARY = "App Launcher for the AGL Demonstrator @ CES2017"
2 DESCRIPTION = "App Lanucher app in QML format for the AGL Demonstrator @ CESS2017"
3 HOMEPAGE = "https://git.automotivelinux.org/gerrit/#/admin/projects/AGL/DemoApps/CES2017"
11 DEPENDS = "homescreen zip-native qtmultimedia qtquickcontrols2"
15 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=815ca599c9df247a0c7f619bab123dad"
17 # ALS, CES, FOSDEM available
18 AGL_RADIO_PRESETS_LOCALE ?= "CES"
20 SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http \
21 file://presets-ALS.conf \
22 file://presets-CES.conf \
23 file://presets-FOSDEM.conf \
27 # Pinned branch/SRCREV for Charming Chinook
28 SRC_URI_chinook = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http;branch=chinook \
29 file://presets-ALS.conf \
30 file://presets-CES.conf \
31 file://presets-FOSDEM.conf \
33 SRCREV_chinook = "354195c83841240ddd5f2c5daad97d66cc9e1d28"
36 qtmultimedia-qmlplugins \
37 qtmultimedia-rtlfm-radio-plugin \
38 qtquickcontrols-qmlplugins \
39 qtquickcontrols2-qmlplugins \
43 do_install_prepend() {
46 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
47 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"controls\" version=\"0.1\"> \
48 <name>Controls</name> \
49 <content src=\"controls\" type=\"application/x-executable\"/> \
50 <description>Controls app.</description> \
52 <icon src=\"controls.png\"/> \
53 <license>Apache 2.0</license> \
55 " > ${B}/apps/Controls/config.xml
57 cd ${B}/apps/Controls/
58 zip ${B}/package/controls.wgt config.xml controls
60 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
61 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"dashboard\" version=\"0.1\"> \
62 <name>Dashboard</name> \
63 <content src=\"dashboard\" type=\"application/x-executable\"/> \
64 <description>Dashboard app.</description> \
66 <icon src=\"dashboard.png\"/> \
67 <license>Apache 2.0</license> \
69 " > ${B}/apps/Dashboard/config.xml
71 cd ${B}/apps/Dashboard/
72 zip ${B}/package/dashboard.wgt config.xml dashboard
75 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
76 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"phone\" version=\"0.1\"> \
78 <content src=\"phone\" type=\"application/x-executable\"/> \
79 <description>Phone app.</description> \
81 <icon src=\"phone.png\"/> \
82 <license>Apache 2.0</license> \
84 " > ${B}/apps/Phone/config.xml
87 zip ${B}/package/phone.wgt config.xml phone
91 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
92 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"radio\" version=\"0.1\"> \
94 <content src=\"radio\" type=\"application/x-executable\"/> \
95 <description>Radio app.</description> \
97 <icon src=\"radio.png\"/> \
98 <license>Apache 2.0</license> \
100 " > ${B}/apps/Radio/config.xml
103 zip ${B}/package/radio.wgt config.xml radio
108 install -d ${D}/home/root/app-data/radio
109 install -m 0644 ${WORKDIR}/presets-CES.conf ${D}/home/root/app-data/radio/
110 install -m 0644 ${WORKDIR}/presets-ALS.conf ${D}/home/root/app-data/radio/
111 install -m 0644 ${WORKDIR}/presets-FOSDEM.conf ${D}/home/root/app-data/radio/
112 install -m 0644 ${WORKDIR}/presets-${AGL_RADIO_PRESETS_LOCALE}.conf ${D}/home/root/app-data/radio/presets.conf
114 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
115 install -m 0644 ${S}/imports/AGL/Demo/Controls/qmldir ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
116 install -m 0644 ${S}/imports/AGL/Demo/Controls/ImageButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
117 install -m 0644 ${S}/imports/AGL/Demo/Controls/ToggleButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
118 install -m 0644 ${S}/imports/AGL/Demo/Controls/Key.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
119 install -m 0644 ${S}/imports/AGL/Demo/Controls/AbstractKeyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
120 install -m 0644 ${S}/imports/AGL/Demo/Controls/Symbols.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
121 install -m 0644 ${S}/imports/AGL/Demo/Controls/Alphabet.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
122 install -m 0644 ${S}/imports/AGL/Demo/Controls/Keyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
123 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
124 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Back.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
125 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Shift.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
126 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Space.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
127 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Arrow.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
129 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
130 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/*.qml ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
132 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
133 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/images/* ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
136 # plain copy in own folder for now
138 # mkdir -p ${D}/usr/AGL/CES2017/
139 # cp -rf ./* ${D}/usr/AGL/CES2017/
142 FILES_${PN} += "/usr/AGL/ \
143 /home/root/app-data/radio/presets-*.conf \
144 /home/root/app-data/radio/presets.conf \
145 /usr/lib/qt5/qml/AGL/Demo/Controls/qmldir \
146 /usr/lib/qt5/qml/AGL/Demo/Controls/ImageButton.qml \
147 /usr/lib/qt5/qml/AGL/Demo/Controls/ToggleButton.qml \
148 /usr/lib/qt5/qml/AGL/Demo/Controls/Key.qml \
149 /usr/lib/qt5/qml/AGL/Demo/Controls/AbstractKeyboard.qml \
150 /usr/lib/qt5/qml/AGL/Demo/Controls/Symbols.qml \
151 /usr/lib/qt5/qml/AGL/Demo/Controls/Alphabet.qml \
152 /usr/lib/qt5/qml/AGL/Demo/Controls/Keyboard.qml \
153 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Back.svg \
154 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Shift.svg \
155 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Space.svg \
156 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Arrow.svg \
157 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL \
158 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL/images \