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"
13 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=815ca599c9df247a0c7f619bab123dad"
15 AGL_RADIO_PRESETS_LOCALE ?= "CES"
17 SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http \
18 file://presets-${AGL_RADIO_PRESETS_LOCALE}.conf \
22 # Pinned branch/SRCREV for Charming Chinook
23 SRC_URI_chinook = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http;branch=chinook \
24 file://presets-${AGL_RADIO_PRESETS_LOCALE}.conf \
26 SRCREV_chinook = "354195c83841240ddd5f2c5daad97d66cc9e1d28"
29 qtmultimedia-qmlplugins \
30 qtmultimedia-rtlfm-radio-plugin \
31 qtquickcontrols-qmlplugins \
32 qtquickcontrols2-qmlplugins \
36 do_install_prepend() {
37 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
38 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"controls\" version=\"0.1\"> \
39 <name>Controls</name> \
40 <content src=\"controls\" type=\"application/x-executable\"/> \
41 <description>Controls app.</description> \
43 <icon src=\"controls.png\"/> \
44 <license>Apache 2.0</license> \
46 " > ${B}/apps/Controls/config.xml
48 cd ${B}/apps/Controls/
49 zip controls.wgt config.xml controls
53 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
54 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"dashboard\" version=\"0.1\"> \
55 <name>Dashboard</name> \
56 <content src=\"dashboard\" type=\"application/x-executable\"/> \
57 <description>Dashboard app.</description> \
59 <icon src=\"dashboard.png\"/> \
60 <license>Apache 2.0</license> \
62 " > ${B}/apps/Dashboard/config.xml
64 cd ${B}/apps/Dashboard/
65 zip dashboard.wgt config.xml dashboard
69 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
70 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"phone\" version=\"0.1\"> \
72 <content src=\"phone\" type=\"application/x-executable\"/> \
73 <description>Phone app.</description> \
75 <icon src=\"phone.png\"/> \
76 <license>Apache 2.0</license> \
78 " > ${B}/apps/Phone/config.xml
81 zip phone.wgt config.xml phone
85 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
86 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"radio\" version=\"0.1\"> \
88 <content src=\"radio\" type=\"application/x-executable\"/> \
89 <description>Radio app.</description> \
91 <icon src=\"radio.png\"/> \
92 <license>Apache 2.0</license> \
94 " > ${B}/apps/Radio/config.xml
97 zip radio.wgt config.xml radio
100 cat > ${B}/apps/installAllApps.sh <<-EOF
103 for file in \`find . -maxdepth 1 -name '*.wgt'\`; do
105 /usr/bin/afm-util install \$file
110 cyad -s -k MANIFESTS -t allow -c User::App::navigation -u '*' -p 'http://tizen.org/privilege/internal/dbus'
111 cyad -s -k MANIFESTS -t allow -c User::App::poi -u '*' -p 'http://tizen.org/privilege/internal/dbus'
116 install -d ${D}/usr/AGL/${PN}
117 install -d ${D}/usr/AGL/apps
118 install -m 0644 ${B}/apps/Controls/controls.wgt ${D}/usr/AGL/apps/
119 install -m 0644 ${B}/apps/Dashboard/dashboard.wgt ${D}/usr/AGL/apps/
120 install -m 0644 ${B}/apps/Phone/phone.wgt ${D}/usr/AGL/apps/
121 install -m 0644 ${B}/apps/Radio/radio.wgt ${D}/usr/AGL/apps/
122 install -d ${D}/home/root/app-data/radio
123 install -m 0644 ${WORKDIR}/presets-${AGL_RADIO_PRESETS_LOCALE}.conf ${D}/home/root/app-data/radio/presets.conf
125 install -m 0755 ${B}/apps/installAllApps.sh ${D}/usr/AGL/apps/
126 ln -sf ../apps/installAllApps.sh ${D}/usr/AGL/${PN}/installAllApps.sh
128 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
129 install -m 0644 ${S}/imports/AGL/Demo/Controls/qmldir ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
130 install -m 0644 ${S}/imports/AGL/Demo/Controls/ImageButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
131 install -m 0644 ${S}/imports/AGL/Demo/Controls/ToggleButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
132 install -m 0644 ${S}/imports/AGL/Demo/Controls/Key.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
133 install -m 0644 ${S}/imports/AGL/Demo/Controls/AbstractKeyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
134 install -m 0644 ${S}/imports/AGL/Demo/Controls/Symbols.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
135 install -m 0644 ${S}/imports/AGL/Demo/Controls/Alphabet.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
136 install -m 0644 ${S}/imports/AGL/Demo/Controls/Keyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
137 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
138 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Back.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
139 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Shift.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
140 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Space.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
141 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Arrow.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
143 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
144 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/*.qml ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
146 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
147 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/images/* ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
150 # plain copy in own folder for now
152 # mkdir -p ${D}/usr/AGL/CES2017/
153 # cp -rf ./* ${D}/usr/AGL/CES2017/
156 FILES_${PN} += "/usr/AGL/ \
159 /home/root/app-data/radio/presets.conf \
160 /usr/lib/qt5/qml/AGL/Demo/Controls/qmldir \
161 /usr/lib/qt5/qml/AGL/Demo/Controls/ImageButton.qml \
162 /usr/lib/qt5/qml/AGL/Demo/Controls/ToggleButton.qml \
163 /usr/lib/qt5/qml/AGL/Demo/Controls/Key.qml \
164 /usr/lib/qt5/qml/AGL/Demo/Controls/AbstractKeyboard.qml \
165 /usr/lib/qt5/qml/AGL/Demo/Controls/Symbols.qml \
166 /usr/lib/qt5/qml/AGL/Demo/Controls/Alphabet.qml \
167 /usr/lib/qt5/qml/AGL/Demo/Controls/Keyboard.qml \
168 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Back.svg \
169 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Shift.svg \
170 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Space.svg \
171 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Arrow.svg \
172 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL \
173 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL/images \